i always think of script as a cheat, but i shouldn't :) after all, C# is the most
powerful extension of NAnt.
<target name="test-rendir" >
<property name="rendir.from" value="d:\temp\lala" />
<property name="rendir.to" value="d:\temp\lili" />
<script language="C#">
<code><![CDATA[
public static void ScriptMain(Project project) {
Directory.Move( project.Properties[ "rendir.from" ],
project.Properties[ "rendir.to" ] );
}
]]></code>
</script>
</target>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of
> Tim Dallmann
> Sent: Thursday, October 23, 2003 12:45
> To: [EMAIL PROTECTED]
> Subject: [Nant-users] Renaming a directory
>
>
> Hi All,
>
> I am trying to rename a directory within my build. For lack
> of a Rename task in NAnt, I tried to attempt using mkdir and
> move tasks, but it appears that the move does not recuse
> subdirectories.
>
> Any suggestions as to the best way to rename a folder. Can
> the exec task be used to issue DOS commands?
>
> Tim
> NHujʊx~z
> yȞnvuv~jrȭqz{zjzqz~z
>
-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community? Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users