gluu
静的公開メンバ関数 | 静的非公開メンバ関数 | 全メンバ一覧
org.xdi.oxauth.util.Deployments クラス
org.xdi.oxauth.util.Deployments 連携図
Collaboration graph

静的公開メンバ関数

static WebArchive createDeployment ()
 

静的非公開メンバ関数

static void addFiles (WebArchive war, File dir)
 

詳解

Creates a deployment from a build Web Archive using ShrinkWrap ZipImporter

著者
Yuriy Movchan

関数詳解

◆ addFiles()

static void org.xdi.oxauth.util.Deployments.addFiles ( WebArchive  war,
File  dir 
)
inlinestaticprivate
38  {
39  for (File f : dir.listFiles()) {
40  if (f.isFile()) {
41  war.addAsWebResource(f, f.getPath().replace("\\", "/").substring("src/main/webapp/".length()));
42  } else {
43  addFiles(war, f);
44  }
45  }
46  }
static void addFiles(WebArchive war, File dir)
Definition: Deployments.java:38

◆ createDeployment()

static WebArchive org.xdi.oxauth.util.Deployments.createDeployment ( )
inlinestatic
16  {
17  final WebArchive war = ShrinkWrap.create(WebArchive.class, "oxauth.war")
18  // adding the configuration class silences the logged exception
19  // when building the configuration on the server-side, but
20  // shouldn't be necessary
21  // .addClass(JettyEmbeddedConfiguration.class)
22  // Resteasy services
23  // .addClass(ResteasyInitializer.class)
24  // .addPackage(GluuConfigurationWS.class.getPackage())
25  // Servlets
26  .addAsWebInfResource("jetty-env.xml").addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml")
27  .setWebXML("web.xml");
28  try {
29  File dir = new File("src/main/webapp");
30  addFiles(war, dir);
31  } catch (Exception e) {
32  e.printStackTrace();
33  }
34 
35  return war;
36  }
static void addFiles(WebArchive war, File dir)
Definition: Deployments.java:38

このクラス詳解は次のファイルから抽出されました: