Retrotranslator tryout
starksm64 Jan 3, 2006 6:40 PMSo the Retrotranslator(http://retrotranslator.sourceforge.net) seems decent and is more complete than our retro weave effort so I would like to try it out on the jbossws-1.0 effort to validate a jdk14 compatible translation of this stack can pass all of the jboss4.0.x webservice tests.
I have validated that the Retrotranslator can translate the current jdk5 compiled code by updating the compile-classes15 target:
<target name="compile-classes15" depends="init" if="HAVE_JDK_1.5">
<mkdir dir="${build.classes}"/>
<javac destdir="${build.classes}"
optimize="${javac.optimize}"
target="1.5"
source="1.5"
debug="${javac.debug}"
depend="${javac.depend}"
verbose="${javac.verbose}"
deprecation="${javac.deprecation}"
includeAntRuntime="${javac.include.ant.runtime}"
includeJavaRuntime="${javac.include.java.runtime}"
failonerror="${javac.fail.onerror}">
<src path="${source.java}"/>
<classpath refid="javac.classpath"/>
</javac>
<!-- The default location is in this directory -->
<property name="retrotranslator.dist" value="/cvs/JBossHead/jbossretro/Retrotranslator-0.9.5-bin" />
<property name="jdk14.home" value="/usr/java/j2sdk1.4.2_09" />
<path id="tests.classpath">
<fileset dir="${retrotranslator.dist}">
<include name="retrotranslator-runtime.jar" />
<include name="retrotranslator-transformer.jar" />
</fileset>
</path>
<taskdef name="retro"
classname="net.sf.retrotranslator.transformer.RetrotranslatorTask"
classpathref="tests.classpath" />
<mkdir dir="output/classes14" />
<retro destdir="output/classes14"
verify="true"
failonwarning="true">
<!-- Apparently needs the 14 rt.jar -->
<classpath location="${jdk14.home}/jre/lib/rt.jar" />
<classpath refid="tests.classpath" />
<classpath refid="javac.classpath" />
<src path="output/classes" />
</retro>
</target>
The Retrotranslator-0.9.5 jars have since been added to the binary repository under retrotranslator/0.9.5.
Some additional work is needed to refactor some of the external dependencies on the server, etc module classes I would imagine. Can we work towards getting a jdk14 packaging of the webservices jars/sar into the repository for testing against jboss4.0.x?