I have a mulitproject
myproject
myproject\mavenparent
myproject\subproject1
myproject\subproject2
myproject, subproject1 and subproject2 POM extends mavenparent
myproject depends on subproject1 & subproject2
(subproject1 depends on subproject2)
So myproject is my master build, where I want ask for dist.
To make sure dist copies the subprojects for bin dist, I 've done the
following:
<goal name="dist:prepare-bin-filesystem">
<deploy:copy-deps todir="${maven.dist.bin.assembly.dir}"/>
<!-- Icon file needed for installer, bat and shell script -->
<copy todir="${maven.dist.bin.assembly.dir}">
<fileset dir="${basedir}/src/dist"/>
</copy>
</goal>
How do I something similar "for each subproject" to include all sources?
<postGoal name="dist:prepare-src-filesystem">
<copy todir="${maven.dist.src.assembly.dir}/mavenparent"
includeEmptyDirs="false">
<fileset dir="${basedir}/mavenparent">
<exclude name="target/**"/>
<exclude name="xdocs/**"/>
<exclude name="build.properties"/>
</fileset>
</copy>
<copy todir="${maven.dist.src.assembly.dir}/subproject1"
includeEmptyDirs="false">
<fileset dir="${basedir}/subproject1">
<exclude name="target/**"/>
<exclude name="xdocs/**"/>
<exclude name="build.properties"/>
</fileset>
</copy>
<!-- Needs to be for-each, so subproject2 etc are also copied -->
</postGoal>
--
Thanks for any and all help,
Geoffrey
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]