Skip to content

Instantly share code, notes, and snippets.

@gkossakowski
Created July 28, 2011 08:36
Show Gist options
  • Save gkossakowski/1111216 to your computer and use it in GitHub Desktop.
Save gkossakowski/1111216 to your computer and use it in GitHub Desktop.
+ <target name="quick.jdk2ikvm" depends="quick.pre-jdk2ikvm" unless="quick.jdk2ikvm.available">
+ <stopwatch name="quick.jdk2ikvm.timer"/>
+ <mkdir dir="${build-quick.dir}/classes/jdk2ikvm-plugin"/>
+ <scalacfork
+ destdir="${build-quick.dir}/classes/jdk2ikvm-plugin"
+ compilerpathref="locker.classpath"
+ params="${scalac.args.quick}"
+ srcdir="${src.dir}/jdk2ikvm/src"
+ jvmargs="${scalacfork.jvmargs}">
+ <include name="**/*.scala"/>
+ <compilationpath>
+ <pathelement location="${build-quick.dir}/classes/library"/>
+ <pathelement location="${build-quick.dir}/classes/compiler"/>
+ <pathelement location="${lib.dir}/forkjoin.jar"/>
+ </compilationpath>
+ </scalacfork>
+ <copy
+ file="${src.dir}/jdk2ikvm/resources/scalac-plugin.xml"
+ todir="${build-quick.dir}/classes/jdk2ikvm-plugin"/>
+ <!-- not very nice to create jar here but needed to load plugin -->
+ <!-- <mkdir dir="${build-quick.dir}/misc/scala-devel/goto"/> -->
+ <jar destfile="${build-quick.dir}/misc/scala-devel/jdk2ikvm.jar">
+ <fileset dir="${build-quick.dir}/classes/jdk2ikvm-plugin"/>
+ </jar>
+ <touch file="${build-quick.dir}/jdk2ikvm.complete" verbose="no"/>
+ <stopwatch name="quick.jdk2ikvm.timer" action="total"/>
+ </target>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment