ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject AW: Specifying a directory without losing the directory name
Date Wed, 21 Feb 2007 08:08:08 GMT
I am not sure what you want to have.
But is that useful?

<antcontrib:for param="dir">
    <dirset dir="Build/classes" includes="module*"/>
        <jar jarfile="${libBuild.dir}/@{dir}.jar" basedir="${build.classes.dir}/@{dir}"/>

>-----Urspr√ľngliche Nachricht-----
>Von: Jackson, Paul R [] 
>Gesendet: Montag, 19. Februar 2007 19:59
>Betreff: Specifying a directory without losing the directory name
>Dear list,
>I have a directory with a bunch of class files, and am trying to create
>multiple jar files instead of just one.  So I have 
>This works to create the jar files, but strips away module1 from the
>path (which is not good since it messes up the java classpath)....
>        <jar jarfile="${libBuild.dir}/module1.jar">
>            <fileset dir="${build.classes.dir}/module1"
>        </jar>
>I tried variations of this with no success...
>        <jar jarfile="${libBuild.dir}/module1.jar">
>            <fileset dir="${build.classes.dir}"
>        </jar>
>	I tried a dirset too, it didn't work either.
>> Paul Jackson
>To unsubscribe, e-mail:
>For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message