Permalink
Browse files

Add experimental 'serve' task.

Bundle simple web server for those time you need to test
thru http protocol.
  • Loading branch information...
1 parent 4265cec commit f0aeb04493db3825972f3ff234c2fde96e054137 @4d47 committed Jul 30, 2012
View
@@ -20,6 +20,8 @@
<property name="build-config" location="${build}/build-config.xml" />
<property name="test-reports" location="test-reports" />
<property name="mxmlc.maxmemory" value="512m" />
+ <property name="serve.port" value="8080" />
+ <property name="serve.root" value="${bin}" />
<property environment="env." />
<property name="FLEX_HOME" value="${env.FLEX_HOME}" />
@@ -145,6 +147,22 @@
</scp>
</target>
+ <target name="serve">
+ <condition property="os-ext" value=".exe">
+ <os family="windows" />
+ </condition>
+ <condition property="os-ext" value=".mac">
+ <and> <os family="unix" /> <os family="mac" /> </and>
+ </condition>
+ <condition property="os-ext" value=".linux">
+ <os family="unix" />
+ </condition>
+ <echo>Serving ${serve.root} on http://localhost:${serve.port} ...</echo>
+ <exec executable="${build.lib}/mongoose-3.1${os-ext}">
+ <arg line="-r ${serve.root} -p ${serve.port}" />
+ </exec>
+ </target>
+
<!--
Boring Stuff Above
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.

0 comments on commit f0aeb04

Please sign in to comment.