Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Tools / November 2003

Tip: Looking for answers? Try searching our database.

Assign  a fileset to a property in Ant

Thread view: 
Stephan Melchior - 17 Nov 2003 16:39 GMT
Hello!

Within my Antscript I would set a property by a list of files

like

<path id="metalevel.internet.seminar.files.path">
     <fileset dir="${metalevel.internet.dir.local}/seminare/">
       <include name="**/*.shtml"/>
       <include name="**/*.html"/>
       <include name="**/*.pdf"/>
       <include name="**/*.js"/>
       <exclude name="**/*.bak"/>
       <exclude name="**/*.sav"/>
       <exclude name="**/*~"/>
     </fileset>
</path>

and
<property name="metalevel.internet.seminar.files"
refid="metalevel.internet.seminar.files.path"/>
yields all desired files separated by a ;

I need this filelist separated by a space.

How to manage this?

Greetings
Stephan
Robert Klemme - 17 Nov 2003 17:10 GMT
> Hello!
>
[quoted text clipped - 22 lines]
>
> How to manage this?

You could write the property into a file, use the "replace" task on it and
reread it as another property.  Not nice, I know.

What do you need this for?  Maybe there is another solution to your
problem.

   robert


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.