Exclude Folders From Being Copy(Ant)

Discussion in 'Java' started by blazingwolf7, Dec 22, 2008.

  1. blazingwolf7

    blazingwolf7

    Joined:
    Dec 22, 2008
    Messages:
    1
    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
     
    blazingwolf7, Dec 22, 2008
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. VB Programmer
    Replies:
    0
    Views:
    951
    VB Programmer
    Jan 5, 2006
  2. John Dalberg
    Replies:
    1
    Views:
    2,552
    Teemu Keiski
    Feb 26, 2006
  3. dxd@ptc.com
    Replies:
    6
    Views:
    30,387
    Diplomat
    Jan 12, 2011
  4. elektrophyte
    Replies:
    6
    Views:
    58,470
    Alan Krueger
    Oct 2, 2005
  5. dtown22@gmail.com

    ant javac exclude not working for directories

    dtown22@gmail.com, Mar 22, 2007, in forum: Java
    Replies:
    1
    Views:
    2,749
    dtown22@gmail.com
    Mar 22, 2007
Loading...

Share This Page