ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hanasaki JiJi <hanas...@hanaden.com>
Subject SOLUTION: ANT 1.5.1 usage with JSR14 Java Generics (ok its a temp patch)
Date Mon, 31 Mar 2003 19:11:50 GMT
OK!  here are the steps

1. install the jsr14 beta and make sure it works with the makefile 
provided by sun
2. rename the distributed 1.4.1 compiler from "javac" to "javac.orig"
3. copy the JSR1.4 javac script over the j2se1.4.1 javac compiler
4. edit the copied batch file as below
	<replace "javac" with "javac.orig">
<=== NOTE: THE ANT <javac TASK IN BUILD.XML FILES WILL NEED TO
	HAVE FORK = "TRUE"

	*** DON'T FORGET TO MAKE BACKUPS FIRST
	*** INCASE SOMETHING GOES WRONG
====>

===================== ORIGINAL FROM JSR14 BETA ===========
exec ${J2SE14}/bin/javac
	-J-Xbootclasspath/p:${JSR14DISTR}/javac.jar -bootclasspath
	${JSR14DISTR}/collect.jar:${J2SE14}/jre/lib/rt.jar
	-source 1.5 "$@"

============== REVISED ===================================
exec ${J2SE14}/bin/javac.orig
	-J-Xbootclasspath/p:${JSR14DISTR}/javac.jar -bootclasspath
	${JSR14DISTR}/collect.jar:${J2SE14}/jre/lib/rt.jar
	-source 1.5 "$@"

-- 
=================================================================
= Management is doing things right; leadership is doing the     =
=       right things.    - Peter Drucker                        =
=_______________________________________________________________=
=     http://www.sun.com/service/sunps/jdc/javacenter.pdf       =
=  www.sun.com | www.javasoft.com | http://wwws.sun.com/sunone  =
=================================================================


Mime
View raw message