No, it's not possible. You need a specific file to look for.
Although I'm not sure I understand your use-case, it seems like you can
define a fileset of the files you're after, then <pathconvert
property="filelist"/> it to a string, then <condition
property="compile.not.required"><equals arg1="${filelist}" arg2=""
/></condition> to check if the string is empty.
But then, usually one checks whether to recompile using <uptodate>, or let
<javac> do it automatically... --DD
-----Original Message-----
From: Dan Gardner [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 27, 2003 2:20 PM
To: '[EMAIL PROTECTED]'
Subject: available task, setting property on existence *.java
I would like to set a property on the existence of a particular type of
file.
e.g.
<condition property="compile.required">
<or>
<available file="${src.root}/${site.name}/${patch.name}**/*.java"
property="compile.required" />
</or>
</condition>
But I understand this is not possible with the "available" task.
Am I missing something ?
cheers
dan
_______________________________
Dan Gardner Emap IT - UK
** For great Emap magazine subscription & gift offers visit
http://www.emapmagazines.co.uk **
----------------------------------------------------------------------------
----
The information in this email is intended only for the addressee(s) named
above.
Access to this email by anyone else is unauthorised.
If you are not the intended recipient of this message any disclosure,
copying,
distribution or any action taken in reliance on it is prohibited and may be
unlawful.
Emap plc and or its subsidiaries do not warrant that any attachments are
free from
viruses or other defects and accept no liability for any losses resulting
from
infected email transmissions.
Please note that any views expressed in this email may be those of the
originator
and do not necessarily reflect those of this organisation.
----------------------------------------------------------------------------
----
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>