eclipse
Bruno Van Den Bossche
brvdboss at spymac.com
Sun Apr 3 07:55:27 PDT 2005
Alex Varju wrote:
> Bruno Van Den Bossche wrote:
>
>>> Until Eclipse supports native 1.5 builds, I'm not sure that there's
>>> anything we can do to improve things.
>>
>>
>> I've been staring a bit at it but can't really come up with a
>> solution. The naïve me assumed the specified "target" and "source"
>> options would be taking care of issues like that.
>
>
> 3.1m6 is out, and the release notes seem to indicate that their compiler
> is now Java 1.5 compliant. Unfortunately, I get different errors (which
> sound likely to be the same thing) if I try to remove the linux-jdk
> requirement.
>
> Hopefully by the time 3.1 is actually released, they will have worked
> these problems out.
I found the problem, at least I like to think so :)
In the file
plugins/org.eclipse.ui.browser/src/org/eclipse/ui/internal/browser/ExternalBrowserInstance.java
they make the following call :
DefaultBrowserSupport.getInstance().removeBrowser(getId());
This method requires a String for argument, and getId() returns a long.
Which is a conversion that doesn't automagically happens. Changing
this to :
DefaultBrowserSupport.getInstance().removeBrowser(""+getId());
solves this problem and everything builds just fine on my machine
without the need of a linux-jvm.
This is an Eclipse-issue though. You seem to be more familiar with the
Eclipse project, could you submit this to them?
> My new patchset for 3.1m6 is here:
>
> http://www.varju.ca/alex/freebsd/eclipse-devel-3.1m6-1.tgz
I've attached the patch for this dir. It should allow you to build the
port now without the need for the linux-libraries. I hope you can
confirm this :-)
Regards,
Bruno
PS: Teaser ;-) :
...
[exec] a eclipse/notice.html
[exec] a eclipse/eclipse.ini
[exec] a eclipse/epl-v10.html
[echo] Done.
BUILD SUCCESSFUL
Total time: 7 minutes 39 seconds
wave#
-------------- next part --------------
diff -rNu eclipse-devel.orig/files/patch-build.xml /usr/ports/java/eclipse-devel/files/patch-build.xml
--- eclipse-devel.orig/files/patch-build.xml Sun Apr 3 01:22:50 2005
+++ eclipse-devel/files/patch-build.xml Sun Apr 3 16:39:36 2005
@@ -35,15 +35,6 @@
<arg line="build.sh"/>
</exec>
<move file="${launcherlibs}/library/${installWs}/eclipse" todir="${launcherlibs}/"/>
-@@ -148,7 +156,7 @@
-
- <!--bootclasspath-->
- <path id="default.bootclasspath">
-- <fileset dir="${java.home}/lib">
-+ <fileset dir="/usr/local/linux-sun-jdk1.4.2/jre/lib">
- <include name="*.jar" />
- </fileset>
- </path>
@@ -193,6 +201,9 @@
<equals arg1="${installOs}-${installWs}-${installArch}" arg2="linux-gtk-ppc64"/>
<equals arg1="${installOs}-${installWs}-${installArch}" arg2="linux-gtk-ia64"/>
diff -rNu eclipse-devel.orig/files/patch-source-ExternalBrowser /usr/ports/java/eclipse-devel/files/patch-source-ExternalBrowser
--- eclipse-devel.orig/files/patch-source-ExternalBrowser Thu Jan 1 01:00:00 1970
+++ eclipse-devel/files/patch-source-ExternalBrowser Sun Apr 3 16:03:55 2005
@@ -0,0 +1,13 @@
+--- plugins/org.eclipse.ui.browser/src/org/eclipse/ui/internal/browser/ExternalBrowserInstance.java.orig Sun Apr 3 15:44:23 2005
++++ plugins/org.eclipse.ui.browser/src/org/eclipse/ui/internal/browser/ExternalBrowserInstance.java Sun Apr 3 15:44:47 2005
+
+@@ -74,7 +74,7 @@
+ public void run() {
+ try {
+ process.waitFor();
+- DefaultBrowserSupport.getInstance().removeBrowser(getId());
++ DefaultBrowserSupport.getInstance().removeBrowser(""+getId());
+ } catch (Exception e) {
+ // ignore
+ }
+
More information about the freebsd-java
mailing list