As per thread on the mailing list.
If I created a seperate package that only builds jdtcore, could I put it on my server for inclusion in Gentoo? I'll look over jdtcore plugin and see how easy this would be.
Created attachment 50305 [details] jdtcore-3.0.1.ebuild (New Package) jdtcore-3.0.1.tar.bz2 is currently stored on my server. If you can think of a better place to put it, let me know. The build works as far as I can tell. All that is in this package is the plugins/org.eclipse.jdt.core_3.0.1 folder renamed to jdtcore-3.0.1.
This ebuild also suffers from a similar problem to that I mentioned in #71307: [javac] /var/tmp/portage/jdtcore-3.0.1/work/jdtcore-3.0.1/antadapter/org/eclipse/jdt/core/CheckDebugAttributes.java:18: package org.apache.tools.ant does not exist [javac] import org.apache.tools.ant.BuildException; I suspect that jdtcore must either be patched to use the regular ant directly, or we will have to include a jdtcore-specific ant in the jdtcore source tarball. I suggest you start with a patch setting javacFailOnError to true, and go from there: I've been fooled more than once about eclipse builds seeminly succeeding when hundreds of error messages are actually reported.
That just sucks. Thanks for the info. I'll work on it tonight.
Created attachment 50368 [details] jdtcore-3.0.1.ebuild (javac fix) I have modified the tar.bz2 to include all the dependencies for this project. It will now use javacFailOnError by default, and I also created a new build.xml to handle the build of all the dependencies. Let me know what you think.
Comment on attachment 50305 [details] jdtcore-3.0.1.ebuild (New Package) Obsoleting previous ebuild
We're getting closer. It still complains about a few missing packages: [javac] /var/tmp/portage/jdtcore-3.0.1/work/jdtcore-3.0.1/model/org/eclipse/jdt/core/IJavaProject.java:21: package org.eclipse.core.resources does not exist [javac] import org.eclipse.core.resources.IProject; And: org.eclipse.core.runtime org.eclipse.core.runtime.jobs Yes, I redownloaded the tarball from yoursite just ~30mins ago. Excellent work so far!
Karl, can you run: emerge jdtcore > build.log and email it to me, or attach it. I am not seeing any of these errors, and I do not have anything in my classpath. Thanks
Created attachment 51082 [details] eclipse-jdtcore-3.0.1.ebuild To run this, you will need to rm the previous eclipse-jdtcore-3.0.1.tar.bz2 from distfiles if it currently exists. I had to change some pathing in the build.xml for the ebuild to work.
Added to the experiemental tree.
reopening this one because we need jdtcore in the main tree.
How are things going on this? Is there anything more I need to do? Are we waiting on a number of people to say it works?
Inspired by this ebuild and its tarball, I have split ecj into its own package, dev-java/eclipse-ecj. We don't have any ebuilds pending (afaik) that need the full jdtcore, so I'm inclined to close this bug as FIXED (the derived eclipse-ecj preempts it). Please reopen this bug if it turns out we really need jdtcore itself.