Skip to content

Instantly share code, notes, and snippets.

@rogerdudler
Created May 13, 2011 14:05
Show Gist options
  • Save rogerdudler/970593 to your computer and use it in GitHub Desktop.
Save rogerdudler/970593 to your computer and use it in GitHub Desktop.
Build
<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