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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 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: 4
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: 3275
    
    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: 17149
    
  27

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!


An IDE is no substitute for an Intelligent Developer.
bhushan khardekar
Greenhorn

Joined: Jun 27, 2008
Posts: 4
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: 3275
    
    5

See Tim's response.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Query regarding "includesfile" :confused:
 
It's not a secret anymore!