ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 38144] - New JDT Compiler task
Date Fri, 06 Jan 2006 10:14:07 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38144>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38144





------- Additional Comments From stevel@apache.org  2006-01-06 11:14 -------
Also, that aint how we execute java apps in Ant

(1) you create a new Java() task instance and configure that. That way we handle
all the different platform issues, like special return codes on OpenVMS,
classpath setup, etc.

(2) Please dont try and set the entire command line with something like that

cmd.setExecutable("java -classpath "+JDTCorePath+ "
org.eclipse.jdt.internal.compiler.batch.Main");

That will not work as expected for too many reasons to go into here.

(3) finally, there is no need to include some third party code to get env
variables. If you do (1) properly, you dont need it in the task, but if you do
need to get system variables, we have some broadly tested code in Exec to do
just that, which is what <property env> does.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message