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 / General / September 2006

Tip: Looking for answers? Try searching our database.

Simple(?) Ant question

Thread view: 
Lord0 - 13 Sep 2006 18:20 GMT
Hi there,

I'm kinda embarrassed to be asking this but it's been bugging me for
while....

I have a bunch of .java files in /src/testPackage

In my Ant build file the following <fileset> will find all the java
files in "testPackage"

<fileset dir="${src.dir}">
   <include name="testPackage/*.java"/>
</fileset>

but this does not

<fileset dir="${src.dir}/testPackage">
   <include name="*.java"/>
</fileset>

What obvious point am I missing? The second example works in so far as
Ant can find the "/src/testPackage" dir. I know this as if I change the
dir name then the task which uses the <fileset>, in this case Xdoclet,
barfs "No such dir" etc etc.It just doesn't seem to find the .java
files?!?

cheers

Lord0
LuckyBoy - 14 Sep 2006 18:57 GMT
Hi Lord0 did you try writing
<fileset dir="${src.dir}/testPackage">
    <includes="**/*.java"/>
</fileset>

Should run well !
Cheers !


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.