You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Barak Yaish <by...@cloverleafcomm.com> on 2005/09/13 17:19:42 UTC
Find - is there parallel ant task?
Hello,
I would like to find a set of files, which are newer than a certain file (or time stamp). Is this possible to be done using ant?
Thanks,
Barak.
Re: Find - is there parallel ant task?
Posted by Antoine Levy-Lambert <an...@gmx.de>.
Barak Yaish wrote:
>Hello,
>
>I would like to find a set of files, which are newer than a certain file (or time stamp). Is this possible to be done using ant?
>
>Thanks,
>
>Barak.
>
>
>
What you want is possible using filesets, selectors, and the pathconvert
task.
Look at the Concepts and Types section of the manual.
What you want is roughly something like
<project name="test">
<fileset id="myfileset" dir="foo/bar">
<date datetime="01/01/2001 12:00 AM" when="after"/>
</fileset>
<pathconvert targetsos="unix" refid="myfileset"
property="myfileset.asproperty"/>
<echo>myfileset is ${myfileset.asproperty}</echo>
</project>
Cheers,
Antoine
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: Find - is there parallel ant task?
Posted by Ninju Bohra <ni...@yahoo.com>.
Strange subject line...
To get only the files newer than a certain date, try using a nested <date> selector on a <fileset>
Barak Yaish <by...@cloverleafcomm.com> wrote:
Hello,
I would like to find a set of files, which are newer than a certain file (or time stamp). Is this possible to be done using ant?
Thanks,
Barak.
---------------------------------
Yahoo! for Good
Click here to donate to the Hurricane Katrina relief effort.
Re: Find - is there parallel ant task?
Posted by Jeffrey E Care <ca...@us.ibm.com>.
Ninju Bohra <ni...@yahoo.com> wrote on 09/13/2005 11:37:02 AM:
> You know based upon your response I would guess that you work for
Microsoft
>
> Microsoft Joke #1:
http://members.aol.com/godx2/humor/assorted/microsoft1.html
I found it to more along the lines of the typical hacker response to a
poorly-worded inquiry.
http://www.catb.org/~esr/faqs/smart-questions.html
--
Jeffrey E. Care (carej@us.ibm.com)
WebSphere v7 Release Engineer
WebSphere Build Tooling Lead (Project Mantis)
Re: Find - is there parallel ant task?
Posted by Ninju Bohra <ni...@yahoo.com>.
You know based upon your response I would guess that you work for Microsoft
Microsoft Joke #1: http://members.aol.com/godx2/humor/assorted/microsoft1.html
Good day all,
Ninju
Matt Benson <gu...@yahoo.com> wrote:
--- Barak Yaish wrote:
> Hello,
>
> I would like to find a set of files, which are newer
> than a certain file (or time stamp). Is this
> possible to be done using ant?
Yes.
>
> Thanks,
You're welcome.
-Matt
>
> Barak.
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
---------------------------------
Yahoo! for Good
Click here to donate to the Hurricane Katrina relief effort.
Re: Find - is there parallel ant task?
Posted by Matt Benson <gu...@yahoo.com>.
--- Barak Yaish <by...@cloverleafcomm.com> wrote:
> Hello,
>
> I would like to find a set of files, which are newer
> than a certain file (or time stamp). Is this
> possible to be done using ant?
Yes.
>
> Thanks,
You're welcome.
-Matt
>
> Barak.
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org