Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Specify Preloader and Main classes in properties so they can be easil…

…y changed.
  • Loading branch information...
commit 04cffc5e3c01685a27c2b829af2121b91ddc4700 1 parent 67fd323
@djcsdy authored
Showing with 13 additions and 2 deletions.
  1. +13 −2 build.xml
View
15 build.xml
@@ -1,6 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="Ludum Dare Basecode" default="build">
+ <property name="preloader.class" value="net.noiseinstitute.game.Preloader"/>
+ <property name="main.class" value="net.noiseinstitute.game.Main"/>
+
<property name="minimum.ant.version" value="1.8.0"/>
<property environment="env"/>
@@ -46,14 +49,22 @@
</target>
<target name="build">
- <mxmlc file="${src.dir}/net/noiseinstitute/game/Preloader.as"
+ <pathconvert property="preloader.file">
+ <mapper>
+ <unpackagemapper from="${src.dir}/*" to="${src.dir}/*.as"
+ handledirsep="true"/>
+ </mapper>
+ <path path="${src.dir}/${preloader.class}"/>
+ </pathconvert>
+
+ <mxmlc file="${preloader.file}"
output="${build.dir}/Release.swf"
debug="false" strict="true">
<load-config filename="${FLEX_HOME}/frameworks/flex-config.xml"/>
<source-path path-element="${src.dir}"/>
<source-path path-element="${lib.flashpunk.dir}"/>
<source-path path-element="${FLEX_HOME}/frameworks"/>
- <frame label="start" className="net.noiseinstitute.game.Main"/>
+ <frame label="start" className="${main.class}"/>
</mxmlc>
</target>
</project>
Please sign in to comment.
Something went wrong with that request. Please try again.