ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ray.har...@wachovia.com
Subject Re: How to rename a dir?
Date Wed, 07 Oct 2009 14:30:54 GMT
Hi,

Quick question ... Are you trying to just rename the dir or are you trying 
to 
rename a file and move it to a new dir?

If you are trying to do the first, try this instead:

        <move todir="new/dir">
                <fileset dir="olddir"/>
        </move>

I hope this helps ...












"Knuplesch, Juergen" <Juergen.Knuplesch@icongmbh.de> 
10/07/2009 10:13 AM
Please respond to
"Ant Users List" <user@ant.apache.org>


To
"Ant Users List" <user@ant.apache.org>
cc

Subject
How to rename a dir?






Hello,

How do I simply rename a directory in ant?

When I use move it copies the directory also
<move file="${dope.target.dirbase2}" todir="${dope.target.dirbase2.new}" 
/>

I just want to rename the name of the directory!

Juergen

-- 
J├╝rgen Knuplesch

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



Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message