Skip to content

Commit

Permalink
[AS7-6727] Modular build for Karaf broken
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Diesler authored and bstansberry committed Mar 13, 2013
1 parent 834f285 commit 8018d87
Show file tree
Hide file tree
Showing 11 changed files with 8 additions and 7 deletions.
12 changes: 6 additions & 6 deletions build-modular/build-modular-config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@

<target name="build-standalone-server" depends="init.standalone" description="Build the standalone server">
<!-- make output file directory -->
<mkdir dir="${server.output.dir}" />
<mkdir dir="${server.output.dir}/modules/system/layers/base" />
<delete>
<fileset dir="${server.output.dir}">
<include name="**/*" />
Expand All @@ -110,8 +110,8 @@
<copy file="${generated.standalone.configuration}" tofile="${server.output.dir}/standalone/configuration/standalone.xml" />

<!-- Copy the generated modules from the standard build -->
<copy todir="${server.output.dir}/modules">
<fileset dir="${server.input.dir}/modules" includesfile="${generated.standalone.dependencies}"/>
<copy todir="${server.output.dir}/modules/system/layers/base">
<fileset dir="${server.input.dir}/modules/system/layers/base" includesfile="${generated.standalone.dependencies}"/>
</copy>

<!-- These files contain digested passwords, which should not be visible to external users -->
Expand Down Expand Up @@ -147,7 +147,7 @@
<target name="build-domain-server" depends="init.domain" description="Build the domain server" if="domain.enabled.true">

<!-- Copy the non-generated server files from the standard build -->
<copy todir="${server.output.dir}">
<copy todir="${server.output.dir}/modules/system/layers/base">
<fileset dir="${server.input.dir}">
<include name="domain/**" />
<include name="bin/domain*.*" />
Expand All @@ -159,8 +159,8 @@
<copy file="${generated.domain.configuration}" tofile="${server.output.dir}/domain/configuration/domain.xml" />

<!-- Copy the generated modules from the standard build -->
<copy todir="${server.output.dir}/modules">
<fileset dir="${server.input.dir}/modules" includesfile="${generated.domain.dependencies}"/>
<copy todir="${server.output.dir}/modules/system/layers/base">
<fileset dir="${server.input.dir}/modules/system/layers/base" includesfile="${generated.domain.dependencies}"/>
</copy>

<!-- These files contain digested passwords, which should not be visible to external users -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@ private void processModuleDependency(List<ModuleIdentifier> dependencies, Elemen
dependencies.add(moduleId);

String path = moduleId.getName().replace('.', '/') + '/' + moduleId.getSlot();
File moduleFile = new File(resourcesDir + File.separator + "modules" + File.separator + path + File.separator + "module.xml");
String modulespath = "modules" + File.separator + "system" + File.separator + "layers" + File.separator + "base";
File moduleFile = new File(resourcesDir + File.separator + modulespath + File.separator + path + File.separator + "module.xml");

ModuleParser moduleParser = new ModuleParser(moduleFile);
moduleParser.parse();
Expand Down

0 comments on commit 8018d87

Please sign in to comment.