ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
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*"/>
    <sequential>
        <jar jarfile="${libBuild.dir}/@{dir}.jar" basedir="${build.classes.dir}/@{dir}"/>
    </sequential>
</antcontrib:for>
  
    
Jan

>-----Urspr√ľngliche Nachricht-----
>Von: Jackson, Paul R [mailto:paul.r.jackson3@boeing.com] 
>Gesendet: Montag, 19. Februar 2007 19:59
>An: user@ant.apache.org
>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 
>Build/classses/module1
>Build/classes/module2
>
>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"
>includes="**/*.class"/>
>        </jar>
>
>I tried variations of this with no success...
>
>        <jar jarfile="${libBuild.dir}/module1.jar">
>            <fileset dir="${build.classes.dir}"
>includes="module1/**/*.class"/>
>        </jar>
>
>	I tried a dirset too, it didn't work either.
>
>
>> Paul Jackson
>> 
>> 
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message