Load the environment as properties and add an example to the build.properties
authorTom Hughes <tom@compton.nu>
Thu, 4 Nov 2010 12:01:42 +0000 (12:01 +0000)
committerTom Hughes <tom@compton.nu>
Thu, 4 Nov 2010 12:01:42 +0000 (12:01 +0000)
template showing how to inherit FLEX_HOME from the environment.

build.properties.template
build.xml

index b42f38e..dca67f1 100644 (file)
@@ -1,6 +1,7 @@
 # change this to your Flex SDK directory path
 # e.g. FLEX_HOME=/home/andy/bin/flex/
 # e.g. FLEX_HOME=C:/Program Files/Adobe/Flex Builder 3/sdks/3.5.0
+# e.g. FLEX_HOME=${env.FLEX_HOME}
 FLEX_HOME=/path/to/your/flex/sdk
 
 # this points to your project's src directory
index 982b27f..ed9062b 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -1,5 +1,8 @@
 <project name="Potlatch2 ├╝ber compile system" default="debug">
 
+  <!-- load properties from the environment -->
+  <property environment="env" />
+
   <!-- load previously defined configuration properties file -->
   <property file="build.properties" />
 
@@ -53,4 +56,4 @@
   <target name="halcyon">
     <mxmlc file="halcyon_viewer.as" />
   </target>
-</project>
\ No newline at end of file
+</project>