Skip to content

Instantly share code, notes, and snippets.

@mendicantx
Created September 21, 2009 15:27
Show Gist options
  • Save mendicantx/190305 to your computer and use it in GitHub Desktop.
Save mendicantx/190305 to your computer and use it in GitHub Desktop.
NAnt:
<move todir="${package.dir}\${new.name}" includeemptydirs="true">
<fileset basedir="${package.dir}\${old.name}" >
<include name="**\*" />
</fileset>
</move>
<delete dir="${package.dir}\${old.name}" />
Rake:
require 'fileutils'
mv "#{package_dir}/#{old_name}" "#{package_dir}/#{new_name}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment