Skip to content

Commit

Permalink
build: new ant target to upload release archives
Browse files Browse the repository at this point in the history
git-svn-id: http://mireka.googlecode.com/svn/trunk@56 741d60a8-641f-389e-c7ec-093451e00b49
  • Loading branch information
hontvari committed Oct 17, 2010
1 parent 37a3096 commit 66e828c
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 2 deletions.
33 changes: 31 additions & 2 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@
</fileset>
</path>

<taskdef classname="net.bluecow.googlecode.ant.GoogleCodeUploadTask"
classpath="lib/build-only/ant-googlecode-0.0.2.jar"
name="gcupload" />

<target name="init">
<!--
<svn><info path="${basedir}" revisionProperty="revisionVersion" /></svn>
Expand All @@ -70,7 +74,8 @@
<javac srcdir="${src.dir}"
destdir="${build.classes.dir}"
debug="${build.debug}"
deprecation="${build.deprecation}">
deprecation="${build.deprecation}"
includeantruntime="false">
<classpath refid="compile.classpath" />
</javac>

Expand Down Expand Up @@ -111,7 +116,8 @@
debug="on"
destdir="${build.dir}/test"
source="1.6"
target="1.6">
target="1.6"
includeantruntime="false">
<classpath path="${build.dir}/classes" />
<classpath refid="compile.classpath" />
</javac>
Expand Down Expand Up @@ -251,6 +257,29 @@
</zip>
</target>

<!-- =================================
target: release
================================= -->
<target name="release"
depends="clean, dist, test"
description="Uploads release archives to Google Code">
<gcupload username="${gc.username}"
password="${gc.password}"
projectname="mireka"
filename="${build.dir}/${dist.name}-src.zip"
targetfilename="${dist.name}-src.zip"
summary="Mireka ${build.version} Source"
labels="Type-Source" />
<gcupload username="${gc.username}"
password="${gc.password}"
projectname="mireka"
filename="${build.dir}/${dist.name}.zip"
targetfilename="${dist.name}.zip"
summary="Mireka ${build.version}"
labels="Featured, Type-Archive, OpSys-All" />
</target>


<target name="clean" description="Cleans all previous build artifacts">
<delete dir="${build.dir}" />
</target>
Expand Down
Binary file added lib/build-only/ant-googlecode-0.0.2.jar
Binary file not shown.

0 comments on commit 66e828c

Please sign in to comment.