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: fileset and directory to get for loop to work - How ?
Date Wed, 06 Feb 2008 08:09:15 GMT
> <ac:for param="files">
>   <fileset dir="${test_dir}">
>     <filename name="warmup.jmx"/>
>     <filename name="CI.jmx"/>
>   </fileset>
>   <ac:sequential>

only <sequential> as it comes from Ant core and not from AntContrib


>     <condition property="@{files}">
>       <isset property="@{files}">
>         <echo>Test case @{files}</echo>
>         <antcall target="start"/>
>         <antcall target="stop"/>

I dont think that <isset> support nested tasks ...


>       </isset>
>     </condition>
>   </ac:sequential>
> </ac:for>
> 
> But I keep getting this error
> 
> C:\A.xml:9: C:\Documents\${test_dir} not found.
> 
> Warmup.jmx and CI.jmx files are stored on a network folder in
> \\foo\test<file://foo/test>directory.
> 
> How can I change this ${test_dir} to point to \\foo\test
> <file://foo/test>to see those files ? I tried assigning test_dir with
> \\foo\test <file://foo/test> value and still gets the same error.


test_dir=\\\\foo\test

Backslashes have to be quotet in property files.


Jan

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


Mime
View raw message