Donald,
take a look at ant's supported conditions
(http://ant.apache.org/manual/CoreTasks/condition.html)
and task
<available>(http://ant.apache.org/manual/CoreTasks/available.html)
I think you can use something like
<available file="${junit.test.source.dir}"
property="isTestsHere">

Good Luck Ivan
--- Donald Strong <[EMAIL PROTECTED]> wrote:
> Hi all,
> 
> I want to set a property if a set of files is not
> empty.
> 
> I can get the set of files using a FileSet but how
> do I
> then detect that the set is not empty?
> 
>     <fileset id="junit.test.source.id"
> dir="${junit.test.source.dir}">
>         <include name="**/${junit.test.pattern}"/>
>     </fileset>
> 
> I have tried setting a property in the hope that it
> worked like classpath
> but to no avail.
> 
>     <property name="junit.test.source.list"
> refid="junit.test.source.id"/>
>     <echo> Source directory   =
> ${junit.test.source.list}</echo>
> 
> [echo] Source directory   =
> [EMAIL PROTECTED]
> 
> I have tried <uptodate> and <outofdate> but they
> only care whether the
> target file is there. I don't have a target file. I
> have tried various
> permutations with and without a dummy target file,
> but no dice.
> 
> Hit me with inspired suggestions, please!
> 
> Donald.
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__________________________________
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to