Here is my code BTW:
<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 todir="${maven.dist.bin.assembly.dir}/lib"
file="${maven.repo.local}/log4j/jars/log4j-1.2.8.jar"/>
[... Others dirty copy ...]
<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>
<!-- Specific Jboss tasks -->
<ant:copy todir="${maven.dist.bin.assembly.dir}/etc">
<ant:fileset dir="${maven.src.dir}/resources/jboss">
<ant:include name="**"/>
</ant:fileset>
</ant:copy>
</postGoal>
Any way to copy those lib in a smarter way? (I was thinking about putting a tag on
dependencies and retrieves them in some way just as the release plugin does). On top
I'll make a release for Jboss and Weblogic so I need so some sort of switch here (I
assume that Jelly has a feature for that).
Anyone can help or point me on some jelly code that would do that?
Regards,
Stephane
-----Original Message-----
From: St�phane Nicoll
Sent: vendredi 17 septembre 2004 12:06
To: Maven Users List
Subject: dist & release plugins
Dear all,
I am currently investigating the possibility to use maven to build automatically the
structure of an application. This is a simple RMI daemon with the followign structure:
bin\
etc\
lib\
docs\
my-daemon.jar
Using the dist plugin I am already almost able to generate this structure very easily
and tar.gz & zip it. However, I have to copy the libraries in some crappy maven tag:
<copy todir="${maven.dist.bin.assembly.dir}/lib"
file="${maven.repo.local}/bla/foo-SNAPSHOT.jar"/>
[...]
Is there an easiet way to do this? What's the easiest way to copy the bin and etc
directory in my maven.xml?
Thanks in advance,
St�phane
---------------------------------------------------------------------
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]