Skip to content

Commit

Permalink
Moving most of runtime-bootstrap to the runtime jar, leaving only the…
Browse files Browse the repository at this point in the history
… Ceylon class loader and launcher
  • Loading branch information
quintesse committed Feb 20, 2013
1 parent 549edd3 commit f836f63
Showing 1 changed file with 28 additions and 13 deletions.
41 changes: 28 additions & 13 deletions build.xml
Expand Up @@ -184,6 +184,30 @@
destdir="${build.classes}" destdir="${build.classes}"
classpathref="compiler.classpath" classpathref="compiler.classpath"
includeantruntime="false"/> includeantruntime="false"/>
<javac debug="true"
srcdir="${runtime-bootstrap.src}"
destdir="${build.classes}"
classpathref="compiler.classpath"
includeantruntime="false"/>
<!-- Need an extra pass for Java 7 testing -->
<delete dir="${build.bootstrap}">
<include name="**/*Main5.class"/>
<include name="**/Java7Checker.class"/>
</delete>
<javac debug="true"
srcdir="${runtime-bootstrap.src}"
destdir="${build.classes}"
classpathref="compiler.classpath"
source="1.5"
target="1.5"
includeantruntime="false">
<include name="**/*Main5.java"/>
<include name="**/Java7Checker.java"/>
</javac>
<!-- Include META-INF -->
<copy todir="${build.classes}">
<fileset dir="${runtime-bootstrap.src}" excludes="**/*.java"/>
</copy>
</target> </target>


<!-- Rule to build runtime jar --> <!-- Rule to build runtime jar -->
Expand All @@ -199,26 +223,17 @@
<!-- Rule to build runtime classes from their Java sources --> <!-- Rule to build runtime classes from their Java sources -->
<target name="bootstrap.classes"> <target name="bootstrap.classes">
<mkdir dir="${build.bootstrap}"/> <mkdir dir="${build.bootstrap}"/>
<javac debug="true"
srcdir="${runtime-bootstrap.src}"
destdir="${build.bootstrap}"
classpathref="compiler.classpath"
includeantruntime="false"/>
<!-- Need an extra pass for Java 7 testing -->
<delete dir="${build.bootstrap}">
<include name="**/*Main5.class"/>
<include name="**/Java7Checker.class"/>
</delete>
<javac debug="true" <javac debug="true"
srcdir="${runtime-bootstrap.src}" srcdir="${runtime-bootstrap.src}"
destdir="${build.bootstrap}" destdir="${build.bootstrap}"
classpathref="compiler.classpath" classpathref="compiler.classpath"
source="1.5" source="1.5"
target="1.5" target="1.5"
includeantruntime="false"> includeantruntime="false">
<include name="**/*Main5.java"/> <include name="**/Launcher.java"/>
<include name="**/Java7Checker.java"/> <include name="**/CeylonClassLoader.java"/>
</javac> </javac>
<!-- Include META-INF -->
<copy todir="${build.bootstrap}"> <copy todir="${build.bootstrap}">
<fileset dir="${runtime-bootstrap.src}" excludes="**/*.java"/> <fileset dir="${runtime-bootstrap.src}" excludes="**/*.java"/>
</copy> </copy>
Expand All @@ -227,7 +242,7 @@
<!-- Rule to build runtime jar --> <!-- Rule to build runtime jar -->
<target name="bootstrap.jar" depends="bootstrap.classes"> <target name="bootstrap.jar" depends="bootstrap.classes">
<mkdir dir="${build.lib}"/> <mkdir dir="${build.lib}"/>
<jar destfile="${bootstrap.lib}"> <jar destfile="${bootstrap.lib}" filesetmanifest="merge">
<fileset dir="${build.bootstrap}"> <fileset dir="${build.bootstrap}">
</fileset> </fileset>
</jar> </jar>
Expand Down

0 comments on commit f836f63

Please sign in to comment.