Permalink
Browse files

Whitespace

  • Loading branch information...
1 parent c3be7c6 commit ed914eb8867245a7a5b3fa7c1a815c6a18dac65a Gregory Burd committed Jun 5, 2012
Showing with 164 additions and 164 deletions.
  1. +164 −164 build.xml
View
328 build.xml
@@ -1,52 +1,52 @@
<?xml version="1.0"?>
<project name="erjang" default="all">
- <property name="erjang.version" value="0.3" />
- <property file="erjang_cfg.properties" />
-
- <path id="erjang.classpath">
- <pathelement location="target/classes/" />
- <pathelement location="lib/js.jar" />
- <pathelement location="lib/kilim.jar" />
- <pathelement location="lib/OtpErlang.jar" />
- <pathelement location="lib/junit.jar" />
- <pathelement location="lib/clj-ds.jar" />
- <pathelement location="lib/antlr-3.2.jar" />
- <pathelement path="${java.class.path}" />
- </path>
- <path id="erjang.testwovenclasspath">
- <pathelement location="target/classes/" />
- <pathelement location="target/test-classes/" />
- <pathelement location="lib/kilim.jar" />
- <pathelement location="lib/OtpErlang.jar" />
- <pathelement location="lib/clj-ds.jar" />
- <pathelement location="lib/junit.jar" />
- <pathelement location="lib/antlr-3.2.jar" />
- <pathelement path="${java.class.path}" />
- </path>
-
- <target name="all" depends="clean,weave,jar" />
+ <property name="erjang.version" value="0.3" />
+ <property file="erjang_cfg.properties" />
+
+ <path id="erjang.classpath">
+ <pathelement location="target/classes/" />
+ <pathelement location="lib/js.jar" />
+ <pathelement location="lib/kilim.jar" />
+ <pathelement location="lib/OtpErlang.jar" />
+ <pathelement location="lib/junit.jar" />
+ <pathelement location="lib/clj-ds.jar" />
+ <pathelement location="lib/antlr-3.2.jar" />
+ <pathelement path="${java.class.path}" />
+ </path>
+ <path id="erjang.testwovenclasspath">
+ <pathelement location="target/classes/" />
+ <pathelement location="target/test-classes/" />
+ <pathelement location="lib/kilim.jar" />
+ <pathelement location="lib/OtpErlang.jar" />
+ <pathelement location="lib/clj-ds.jar" />
+ <pathelement location="lib/junit.jar" />
+ <pathelement location="lib/antlr-3.2.jar" />
+ <pathelement path="${java.class.path}" />
+ </path>
+
+ <target name="all" depends="clean,weave,jar" />
<target name="all_with_test" depends="all,weavetest" />
- <target name="test" depends="all_with_test,testwoven,perf_test" />
+ <target name="test" depends="all_with_test,testwoven,perf_test" />
- <target name="gen-interpreter">
- <echo message="generating interpreter code ===================" />
- <exec dir="src/main/java/erjang/beam/interpreter" executable="perl" input="src/main/java/erjang/beam/interpreter/ops.spec" failonerror="yes">
- <arg value="-W"/>
- <arg value="ErjIG_Main.pl"/>
- </exec>
- </target>
+ <target name="gen-interpreter">
+ <echo message="generating interpreter code ===================" />
+ <exec dir="src/main/java/erjang/beam/interpreter" executable="perl" input="src/main/java/erjang/beam/interpreter/ops.spec" failonerror="yes">
+ <arg value="-W"/>
+ <arg value="ErjIG_Main.pl"/>
+ </exec>
+ </target>
<target name="create-dirs">
<mkdir dir="target" />
- <mkdir dir="target/classes" />
- <mkdir dir="target/test-classes" />
- <mkdir dir="target/test-beam" />
- <mkdir dir="target/compiled" />
+ <mkdir dir="target/classes" />
+ <mkdir dir="target/test-classes" />
+ <mkdir dir="target/test-beam" />
+ <mkdir dir="target/compiled" />
</target>
<target name="gen-test-classes" description="generate test classes based on a generic one" depends="create-dirs">
- <echo message="generating test classes ===================" />
- <java classname="erjang.AllTests"
+ <echo message="generating test classes ===================" />
+ <java classname="erjang.AllTests"
failonerror="true"
fork="true">
<jvmarg value="-Derjang.configfile=erjang_cfg.properties" />
@@ -56,11 +56,11 @@
</classpath>
<classpath refid="erjang.classpath" />
</java>
- </target>
+ </target>
- <target name="compile" depends="gen-interpreter,create-dirs">
- <echo message="Compiling src ===================" />
- <javac debug="true"
+ <target name="compile" depends="gen-interpreter,create-dirs">
+ <echo message="Compiling src ===================" />
+ <javac debug="true"
srcdir="src/main/java"
destdir="target/classes"
classpathref="erjang.classpath"
@@ -69,161 +69,161 @@
source="1.5"
target="1.5"
includeantruntime="false" />
- </target>
+ </target>
- <target name="testcompile" depends="compile">
- <echo message="Compiling test ===================" />
- <javac debug="true" srcdir="src/test/java" destdir="target/test-classes" debuglevel="lines,vars,source">
+ <target name="testcompile" depends="compile">
+ <echo message="Compiling test ===================" />
+ <javac debug="true" srcdir="src/test/java" destdir="target/test-classes" debuglevel="lines,vars,source">
<classpath>
<pathelement location="target/test-classes" />
</classpath>
<classpath refid="erjang.classpath" />
</javac>
- </target>
+ </target>
<target name="gen-test-compile" depends="testcompile,gen-test-classes">
- <echo message="Compiling generated test classes ===================" />
- <javac debug="true" srcdir="src/test/java" destdir="target/test-classes" debuglevel="lines,vars,source">
+ <echo message="Compiling generated test classes ===================" />
+ <javac debug="true" srcdir="src/test/java" destdir="target/test-classes" debuglevel="lines,vars,source">
<classpath>
<pathelement location="target/test-classes" />
</classpath>
<classpath refid="erjang.classpath" />
</javac>
- </target>
-
- <target name="weave" depends="compile">
- <echo message="Weaving files ===================" />
- <java classname="kilim.tools.Weaver" fork="yes">
- <classpath refid="erjang.classpath" />
- <assertions>
- <enable />
- </assertions>
- <arg value="-d" />
- <arg value="./target/classes" />
- <arg line="./target/classes" />
- </java>
+ </target>
+
+ <target name="weave" depends="compile">
+ <echo message="Weaving files ===================" />
+ <java classname="kilim.tools.Weaver" fork="yes">
+ <classpath refid="erjang.classpath" />
+ <assertions>
+ <enable />
+ </assertions>
+ <arg value="-d" />
+ <arg value="./target/classes" />
+ <arg line="./target/classes" />
+ </java>
</target>
<target name="weavetest" depends="gen-test-compile">
- <echo message="Weaving test classes ==============" />
- <java classname="kilim.tools.Weaver" fork="yes">
+ <echo message="Weaving test classes ==============" />
+ <java classname="kilim.tools.Weaver" fork="yes">
<classpath refid="erjang.classpath" />
- <assertions>
- <enable />
- </assertions>
- <arg value="-d" />
- <arg value="./target/test-classes" />
- <arg line="./target/test-classes" />
- </java>
- </target>
-
- <target name="clean">
- <echo message="deleting files ===================" />
- <delete>
- <fileset defaultexcludes="no" dir="." includes="*~,#*,foo,bar,x,y" />
- </delete>
- <delete dir="./target" />
- <delete dir="./.erj" />
+ <assertions>
+ <enable />
+ </assertions>
+ <arg value="-d" />
+ <arg value="./target/test-classes" />
+ <arg line="./target/test-classes" />
+ </java>
+ </target>
+
+ <target name="clean">
+ <echo message="deleting files ===================" />
+ <delete>
+ <fileset defaultexcludes="no" dir="." includes="*~,#*,foo,bar,x,y" />
+ </delete>
+ <delete dir="./target" />
+ <delete dir="./.erj" />
<delete>
<fileset dir="src/test/java/erjang" includes="**/*_TEST.java" />
</delete>
- </target>
+ </target>
- <!-- This runs those tests depend on generated classes in testclasses-->
- <target name="testwoven" depends="weavetest">
- <echo message="Testing Tasks ======================" />
+ <!-- This runs those tests depend on generated classes in testclasses-->
+ <target name="testwoven" depends="weavetest">
+ <echo message="Testing Tasks ======================" />
<mkdir dir="test-outputs" />
- <junit fork="yes" showoutput="yes" printsummary="true">
- <formatter type="xml"/> <!-- For CI server use. -->
+ <junit fork="yes" showoutput="yes" printsummary="true">
+ <formatter type="xml"/> <!-- For CI server use. -->
<!-- <formatter type="brief" usefile="false"/> -->
- <classpath>
+ <classpath>
<pathelement location="target/test-classes" />
<pathelement location="target/test-classes/generated/classes" />
</classpath>
<classpath refid="erjang.classpath" />
- <assertions><enable /></assertions>
- <jvmarg value="-Xmx700m"/>
+ <assertions><enable /></assertions>
+ <jvmarg value="-Xmx700m"/>
<jvmarg value="-Xss50m"/>
<jvmarg value="-XX:PermSize=128m"/>
<jvmarg value="-XX:MaxPermSize=700m"/>
<jvmarg value="-Derjang.configfile=erjang_cfg.properties" />
- <batchtest todir="test-outputs">
+ <batchtest todir="test-outputs">
<fileset dir="target/test-classes" includes="**/*_TEST.class" />
<!-- <fileset dir="target/test-classes" includes="**/float_tests_erl_TEST.class" />-->
</batchtest>
- </junit>
- </target>
-
- <target name="perf_test" depends="estone_test,boot_stat_test"/>
- <target name="estone_test">
- <exec dir="." executable="bash" failonerror="no">
- <arg value="src/test/shell/run-estone.sh"/>
- <arg value="test-outputs/estone"/>
- </exec>
- </target>
- <target name="boot_stat_test">
- <exec dir="." executable="bash" failonerror="no">
- <arg value="src/test/shell/run-boot.sh"/>
- <arg value="test-outputs/boot-stats"/>
- </exec>
- </target>
-
-
- <target name="jar" description="generate the distribution" depends="clean,weave">
+ </junit>
+ </target>
+
+ <target name="perf_test" depends="estone_test,boot_stat_test"/>
+ <target name="estone_test">
+ <exec dir="." executable="bash" failonerror="no">
+ <arg value="src/test/shell/run-estone.sh"/>
+ <arg value="test-outputs/estone"/>
+ </exec>
+ </target>
+ <target name="boot_stat_test">
+ <exec dir="." executable="bash" failonerror="no">
+ <arg value="src/test/shell/run-boot.sh"/>
+ <arg value="test-outputs/boot-stats"/>
+ </exec>
+ </target>
+
+
+ <target name="jar" description="generate the distribution" depends="clean,weave">
<echo message="Packaging ======================" />
- <copy file="LICENSE" todir="classes/erjang" />
- <copy file="NOTICE" todir="classes/erjang" />
- <copy file="erjang_logo4.png" todir="classes/erjang" />
- <jar jarfile="erjang-${erjang.version}.jar" basedir="target/classes">
- <zipgroupfileset dir="lib" includes="*.jar">
- <exclude name="junit.jar" />
- <exclude name="asm-all-2.2.3.jar" />
- </zipgroupfileset>
- <exclude name="erjang/test/**" />
- <exclude name="erjang/examples/**" />
- <exclude name="erjang/bench/**" />
- <manifest>
- <attribute name="Main-Class" value="erjang.Main" />
- </manifest>
- </jar>
- </target>
-
- <target name="otpjar">
- <jar jarfile="otp-${erjang.otp.version}.jar" basedir="${erjang.otp.root}">
- <exclude name="**/*.so" />
- <exclude name="**/*.dll" />
- <exclude name="**/*.a" />
- <exclude name="**/*.erl" />
- <exclude name="**/bin/beam" />
- <exclude name="**/bin/beam.smp" />
- <exclude name="lib/megaco-*/**" />
- <exclude name="lib/wx-*/**" />
- <exclude name="lib/hipe-*/**" />
- <exclude name="lib/jinterface-*/**" />
- <exclude name="lib/erl_interface-*/**" />
- <exclude name="lib/ic-*/java_src/**" />
- <exclude name="usr/include/**" />
- <exclude name="**/examples/**" />
- </jar>
- </target>
-
- <target name="alljar" depends="jar,otpjar">
- <jar jarfile="erjang-${erjang.version}-otp-${erjang.otp.version}.jar" basedir="${erjang.otp.root}">
- <!-- include all of erjang -->
- <zipgroupfileset dir="." includes="erjang-${erjang.version}.jar" />
- <!-- include all of OTP -->
- <zipgroupfileset dir="." includes="otp-${erjang.otp.version}.jar" />
-
- <manifest>
- <attribute name="Main-Class" value="erjang.Main" />
- </manifest>
- </jar>
- </target>
-
- <target name="javadoc" description="generate Javadoc documentation">
- <javadoc destdir="target/doc">
- <fileset dir="src"><include name="**/*.java"/></fileset>
- </javadoc>
- </target>
+ <copy file="LICENSE" todir="classes/erjang" />
+ <copy file="NOTICE" todir="classes/erjang" />
+ <copy file="erjang_logo4.png" todir="classes/erjang" />
+ <jar jarfile="erjang-${erjang.version}.jar" basedir="target/classes">
+ <zipgroupfileset dir="lib" includes="*.jar">
+ <exclude name="junit.jar" />
+ <exclude name="asm-all-2.2.3.jar" />
+ </zipgroupfileset>
+ <exclude name="erjang/test/**" />
+ <exclude name="erjang/examples/**" />
+ <exclude name="erjang/bench/**" />
+ <manifest>
+ <attribute name="Main-Class" value="erjang.Main" />
+ </manifest>
+ </jar>
+ </target>
+
+ <target name="otpjar">
+ <jar jarfile="otp-${erjang.otp.version}.jar" basedir="${erjang.otp.root}">
+ <exclude name="**/*.so" />
+ <exclude name="**/*.dll" />
+ <exclude name="**/*.a" />
+ <exclude name="**/*.erl" />
+ <exclude name="**/bin/beam" />
+ <exclude name="**/bin/beam.smp" />
+ <exclude name="lib/megaco-*/**" />
+ <exclude name="lib/wx-*/**" />
+ <exclude name="lib/hipe-*/**" />
+ <exclude name="lib/jinterface-*/**" />
+ <exclude name="lib/erl_interface-*/**" />
+ <exclude name="lib/ic-*/java_src/**" />
+ <exclude name="usr/include/**" />
+ <exclude name="**/examples/**" />
+ </jar>
+ </target>
+
+ <target name="alljar" depends="jar,otpjar">
+ <jar jarfile="erjang-${erjang.version}-otp-${erjang.otp.version}.jar" basedir="${erjang.otp.root}">
+ <!-- include all of erjang -->
+ <zipgroupfileset dir="." includes="erjang-${erjang.version}.jar" />
+ <!-- include all of OTP -->
+ <zipgroupfileset dir="." includes="otp-${erjang.otp.version}.jar" />
+
+ <manifest>
+ <attribute name="Main-Class" value="erjang.Main" />
+ </manifest>
+ </jar>
+ </target>
+
+ <target name="javadoc" description="generate Javadoc documentation">
+ <javadoc destdir="target/doc">
+ <fileset dir="src"><include name="**/*.java"/></fileset>
+ </javadoc>
+ </target>
</project>

0 comments on commit ed914eb

Please sign in to comment.