ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From George Spalding <georgespald...@yahoo.com>
Subject Why won't Apply take nested dirset?
Date Tue, 19 Nov 2002 08:02:29 GMT
Hi All.

I'm trying to use Apply to batch some filehandling,
and I don't think I can do it the way I want to.

I've got some directories (like a bunch in real life) 
in srcDir: a.jar, b.jar, ...
all containing some class files and other stuff.

in destDir I've got jars with the same names as the directories in
srcDir: a.jar, b.jar, ...

What I want to do is use apply to update these jars:
This does not work.
<apply executable="jar" dest="destDir">
     <arg value="-uvf"/>
     <targetfile/>
     <arg value="-C"/>
     <arg value="srcDir"/>
     <srcfile/>
     <fileset dir="srcDir" includes="*.jar" />
     <mapper type="identity"/>
</apply>

What I guess I really want to do is
<apply executable="jar" dest="destDir">
     <arg value="-uvf"/>
     <targetfile/>
     <arg value="-C"/>
     <arg value="srcDir"/>
     <srcfile/>
     <dirset dir="srcDir" includes="*.jar" />
     <mapper type="identity"/>
</apply>
But the apply task doesn't accept dirsets...

Does anyone have a good idea how to do it?!
(One idea i've got is to use the source/target mechanism
"backwards"... yuchh!)
/George


=====
-\|/-/|\-\|/-/|\-\|/-/|\-\|/-/|\-\|/-/|\-\|/-
George Spalding
Private:      georgespalding@yahoo.com
Phone:
Mobile: +46 701 849 507
Home:   +46 8 21 36 59
-/|\-\|/-/|\-\|/-/|\-\|/-/|\-\|/-/|\-/|\-\|/-

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

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


Mime
View raw message