I have directory structure like this:

source/
       /repository-TIMESTAMP
           /file1
           /file2
           /folder1
                 /file3

I want to copy files from here to be in this form:

target
        /file1
        /file2
        /folder1
                /file3

This is usually a trivial thing but the catch is that I don't know the
complete name of the repository folder.

Basically what I want to is to copy everything under source/repository-**/
and place it in target.

The problem is that when I do this:

<copy todir="target">
  <fileset dir="source">
    <include name="repository-**/**"/>
  </fileset>
</copy>

it ends up creating a directory structure like this:

target
       repository-TIMESTAMP
                  /file1
                  /file2
                  /folder1
                         /file3

I want it to not copy the repository folder.

How can I achieve this ?
-- 
View this message in context: 
http://www.nabble.com/Copy-files-in-a-directory-not-directory-itself-where-source-directory-name-is-not-known-tp21572785p21572785.html
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org

Reply via email to