[fedora-java] Using the natively-built Eclipse compiler

Anthony Green green at redhat.com
Sun Mar 6 10:42:59 UTC 2005


ant and javac aren't currently using the natively-built Eclipse
compiler.

We need to add something like the following to /usr/bin/ant in order to
pick up the .so files:

# diff -c /usr/bin/ant~ /usr/bin/ant
*** /usr/bin/ant~       2005-03-05 13:13:05.000000000 -0800
--- /usr/bin/ant        2005-03-06 02:19:55.000000000 -0800
***************
*** 230,235 ****
--- 230,236 ----
  if $JAVACMD -version 2>&1 | grep -q "gcj"; then
    if [ -f /usr/share/java/jdtcore.jar ]; then
      LOCALCLASSPATH="$LOCALCLASSPATH:/usr/share/java/jdtcore.jar"
+     ANT_OPTS="$ANT_OPTS -Dgnu.gcj.precompiled.db.path=/usr/lib/eclipse/eclipse.db"
    fi
  fi

(and something similar to java-gcj-compat's javac.in, see attached patch)

This will shave minutes off of the build times for some packages.

I forget what the plan is wrt the db.  Maybe we'll have a global one. 
In any case, this will do in the meanwhile.

(gbenson: could you please stick the above in apache-ant-javac-ecj.patch?  This is 
 where we really need it - thanks!)

AG

-------------- next part --------------
A non-text attachment was scrubbed...
Name: use-native-ecj.patch
Type: text/x-patch
Size: 716 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-devel-java-list/attachments/20050306/9f54d80e/attachment.bin>


More information about the fedora-devel-java-list mailing list