Skip to content

Instantly share code, notes, and snippets.

@joshbirk
Created September 22, 2011 19:33
Show Gist options
  • Save joshbirk/1235782 to your computer and use it in GitHub Desktop.
Save joshbirk/1235782 to your computer and use it in GitHub Desktop.
Moving one file for Force.com Migration Tool
echo ${1%.*}
echo "Cleanup"
rm src-latest/classes/*
rm src-latest/pages/*
rm src-latest/components/*
echo "Moving files"
cp src/classes/${1%.*}.cls src-latest/classes/
cp src/classes/${1%.*}.cls-meta.xml src-latest/classes/
cp src/pages/${1%.*}.page src-latest/pages/
cp src/pages/${1%.*}.page-meta.xml src-latest/pages/
cp src/pages/${1%.*}.component src-latest/components/
cp src/pages/${1%.*}.component-meta.xml src-latest/components/
cp src/pages/${1%.*}.trigger src-latest/triggers/
cp src/pages/${1%.*}.trigger-meta.xml src-latest/triggers/
cp src/package.xml src-latest/
echo "Building"
ant build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment