* Andrew Overholt <overholt@xxxxxxxxxx> [2005-10-12 15:43]: > > I got Eclipse 3.1.1 built into rawhide last night and I was able to use it > to check out GNU Classpath [1] and build everything (using Tom Tromey's > builders for the native part and the locale creation, etc.)! This was the > first time I've been able to do this with our Eclipse. It appears that the CVS issue [1] is not fixed as I thought it was. I've attached some instructions of how to get to the point I am at for debugging. I've also attached the little scripts that I am using to make the process easier. Andrew [1] https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=161483
Attachment:
nativifyjar.sh
Description: Bourne shell script
Attachment:
all.sh
Description: Bourne shell script
How to set things up to figure out WTF is going on with CVS checkouts in Eclipse with libgcj -- Andrew Overholt Last modified: 2005-10-13 . install Eclipse 3.1.1 from rawhide yum --enablerepo=development install eclipse-pde-devel . start it using the Sun (or other proprietary) JVM mkdir -p ~/workspaces eclipse -vm <path to JVM>/bin/java -data ~/workspaces/cvs3.1.1 . import the source for the plug-ins we need: Import->External Plug-ins and Fragments . check "Projects with source folders" . next . pick org.eclipse.team.cvs.core, hit "Add ->" . hit "Required Plug-ins ->" . finish . create ant build files for each foreach(org.eclipse.ant.core, org.eclipse.core.resources, org.eclipse.core.runtime, org.eclipse.core.variables, org.eclipse.team.core, org.eclipse.team.cvs.core, org.eclipse.update.configurator): . right-click on plugin.xml . PDE Tools->Create Ant Build File . right-click on build.xml . Run As -> Ant Build... . check "build.update.jar", "build.jars" (should be checked), "clean", "refresh" . change the order to be: clean, build.jars, build.update.jar, refresh . hit Apply and then Run . in another terminal, create a directory to store the native bits of the above jars mkdir -p ~/eclipse/cvsissues/nativebits . get scripts to make nativifying easy (attached) cd ~/eclipse/cvsissues/nativebits wget http://overholt.ca/nativifyjar.sh wget http://overholt.ca/all.sh . make the jar and db files for the above jars point to your modified ones: pushd /usr/lib/gcj/eclipse sudo mv org.eclipse.ant.core_3.1.1.jar.db{,.bak} sudo mv org.eclipse.core.resources_3.1.0.jar.db{,.bak} sudo mv org.eclipse.core.runtime_3.1.1.jar.db{,.bak} sudo mv org.eclipse.core.variables_3.1.0.jar.db{,.bak} sudo mv org.eclipse.team.core_3.1.1.jar.db{,.bak} sudo mv org.eclipse.team.cvs.core_3.1.1.jar.db{,.bak} sudo mv org.eclipse.update.configurator_3.1.0.jar.db{,.bak} sudo ln -s ~/eclipse/cvsissues/nativebits/org.eclipse.ant.core_3.1.1.jar.db sudo ln -s ~/eclipse/cvsissues/nativebits/org.eclipse.core.resources_3.1.0.jar.db sudo ln -s ~/eclipse/cvsissues/nativebits/org.eclipse.core.runtime_3.1.1.jar.db sudo ln -s ~/eclipse/cvsissues/nativebits/org.eclipse.core.variables_3.1.0.jar.db sudo ln -s ~/eclipse/cvsissues/nativebits/org.eclipse.team.core_3.1.1.jar.db sudo ln -s ~/eclipse/cvsissues/nativebits/org.eclipse.team.cvs.core_3.1.1.jar.db sudo ln -s ~/eclipse/cvsissues/nativebits/org.eclipse.update.configurator_3.1.0.jar.db popd pushd /usr/share/eclipse/plugins sudo mv org.eclipse.ant.core_3.1.1.jar /tmp sudo mv org.eclipse.core.resources_3.1.0.jar /tmp sudo mv org.eclipse.core.runtime_3.1.1.jar /tmp sudo mv org.eclipse.core.variables_3.1.0.jar /tmp sudo mv org.eclipse.team.core_3.1.1.jar /tmp sudo mv org.eclipse.team.cvs.core_3.1.1.jar /tmp sudo mv org.eclipse.update.configurator_3.1.0.jar /tmp sudo ln -s ~/workspaces/cvs3.1.1/org.eclipse.ant.core/org.eclipse.ant.core_3.1.1.jar sudo ln -s ~/workspaces/cvs3.1.1/org.eclipse.core.resources/org.eclipse.core.resources_3.1.0.jar sudo ln -s ~/workspaces/cvs3.1.1/org.eclipse.core.runtime/org.eclipse.core.runtime_3.1.1.jar sudo ln -s ~/workspaces/cvs3.1.1/org.eclipse.core.variables/org.eclipse.core.variables_3.1.0.jar sudo ln -s ~/workspaces/cvs3.1.1/org.eclipse.team.core/org.eclipse.team.core_3.1.1.jar sudo ln -s ~/workspaces/cvs3.1.1/org.eclipse.team.cvs.core/org.eclipse.team.cvs.core_3.1.1.jar sudo ln -s ~/workspaces/cvs3.1.1/org.eclipse.update.configurator/org.eclipse.update.configurator_3.1.0.jar popd . make changes in Eclipse as you see fit, re-run the Ant build for the encompassing plug-in each time (right-click on build.xml -> Run As -> Ant Build), re-run the native part for either all jars (all.sh) or just the one you changed: either ./all.sh sudo rebuild-gcj-db OR one or more of: ./nativifyjar.sh org.eclipse.ant.core 3.1.1 ~/workspaces/cvs3.1.1 ./nativifyjar.sh org.eclipse.core.resources 3.1.0 ~/workspaces/cvs3.1.1 ./nativifyjar.sh org.eclipse.core.runtime 3.1.1 ~/workspaces/cvs3.1.1 ./nativifyjar.sh org.eclipse.core.variables 3.1.0 ~/workspaces/cvs3.1.1 ./nativifyjar.sh org.eclipse.team.core 3.1.1 ~/workspaces/cvs3.1.1 ./nativifyjar.sh org.eclipse.team.cvs.core 3.1.1 ~/workspaces/cvs3.1.1 ./nativifyjar.sh org.eclipse.update.configurator 3.1.0 ~/workspaces/cvs3.1.1 followed by: sudo rebuild-gcj-db . enable tracing if you want by editing <plugin>/.options and then tacking a -debug ~/workspaces/cvs3.1.1/<plugin>/.options onto the end of the eclipse launch command . run native eclipse: rm -rf ~/workspaces/testCVS eclipse -data ~/workspaces/testCVS [-debug ~/workspaces/cvs3.1.1/<plugin>.options] . NOTE: you should also be able to run it from within Eclipse but I can't figure out how to get the classes in <project>/bin (which are theoretically the same that are in the generated jars) to be mapped to their corresponding .jar.so (in Eclipse, set up a run profile that runs an Eclipse application with gij (you can set up an installed JRE for java-gcj-compat pretty easily by using /usr/lib/jvm as the location in the Installed JREs dialog))