From: Peter C. <cen...@ri...> - 2003-03-03 09:55:17
|
FYI for those using the 1.4.1 Developer Preview on Mac OS X: -- Peter Begin forwarded message: > From: Dwayne Schultz <dw...@sc...> > Date: Wed Feb 26, 2003 5:57:30 PM US/Central > To: jav...@li... > Subject: Obscure jakarta-ant-1.5.1/bin/ant, jikes & DP bug > > It appears the ant script in 1.5.1 has bug in it that directly effects > OS X. If you have DP10 installed but the command line set to use > 1.3.1 by setting PATH and JAVA_HOME, you will see the problem. You > must also tell ant to use jikes with a -Dbuild.compiler=jikes. The > ant script detects that it is running on OS X then picks up all of the > jars in > /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/ > Classes which are 1.4.1 classes. > > You may not notice this immediately because 1.3.1 classes are before > 1.4.1 classes. You can verify this by calling ant with a -verbose > option and looking at the classpath in a javac task. > > To fix the problem change the following line of > jakarta-ant-1.5.1/bin/ant: > > > OSXHACK="/System/Library/Frameworks/JavaVM.framework/Versions/ > CurrentJDK/Classes" > > to: > > OSXHACK="$JAVA_HOME/../Classes" > > I have filed a bug with the ant project: > > http://issues.apache.org/bugzilla/show_bug.cgi?id=17458 > > Dwayne |