aspose file tools*
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
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: 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: 16014
    
  20

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: 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: 3274
    
    5

See Tim's response.
 
jQuery in Action, 2nd edition
 
subject: Query regarding "includesfile" :confused: