Simple(?) Ant question

L

Lord0

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
 
L

LuckyBoy

Hi Lord0 did you try writing
<fileset dir="${src.dir}/testPackage">
<includes="**/*.java"/>
</fileset>

Should run well !
Cheers !
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,280
Latest member
BGBBrock56

Latest Threads

Top