Hi,
A quick ant question, is there any manner to have a trace somewhere if
I deploy my application with a build.xml?
How do you deal with this issue?
Thanks in advance.
Diego.
Joachim wrote:
Put the xml between start and end of file in an build.xml where the
other build files are located.
Change the mtasc filepath to your filepath.
Now you can start ...
type 'ant' and enter while in the root folder.
default is the buildTrace, if you want to build without trace type 'ant build'
below you find the file,
Enjoy
Joachim
-----------------------------Start of File -----------------------------------
<!--
@author Joachim Van der Hoeven
-->
<project name="OpenStep" basedir="." default="buildTrace">
<!-- path to mtasc -->
<!-- example windows : C:\mtasc\mtasc.exe -->
<!-- example linux : /usr/local/bin/mtasc -->
<property name="mtasc" value="C:\mtasc\mtasc-1.09\mtasc.exe"/>
<!-- Project directories -->
<property name="dir.src" value="src"/>
<property name="dir.dist" value="dist"/>
<!-- files -->
<property name="swfFile" value="ActionStep.swf " />
<property name="startAS" value="org/actionstep/test/ASTestMain" />
<!-- targets -->
<target name="clean" description="clean">
<delete dir="${dir.dist}"/>
</target>
<target name="prepare" description="prepare">
<mkdir dir="${dir.dist}"/>
<tstamp/>
</target>
<target name="buildTrace" depends="prepare">
<exec executable="${mtasc}">
<arg value="-cp" />
<arg value="${dir.src}" />
<arg value="-swf" />
<arg value="${dir.dist}/${swfFile}" />
<arg value="-header" />
<arg value="800:600:20" />
<arg value="-trace" />
<arg value="org.actionstep.ASDebugger.trace" />
<arg value="-pack" />
<arg value="org/actionstep" />
<arg value="-pack" />
<arg value="org/actionstep/constants" />
<arg value="-pack" />
<arg value="org/actionstep/images" />
<arg value="-main" />
<!-- <arg value="-v" /> -->
<arg value="${startAS}" />
</exec>
</target>
<target name="build" depends="prepare">
<exec executable="${mtasc}">
<arg value="-cp" />
<arg value="${dir.src}" />
<arg value="-swf" />
<arg value="${dir.dist}/${swfFile}" />
<arg value="-header" />
<arg value="800:600:20" />
<arg value="-pack" />
<arg value="org/actionstep" />
<arg value="-pack" />
<arg value="org/actionstep/constants" />
<arg value="-pack" />
<arg value="org/actionstep/images" />
<arg value="-main" />
<!-- <arg value="-v" /> -->
<arg value="${startAS}" />
</exec>
</target>
</project>
-----------------------------End of File -----------------------------------
_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org
_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org