ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Franz-Josef Herpers <fjhP...@netscape.net>
Subject Re: AW: copy
Date Thu, 18 Nov 2004 09:41:11 GMT
Hi Jan,

thanks for your answer.

>Use the nested
>  <include name="sw/apache-ant-*/"/>
>without the trailing *, so Ant knows that that is a directory and uses
>the whole tree under that.
>  
>
I now have

    <move todir="${maven.dist.src.assembly.dir}/sw/ant" overwrite="true">
      <fileset dir="${maven.dist.src.assembly.dir}">
        <include name="sw/apache-ant-*/**"/>
      </fileset>
    </move>

What I really want is to move every descendent directory and file under 
sw/apache-ant-* to sw/ant. What I get with this is:

sw/ant/sw/apache-ant-*/**

But I want sw/ant/[everything under sw/apache-ant*].

If I try

<include name="apache-ant-*/**"/>

I get

sw/ant/apache-ant*/**

So if I could do this

  <move todir="${maven.dist.src.assembly.dir}/sw/ant" overwrite="true">
     <fileset dir="${maven.dist.src.assembly.dir}/sw/apache-ant-*/">
       <include name="*/**"/>
     </fileset>
   </move>

it would probably work, but of course it doesn't the way I want it.

Any more suggestions?

Thanks
Franz


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


Mime
View raw message