You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Scot P. Floess" <sf...@nc.rr.com> on 2013/01/10 14:18:48 UTC

Was there a change to filelist in later version of Ant?

All,

Forgive me if I should know this :(  For reasons work related, I'm still 
back in Ant 1.7.0 and 1.7.1 versions...

I was curious if something changed in Ant 1.8.3 (could have been some 
earlier release but someone using my Ant scripts is on 1.8.3) where using 
a file list with child file elements is failing when one of the child file 
elements refers to a file that is non-existent.

For example:

<copy todir="/tmp/foo">
   <filelist dir="/tmp">
     <file name="alpha.txt"/>
     <file name="beta.txt"/>
   </filelist>
<copy>

It just so happens the second one (beta.xml) doesn't exist.  In 1.7x days, 
this worked fine.  If using 1.8.3 or 1.8.4, I am get an error message 
stating Warning: Could not find resource file "/tmp/beta.txt"

Yes, contrived example :)  Script is actually much more ;)




Scot P. Floess             RHCT  (Certificate Number 605010084735240)
Chief Architect FlossWare  http://sourceforge.net/projects/flossware
                            http://flossware.sourceforge.net
                            https://github.com/organizations/FlossWare

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


Re: Was there a change to filelist in later version of Ant?

Posted by Stefan Bodewig <bo...@apache.org>.
On 2013-01-10, Scot P. Floess wrote:

> Stefan,

> My apologies - I misspelled your name!

no worries, I'm used to that. :-)

Stefan

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


Re: Was there a change to filelist in later version of Ant?

Posted by "Scot P. Floess" <sf...@nc.rr.com>.
Stefan,

My apologies - I misspelled your name!

Scot

On Thu, 10 Jan 2013, Scot P. Floess wrote:

>
> Stephen,
>
> Awesome!  That explains a bunch :)  I ended up changing my script to fileset 
> before I received your response.
>
> Really appreciate the follow-up...
>
> Scot
>
> On Thu, 10 Jan 2013, Stefan Bodewig wrote:
>
>> On 2013-01-10, Scot P. Floess wrote:
>> 
>>> I was curious if something changed in Ant 1.8.3 (could have been some
>>> earlier release but someone using my Ant scripts is on 1.8.3) where
>>> using a file list with child file elements is failing when one of the
>>> child file elements refers to a file that is non-existent.
>> 
>> I think it's copy that has changed:
>> 
>> <http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Copy.java?r1=718387&r2=786504>
>> 
>> for
>> 
>> <https://issues.apache.org/bugzilla/show_bug.cgi?id=47362>
>> 
>> You'll need to set failonerror to false or use a fileset (which will
>> swallow the non-existent files) rather than a filelist.
>> 
>> Stefan
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>> For additional commands, e-mail: user-help@ant.apache.org
>> 
>> 
>
> Scot P. Floess             RHCT  (Certificate Number 605010084735240)
> Chief Architect FlossWare  http://sourceforge.net/projects/flossware
>                           http://flossware.sourceforge.net
>                           https://github.com/organizations/FlossWare
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>

Scot P. Floess             RHCT  (Certificate Number 605010084735240)
Chief Architect FlossWare  http://sourceforge.net/projects/flossware
                            http://flossware.sourceforge.net
                            https://github.com/organizations/FlossWare

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


Re: Was there a change to filelist in later version of Ant?

Posted by "Scot P. Floess" <sf...@nc.rr.com>.
Stephen,

Awesome!  That explains a bunch :)  I ended up changing my script to 
fileset before I received your response.

Really appreciate the follow-up...

Scot

On Thu, 10 Jan 2013, Stefan Bodewig wrote:

> On 2013-01-10, Scot P. Floess wrote:
>
>> I was curious if something changed in Ant 1.8.3 (could have been some
>> earlier release but someone using my Ant scripts is on 1.8.3) where
>> using a file list with child file elements is failing when one of the
>> child file elements refers to a file that is non-existent.
>
> I think it's copy that has changed:
>
> <http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Copy.java?r1=718387&r2=786504>
>
> for
>
> <https://issues.apache.org/bugzilla/show_bug.cgi?id=47362>
>
> You'll need to set failonerror to false or use a fileset (which will
> swallow the non-existent files) rather than a filelist.
>
> Stefan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>

Scot P. Floess             RHCT  (Certificate Number 605010084735240)
Chief Architect FlossWare  http://sourceforge.net/projects/flossware
                            http://flossware.sourceforge.net
                            https://github.com/organizations/FlossWare

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


Re: Was there a change to filelist in later version of Ant?

Posted by Stefan Bodewig <bo...@apache.org>.
On 2013-01-10, Scot P. Floess wrote:

> I was curious if something changed in Ant 1.8.3 (could have been some
> earlier release but someone using my Ant scripts is on 1.8.3) where
> using a file list with child file elements is failing when one of the
> child file elements refers to a file that is non-existent.

I think it's copy that has changed:

<http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Copy.java?r1=718387&r2=786504>

for

<https://issues.apache.org/bugzilla/show_bug.cgi?id=47362>

You'll need to set failonerror to false or use a fileset (which will
swallow the non-existent files) rather than a filelist.

Stefan

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