That looks like it will do nicely, cheers.

To explain a little background.  Its all in the name of saving time.  Most
of our builds are patches.  I checkout a release and *many* patches from
cvs, then apply them all to the build area in the correct order.  Then build
the new patch on top of that.  Most of the time however, we only deal with
static files not requiring compilation, so there is no reason to copy
everything to the build area.  Stopping all the file copying would be a
nice-to-have.

_______________________________
Dan Gardner        Emap IT - UK



>-----Original Message-----
>From: Dominique Devienne [mailto:[EMAIL PROTECTED]]
>Sent: 27 January 2003 20:34
>To: 'Ant Users List'
>Subject: RE: available task, setting property on existence *.java
>
>
>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]>


** 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]>

Reply via email to