| 
What this is
 Other links
 The source code
<?xml version="1.0" encoding="UTF-8"?>
<project name="Build ActionScript sample" default="build-all" basedir=".">
	<target name="init">
		<property environment="env"/>
			
		<property name="mxml.file" value="Draw2dConnection.mxml"/>
		<property name="main.class" value="org/eclipse/swt/e4/examples/draw2d/Example2.java"/>
		<property name="projectdir" value="../.."/>
		<property file="../flex.properties"/>
	</target>
	
	<target name="build-all">
		<antcall target="build-as"/>
		<antcall target="build-swf"/>
	</target>
		
	<target name="build-as" depends="init">
		<mkdir dir="buildtmp"/>
		<delete>
			<fileset dir="buildtmp"/>
		</delete>
		<java jar="${projectdir}/../../eca-export/eca.jar" fork="true">
			<arg value="-bootclasspath"/>
			<arg value="buildtmp"/>
			<arg value="-sourcepath"/>
			<arg path="${projectdir}/../org.eclipse.draw2d/src;${projectdir}/../org.eclipse.draw2d.examples/src;${source.path};${swt.source.path}"/>
			<arg value="-d"/>
			<arg value="buildtmp"/>
			<arg value="${projectdir}/src/${main.class}"/>
		</java>
	</target>
	
	<target name="build-swf" depends="init">
		<copy todir="buildtmp">
			<fileset dir="resources"/>
		</copy>
		<copy todir="buildtmp">
			<fileset dir="${projectdir}/src/org/eclipse/swt/e4/examples/draw2d" includes="*.gif"/>
		</copy>
		<exec 	
			executable="${env.FLEX_SDK}\\bin\\mxmlc.exe"
			dir="buildtmp">
			<arg line="-debug=false -use-network=true -strict=true ${mxml.file}"/>
		</exec>
		<copy todir="bin">
			<fileset dir="buildtmp" includes="*.swf"/>
		</copy>
	</target>
	
	<target name="clean">
		<delete dir="buildtmp"/>
	</target>		
	
</project>
 | 
| ... this post is sponsored by my books ... | |
         
           #1 New Release!  | 
      
         
           FP Best Seller  | 
  
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse 
URI on this website is
paid back to open source projects.