You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@harmony.apache.org by Ahmed Saad <my...@gmail.com> on 2005/05/21 02:55:14 UTC

[compiler] JDT batch mode

hi all.. as i posted before i was writing a wrapper for JDT to feel like 
"javac" (The TCK requires a JVM to look and feel like the Sun JVM, including 
the java/javac command lines as noted by Stefano Mazzocchi)... i read the 
jasper JDTCompiler class in the tomcat source code ... and i was googling 
for more info about how to programatically compile java sources with JDT... 
i found that JDT developers have already implemented such "batch" wrapper 
meaning so it's already done 
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/jdt-core-home/howto/batch%20compile/batchCompile.html

It supports all standard javac options...except for "-J option" which passes 
the specified option to the "java" launcher called by javac (can be 
implemented at the native binary for javac) and the "-X" options are also 
supported but using different names ( like "-warn:xx" instead of "-Xlint:xx" 
but the warning names are different ).

for more about compiling with JDT
http://www-128.ibm.com/developerworks/opensource/library/os-ast/
http://help.eclipse.org/help30/index.jsp?topic=/org.eclipse.jdt.doc.isv/guide/jdt_api_compile.htm

regards,
ahmed