Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Exclude Folders From Being Copy(Ant)

Thread Tools

Exclude Folders From Being Copy(Ant)

blazingwolf7 blazingwolf7 is offline
Junior Member
Join Date: Dec 2008
Posts: 1

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="*.*"/>

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
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to exclude some .CPP files from being linked in Visual Studio? smart C++ 1 01-26-2010 05:34 PM
Desktop accesses laptop and reads folders but Laptop only accesses/opens Desktop but cannot read folders, access is denied onclejon Wireless Networking 3 11-01-2006 10:50 PM
How to exclude folders from project in VS 2005? John Dalberg ASP .Net 1 02-26-2006 02:19 PM
ASP.NET 2.0 - How exclude folders/files when publishing? VB Programmer ASP .Net 0 01-05-2006 10:56 PM
Syncing POP folders with IMAP folders Rich Computer Support 1 02-12-2004 09:36 PM