BTW, just for completeness.
I resolved the thing with the OoM exception using <javac>.
Now I call the sun.tools.javac.Main directly via <java>
And give a new paramter for the underlying JVM:
Building the paths was much more difficult, but that is another thing.
here the snippet:
<java classname="sun.tools.javac.Main" fork="yes" failonerror="true">
<arg line="-classpath ${project.class.path} -sourcepath ${src.dir} -d
${build.dir} ${compile.source.path.unix}"/>
<jvmarg value="-Xmx1024m"/>
<jvmarg value="-XX:MaxPermSize=150m"/>
<!--<jvmarg value="-verbose"/>-->
<classpath refid="project.class.path"/>
<classpath refid="compile.project.class.path"/>
</java>
HTH others,
Markus
|