Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Query regarding "includesfile" :confused:

 
bhushan khardekar
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18094
48
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
bhushan khardekar
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See Tim's response.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic