harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ahmed Saad <myanywh...@gmail.com>
Subject [compiler] JDT batch mode
Date Sat, 21 May 2005 00:55:14 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message