ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Malar Ravi <malarjr...@yahoo.com>
Subject Fileset with comma separated value in dir.
Date Wed, 22 May 2002 13:05:51 GMT
Hi,
 
In the following code I know that I cannot have comma
separated list of directories in the dir attribute of
fileset. I would appreciate it if someone could give
me some hints on how to parse the dir.str so that I
can call the target "war-copy" for each directory in
dir.str string. I searched the archives but couldnt
locate anything similar to this issue. 

 <property name="dir.str" value="dir1/sub1, dir2"/>

  <patternset id="test.src" >
     <include name="std/**/*.*"/>
     <include name="prof/**/*.class" />
  </patternset>
 
  <target name="war-copy">
    <copy todir="temp">
     <fileset dir="${dir.str}" >
       <patternset refid="test.src"/>
     </fileset>
    </copy>
  </target>
 
Thanks,
Malar.

__________________________________________________
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.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