Permalink
Browse files

Adjust Ant build for the new project structure and the separate util

artifact produced by this project (UTL-7)
  • Loading branch information...
1 parent c79c3ac commit a261b8a35ae1ed88e03de27570af4e208c17d4c5 Jens Halm committed May 31, 2011
Showing with 92 additions and 0 deletions.
  1. +2 −0 .gitignore
  2. +11 −0 build/build.properties.tmpl
  3. +52 −0 build/build.xml
  4. +27 −0 build/config.xml
View
@@ -1,3 +1,5 @@
/.settings
/bin
/.project
+/release
+build.properties
@@ -0,0 +1,11 @@
+
+# save a copy of this file as build.properties and then edit the properties below
+
+flex3.sdk = <edit>
+flex4.sdk = <edit>
+
+# for mac uncomment:
+# compc = compc
+
+# for win uncomment:
+# compc = compc.exe
View
@@ -0,0 +1,52 @@
+<project name="Parsley Release Zip">
+
+
+ <property file="build.properties" />
+
+ <property name="version" value="3.0.0-SNAPSHOT"/>
+ <property name="project.dir" value="${basedir}/.."/>
+ <property name="release.target.dir" value="${project.dir}/release/${version}"/>
+
+
+ <target name="release" description="Create Release Zip">
+
+ <antcall target="clean"/>
+ <antcall target="compile"/>
+ <antcall target="copy"/>
+ <antcall target="zip"/>
+
+ </target>
+
+ <target name="clean">
+ <delete dir="${release.target.dir}"/>
+ <mkdir dir="${release.target.dir}"/>
+ <mkdir dir="${release.target.dir}/libs"/>
+ </target>
+
+ <target name="compile">
+ <exec executable="${flex3.sdk}/bin/${compc}" dir="${basedir}">
+
+ <arg line="-load-config+=config.xml" />
+
+ <arg line="+release=${release.target.dir}/release" />
+ <arg line="+project=${project.dir}" />
+ <arg line="+version=${version}" />
+
+ </exec>
+ </target>
+
+ <target name="copy">
+ <copy todir="${release.target.dir}">
+ <fileset dir="${project.dir}" includes="license.txt"/>
+ </copy>
+ <copy todir="${release.target.dir}/libs">
+ <fileset dir="${project.dir}/libs" includes="*.swc"/>
+ </copy>
+ </target>
+
+ <target name="zip">
+ <zip basedir="${release.target.dir}" zipfile="${release.target.dir}/../spicelib-util-${version}.zip"/>
+ </target>
+
+
+</project>
View
@@ -0,0 +1,27 @@
+<?xml version="1.0"?>
+<flex-config>
+
+ <compiler>
+
+ <source-path>
+ <path-element>${project}/src/main</path-element>
+ </source-path>
+
+ <external-library-path>
+ <path-element>${flexlib}/libs/player/9/playerglobal.swc</path-element>
+ <path-element>${flexlib}/libs/flex.swc</path-element>
+ <path-element>${flexlib}/libs/framework.swc</path-element>
+ </external-library-path>
+
+ <verbose-stacktraces>true</verbose-stacktraces>
+ <debug>true</debug>
+
+ </compiler>
+
+ <include-sources>
+ <path-element>${project}/src/main</path-element>
+ </include-sources>
+
+ <output>${release}/spicelib-util-${version}.swc</output>
+
+</flex-config>

0 comments on commit a261b8a

Please sign in to comment.