Exclude Folders From Being Copy(Ant)

Joined
Dec 22, 2008
Messages
1
Reaction score
0
Hi,

I am trying to build a file for my Java codes but encounter some problem while preparing to build file.
In the root directory, I have a mixture of files and folders.
I want to copy all the files and leave out all the folders together with its content

<copy todir="${build.dir}">
<fileset dir="${basedir}">
<exclude name="*.*"/>
</fileset>
</copy>

But the code I used up there keep copying everything into my new folder. Is there anyway I can exclude the folders? Thanks for any advise
 

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

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top