Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Separate packaging from building in ant build; force clean before pac…

…kage to prevent error
  • Loading branch information...
commit 5d1c05b29191b299cf8ed85bd0fdd99d900d9481 1 parent 08dbcc8
Jason Johnston authored
Showing with 6 additions and 4 deletions.
  1. +6 −4 build.xml
View
10 build.xml
@@ -1,6 +1,6 @@
<?xml version="1.0" ?>
-<project name="PIE" default="package" basedir=".">
+<project name="PIE" default="build" basedir=".">
<property name="build_dir" value="./build" />
<property name="src_dir" value="./sources" />
@@ -9,7 +9,7 @@
<delete dir="${build_dir}" />
</target>
- <target name="package-uncompressed">
+ <target name="build-uncompressed">
<mkdir dir="${build_dir}" />
<concat destfile="${build_dir}/script_uncompressed.js">
<fileset file="${src_dir}/PIE_open.js" />
@@ -43,7 +43,7 @@
</concat>
</target>
- <target name="package-compressed" depends="package-uncompressed">
+ <target name="build-compressed" depends="build-uncompressed">
<exec executable="java">
<arg line='-jar tools/compiler.jar
--js ${build_dir}/script_uncompressed.js
@@ -80,7 +80,9 @@
</target>
- <target name="package" depends="package-uncompressed,package-compressed,copy-wrappers">
+ <target name="build" depends="build-uncompressed,build-compressed" />
+
+ <target name="package" depends="clean,build,copy-wrappers">
<!-- Create distribution bundle -->
<zip destfile="${build_dir}/PIE.zip" basedir="${build_dir}"/>
</target>
Please sign in to comment.
Something went wrong with that request. Please try again.