Skip to content

Instantly share code, notes, and snippets.

@jdlich
Created January 11, 2012 16:39
Show Gist options
  • Save jdlich/1595528 to your computer and use it in GitHub Desktop.
Save jdlich/1595528 to your computer and use it in GitHub Desktop.
desc "Redeploy Sakai"
task :build => [:clean_tomcat, :mvn_install]
task :clean_tomcat do
system "rm -rf #{TOMCAT}/webapps/*"
sleep 1
end
task :mvn_install do
Dir.chdir(SAKAI) do
system "mvn clean install -Dmaven.test.skip=true sakai:deploy -Dmaven.tomcat.home=/Users/Jacob/Sites/sakai.wfu.edu/apache-tomcat-5.5.20"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment