Created
May 13, 2011 14:05
-
-
Save rogerdudler/970593 to your computer and use it in GitHub Desktop.
Build
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<project name="Your Project Name" default="dist" basedir="."> | |
<property file="build-private.properties" /> | |
<property file="build.properties" /> | |
<property name="dist" location="dist" /> | |
<target name="dist" description="generate the distribution"> | |
<mkdir dir="${dist}" /> | |
<delete file="${dist}/${product}-${version}.tar.gz" /> | |
<tar destfile="${dist}/${product}-${version}.tar.gz" compression="gzip"> | |
<tarfileset dir="${basedir}"> | |
<include name="*/**" /> | |
<exclude name="**/.svn/**"/> | |
<exclude name="dist/" /> | |
<exclude name=".settings/" /> | |
<exclude name=".project" /> | |
<exclude name=".buildpath" /> | |
<exclude name="build-private.properties" /> | |
<exclude name="build.properties" /> | |
<exclude name="build.xml" /> | |
</tarfileset> | |
</tar> | |
</target> | |
<target name="deploy"> | |
<scp file="${dist}/${product}-${version}.tar.gz" todir="username:password@your-webserver:/your/path/to/software/releases/"/> | |
</target> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment