This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes Query regarding Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Query regarding "includesfile"   :confused:" Watch "Query regarding "includesfile"   :confused:" New topic
Author

Query regarding "includesfile" :confused:

bhushan khardekar
Greenhorn

Joined: Jun 27, 2008
Posts: 3
Hi ,

I am using Copy task to copy files to a staging directory

<copy todir="${staging.dir}" flatten="yes" verbose="yes">
<fileset dir=".">
<include name="*\lib\mytech\test\*.*"/>
<patternset >
<includesfile name="*\lib\mytech\files.txt"/>
</patternset>
</fileset>
</copy>


files.txt : It contains list of files names to be copied

*\lib\mytech\test\*.* : test folder contains number of ear's to be copied


The includesfile task in not recognizing the * character.

it works fine when I uses My-Deliverables\lib\mytech\files.txt


Could you please help?
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

Hi Bhushan and welcome to Javaranch!

I haven't checked the Documentation directly, but I think that the includeFile name attribute does not support wildcards.


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15964
    
  19

Martijn Verburg wrote:Hi Bhushan and welcome to Javaranch!

I haven't checked the Documentation directly, but I think that the includeFile name attribute does not support wildcards.


Correct. The includesfile is the name of a file containing names of files to include. They can have wildcards in them, though!


Customer surveys are for companies who didn't pay proper attention to begin with.
bhushan khardekar
Greenhorn

Joined: Jun 27, 2008
Posts: 3
I have checked Ant document and it is doesn't specify any limitation regarding wild chars..

Either my understanding of includesfile is not clear( :banghead or I have caught the bug
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

See Tim's response.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Query regarding "includesfile" :confused:
 
Similar Threads
How to copy filelist or path?
ant javac task not copying directory with no java files
how to specify set of files for lib while creating war
Urgent help on junit test using ant
Passing Filesets