Humm I see, that's what dist:prepare-bin-filesystem is useful for then.
Thanx,
--mike
St�phane Nicoll wrote:
Use a postgoal for that. For instance
<!-- Used to copy additional stuff that will be included in the distribution. --> <postGoal name="dist:prepare-bin-filesystem"> <!-- Creating additional directories --> <mkdir dir="${maven.dist.bin.assembly.dir}/etc"/> <mkdir dir="${maven.dist.bin.assembly.dir}/bin"/> <mkdir dir="${maven.dist.bin.assembly.dir}/lib"/> <mkdir dir="${maven.dist.bin.assembly.dir}/log"/>
<!-- Copy reporting daemon lib --> <j:forEach var="lib" items="${pom.artifacts}"> <j:set var="dep" value="${lib.dependency}"/> <j:if test="${dep.getProperty('reporting.daemon.lib')=='true'}"> <ant:copy todir="${maven.dist.bin.assembly.dir}/lib" file="${lib.path}"/> </j:if> </j:forEach>
<ant:copy todir="${maven.dist.bin.assembly.dir}/etc"> <ant:fileset dir="${maven.src.dir}/resources"> <ant:include name="*.*"/> </ant:fileset> </ant:copy>
<ant:copy todir="${maven.dist.bin.assembly.dir}/bin"> <ant:fileset dir="${maven.src.dir}/bin"> <ant:include name="*"/> </ant:fileset> </ant:copy>
<!-- Retrieve artifacts current version and replace them in the shell/batch scripts -->
<j:forEach var="lib" items="${pom.artifacts}">
<j:if test="${lib.dependency.artifactId=='bsb-utils'}">
<j:set var="dep.utils.name" value="${lib.file.name}"/>
</j:if>
<j:if test="${lib.dependency.artifactId=='bsb-jf-reporting-common'}">
<j:set var="dep.reportingcommon.name" value="${lib.file.name}"/>
</j:if>
</j:forEach>
<ant:replace dir="${maven.dist.bin.assembly.dir}/bin"> <ant:replacefilter token="[REPORTING-DAEMON-LIB]" value="${maven.final.name}.jar"/> <ant:replacefilter token="[REPORTING-COMMON-LIB]" value="${dep.reportingcommon.name}"/> <ant:replacefilter token="[UTILS-LIB]" value="${dep.utils.name}"/> </ant:replace> </postGoal>
This will put additional stuff for the binary release. You can do the same for the src release if you want.
Cheers, St�phane
-----Original Message-----
From: Michael Niemaz [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 16, 2004 4:48 PM
To: Maven Users List
Subject: Changing distribution content possible?
Hi,
I'd like to change the distribution content created by the dist:build goal.
I tried overriding dist:build goal but I'm stuck on the tar goal which I can't seem to be able to find
or even reach ... and I'm not sure it's the proper way to do it anyway.
So instead of having the 'docs' directory and the jar file generated in the distribution directory, I'd like
to add other files such as launchers, config files, misc, ...
Any ideas?
thanx,
--mike
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
