</target>
<!-- delete and create the DEPLOY dir again -->
- <target name="init" depends="git-buildnumber,svn-buildnumber,deployLocales">
+ <target name="build-number" depends="git-buildnumber,svn-buildnumber">
<echo>Build Number ${build_number}</echo>
<copy file="version.as.template" tofile="version.as" overwrite="true" />
<replace file="version.as" token="@@@buildnumber@@@" value="${build_number}" />
</target>
+ <target name="init" depends="build-number, deployLocales">
+ </target>
+
+ <target name="init-no-locales" depends="build-number">
+ </target>
+
<!-- Build and output potlatch2.swf in debug mode -->
<target name="debug" depends="init">
<mxmlc file="potlatch2.mxml">
</mxmlc>
</target>
+ <target name="debug-no-locales" depends="init-no-locales">
+ <mxmlc file="potlatch2.mxml">
+ <load-config filename="${FLEX_HOME}/frameworks/flex-config.xml"/>
+ <load-config filename="debug-config.xml"/>
+ <source-path path-element="${FLEX_HOME}/frameworks"/>
+ <compiler.debug>true</compiler.debug>
+ </mxmlc>
+ </target>
+
<!-- Build and output potlatch2.swf in release mode -->
<target name="release" depends="init"> <!-- FIXME convention is dist not release -->
<mxmlc file="potlatch2.mxml">
</mxmlc>
</target>
+ <target name="release-no-locales" depends="init-no-locales"> <!-- FIXME convention is dist not release -->
+ <mxmlc file="potlatch2.mxml">
+ <load-config filename="${FLEX_HOME}/frameworks/flex-config.xml"/>
+ <source-path path-element="${FLEX_HOME}/frameworks"/>
+ <compiler.debug>false</compiler.debug>
+ </mxmlc>
+ </target>
+
<target name="halcyon">
<mxmlc file="halcyon_viewer.as" />
</target>
<!-- note that there's an asdoc target in Flex 4, if/when we move to that -->
<target name="docs" depends="manifests,makeLocalesList">
<exec executable="${ASDOC}" failonerror="true">
- <arg line="-source-path ."/>
- <arg line="-doc-sources net/systemeD/"/>
+ <arg line="-source-path=."/>
+ <arg line="-doc-sources=net/systemeD/"/>
<arg line="-external-library-path=lib/"/>
<arg line="-external-library-path=${FLEX_HOME}/frameworks/libs/"/>
<arg line="-external-library-path=${FLEX_HOME}/frameworks/libs/player/10.2/"/>
+ <arg line="-compiler.theme ${flexlib}/themes/Halo/halo.swc"/>
<arg line="-lenient"/>
- <arg line="-target-player 10.2.0"/>
- <arg line="-exclude-classes ${org_classes} ${it_classes} ${hxasm_classes} ${com_classes}"/>
- <arg line="-output resources/docs/"/>
- <arg line="-window-title 'Halcyon and Potlatch2 Developer documentation'" />
- <arg line="-main-title 'Halcyon and Potlatch2 Developer documentation'" />
- <arg line="-footer 'Found an error? Help us fix it. http://wiki.openstreetmap.org/wiki/Potlatch2'"/>
+ <arg line="-target-player=10.2.0"/>
+ <arg line="-exclude-classes=${org_classes},${it_classes},${hxasm_classes},${com_classes}"/>
+ <arg line="-output=resources/docs/"/>
+ <arg line="-window-title='Halcyon and Potlatch2 Developer documentation'" />
+ <arg line="-main-title='Halcyon and Potlatch2 Developer documentation'" />
+ <arg line="-footer='Found an error? Help us fix it. http://wiki.openstreetmap.org/wiki/Potlatch2'"/>
<arg line="-package net.systemeD.controls 'Custom-built controls used in Potlatch2'" />
<arg line="-package net.systemeD.halcyon 'The AS3 rendering library'" />
<arg line="-package net.systemeD.halcyon.connection 'The connection to the main OSM server, and the entities'" />
<arg line="-package net.systemeD.potlatch2.tools 'Data manipulation tools'" />
<arg line="-package net.systemeD.potlatch2.utils 'Data loading utilities'" />
- <arg line="-left-frameset-width 300" />
- <arg line="-locale=${locales.list}" />
- <arg line="-allow-source-path-overlap true" />
+ <arg line="-left-frameset-width=300" />
+ <arg line="-allow-source-path-overlap=true" />
</exec>
</target>
<fileset id="com_sources" dir="${basedir}/com/" />
<!-- convert the names of excluded classes to packages with class names -->
- <pathconvert property="com_classes" pathsep=" " refid="com_sources">
+ <pathconvert property="com_classes" pathsep="," refid="com_sources">
<chainedmapper>
<globmapper from="${basedir}/*" to="*"/>
<mapper type="package" from="*.as" to="*"/>
<!-- Get the list of all files in the org directory -->
<fileset id="org_sources" dir="${basedir}/org/" />
<!-- convert the names of excluded classes to packages with class names -->
- <pathconvert property="org_classes" pathsep=" " refid="org_sources">
+ <pathconvert property="org_classes" pathsep="," refid="org_sources">
<chainedmapper>
<globmapper from="${basedir}/*" to="*"/>
<mapper type="package" from="*.as" to="*"/>
<fileset id="it_sources" dir="${basedir}/it/" />
<!-- convert the names of excluded classes to packages with class names -->
- <pathconvert property="it_classes" pathsep=" " refid="it_sources">
+ <pathconvert property="it_classes" pathsep="," refid="it_sources">
<chainedmapper>
<globmapper from="${basedir}/*" to="*"/>
<mapper type="package" from="*.as" to="*"/>
<fileset id="hxasm_sources" dir="${basedir}/hxasm/" />
<!-- convert the names of excluded classes to packages with class names -->
- <pathconvert property="hxasm_classes" pathsep=" " refid="hxasm_sources">
+ <pathconvert property="hxasm_classes" pathsep="," refid="hxasm_sources">
<chainedmapper>
<globmapper from="${basedir}/*" to="*"/>
<mapper type="package" from="*.as" to="*"/>
<target name="clean"
description="clean up" >
- <!-- Delete the ${build} and ${dist} directory trees -->
- <!--
-
- FIXME what is supposed to be cleaned?
-
- <delete dir="${build}"/>
- <delete dir="${dist}"/>
-
- -->
+ <delete dir="${basedir}/resources/generated"/>
+ <delete dir="${basedir}/resources/locales"/>
+ <delete>
+ <fileset dir="${basedir}/resources" includes="potlatch2.swf*"/>
+ </delete>
</target>