Menu

#2 Using source for multiple files fails on Solaris

closed
nobody
None
5
2004-03-18
2003-10-28
No

Using the source attribute to specify that multiple files
are to be processed fails on Solaris. This works perfectly
on Windows.

Example:
<xmltask source="${webapps.root}/**/web.xml" ...>
...
</xmltask>

When running this on Solaris, I get the following
message:

[xmltask] Scanning for web.xml from
/opt/tmp/devintegration/build/tmp/webapps/**

BUILD FAILED
file:/opt/tmp/devintegration/buildfiles/build-system.ent:
92: java.lang.IllegalStateException: basedir
/opt/tmp/devintegration/build/tmp/webapps/** does not
exist

It looks like it thinks the "**" is a directory name, but it is
the standard way in Ant to say "look in all subdirectories"
or "recurse subdirectories".

Suggestion would be to use filesets withing the xmltask
to specify multiple files.

Discussion

  • Kevin LaVergne

    Kevin LaVergne - 2003-10-28

    xmltask with fileset support

     
  • Brian Agnew

    Brian Agnew - 2004-03-18

    Logged In: YES
    user_id=521055

    This should be resolved as of v1.9. XmlTask will soon use
    FileSets, btw. Submission below noted. Thx!

     
  • Brian Agnew

    Brian Agnew - 2004-03-18
    • status: open --> closed
     

Log in to post a comment.