commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbe...@apache.org
Subject svn commit: r988269 - /commons/sandbox/gsoc/2010/scxml-js/trunk/build.xml
Date Mon, 23 Aug 2010 19:44:08 GMT
Author: jbeard
Date: Mon Aug 23 19:44:07 2010
New Revision: 988269

URL: http://svn.apache.org/viewvc?rev=988269&view=rev
Log:
Created build.xml ant build file to replace the Makefile that I checked in before. Right now,
it includes tasks for building a single js file, class file, and jar for the scxml-js compiler.

Added:
    commons/sandbox/gsoc/2010/scxml-js/trunk/build.xml   (with props)

Added: commons/sandbox/gsoc/2010/scxml-js/trunk/build.xml
URL: http://svn.apache.org/viewvc/commons/sandbox/gsoc/2010/scxml-js/trunk/build.xml?rev=988269&view=auto
==============================================================================
--- commons/sandbox/gsoc/2010/scxml-js/trunk/build.xml (added)
+++ commons/sandbox/gsoc/2010/scxml-js/trunk/build.xml Mon Aug 23 19:44:07 2010
@@ -0,0 +1,86 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<project name="scxml-js" basedir="." default="all">
+
+	<target name="clean">
+	</target>
+	
+	<target name="init">
+		<mkdir dir="build"/>
+	</target>
+
+	<target name="compile-single-js">
+		<java classname="org.mozilla.javascript.tools.shell.Main">
+			<classpath>
+				<pathelement location="lib/java/js.jar"/>
+				<pathelement location="lib/js/requirejs/build/lib/closure/compiler.jar"/>
+			</classpath>
+			<arg value="${basedir}/lib/js/requirejs/build/build.js"/>
+			<arg value="${basedir}/lib/js/requirejs/build"/>
+			<arg value="name=src/javascript/scxml/cgf/build/rhino"/> 
+			<arg value="out=build/main-built.js"/>
+			<arg value="baseUrl=."/>
+			<arg value="includeRequire=true"/>
+			<arg value="inlineText=true"/> 
+			<arg value="optimize=none"/>
+		</java>
+	</target>
+
+	<target name="compile-single-class" depends="compile-single-js">
+		<java classname="org.mozilla.javascript.tools.jsc.Main">
+			<classpath>
+				<pathelement location="lib/java/js.jar"/>
+			</classpath>
+			<arg value="build/main-built.js"/>
+		</java>
+	</target>
+
+	<target name="run-single-class" depends="compile-single-class">
+		<java classname="main_built" output="build/out.js">
+			<classpath>
+				<pathelement location="lib/java/js.jar"/>
+				<pathelement location="lib/java/commons-cli.jar"/>
+				<pathelement location="lib/java/serializer.jar"/>
+				<pathelement location="lib/java/xalan.jar"/>
+				<pathelement location="lib/java/xercesImpl.jar"/>
+				<pathelement location="lib/java/xml-apis.jar"/>
+				<pathelement location="build/"/>
+			</classpath>
+			<arg value="--backend"/>
+			<arg value="state"/>
+			<arg value="--beautify"/>
+			<arg value="test/parallel/TestParallel.xml"/>
+		</java>
+	</target>
+
+	<target name="jar-single-class" depends="compile-single-class">
+	    <jar destfile="build/scxml-js.jar"
+		 basedir="build"
+		 includes="main_built.class">
+	      <manifest>
+		<attribute name="Main-Class" value="main_built" />
+	      </manifest>
+	    </jar>
+	</target>
+
+
+	<target name="run-single-jar" depends="jar-single-class">
+		<java classname="main_built" output="build/out.js">
+			<classpath>
+				<pathelement location="lib/java/js.jar"/>
+				<pathelement location="lib/java/commons-cli.jar"/>
+				<pathelement location="lib/java/serializer.jar"/>
+				<pathelement location="lib/java/xalan.jar"/>
+				<pathelement location="lib/java/xercesImpl.jar"/>
+				<pathelement location="lib/java/xml-apis.jar"/>
+				<pathelement location="build/scxml-js.jar"/>
+			</classpath>
+			<arg value="--backend"/>
+			<arg value="state"/>
+			<arg value="--beautify"/>
+			<arg value="test/parallel/TestParallel.xml"/>
+		</java>
+	</target>
+
+	<target name="all" depends="run-single-jar"/>
+</project>
+

Propchange: commons/sandbox/gsoc/2010/scxml-js/trunk/build.xml
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message