classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] Patch: FYI: add jar builder for eclipse


From: Tom Tromey
Subject: [cp-patches] Patch: FYI: add jar builder for eclipse
Date: 22 Dec 2005 12:12:49 -0700
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

I'm checking this in.

This adds a background jar builder to the eclipse build.  This lets us
make a 'fake jdk' more easily, so that we can tell Eclipse to use a VM
in the workspace.  This lets us have java launchers use the just-built
VM, and lets us build projects against Classpath, without doing hacks
like we do now (namely: hard-wiring Classpath as a dependency of the
projects for building, and using C launchers instead of Java
launchers).

I still would recommend that VMs be built in 'flat' configurations.  I
made the jar task run in the background so it won't interfere with
ordinary work.

Tom

2005-12-22  Tom Tromey  <address@hidden>

        * .externalToolBuilders/ClasspathJar.launch: New file.
        * .project: Updated.

Index: .project
===================================================================
RCS file: /cvsroot/classpath/classpath/.project,v
retrieving revision 1.5
diff -u -r1.5 .project
--- .project    22 Dec 2005 00:35:26 -0000      1.5
+++ .project    22 Dec 2005 19:10:27 -0000
@@ -60,6 +60,16 @@
                        <arguments>
                        </arguments>
                </buildCommand>
+               <buildCommand>
+                       
<name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
+                       <triggers>auto,full,incremental,</triggers>
+                       <arguments>
+                               <dictionary>
+                                       <key>LaunchConfigHandle</key>
+                                       
<value>&lt;project&gt;/.externalToolBuilders/ClasspathJar.launch</value>
+                               </dictionary>
+                       </arguments>
+               </buildCommand>
        </buildSpec>
        <natures>
                <nature>org.eclipse.jdt.core.javanature</nature>
Index: .externalToolBuilders/ClasspathJar.launch
===================================================================
RCS file: .externalToolBuilders/ClasspathJar.launch
diff -N .externalToolBuilders/ClasspathJar.launch
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ .externalToolBuilders/ClasspathJar.launch   1 Jan 1970 00:00:00 -0000
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<launchConfiguration 
type="org.eclipse.ui.externaltools.ProgramBuilderLaunchConfigurationType">
+<booleanAttribute key="org.eclipse.debug.ui.ATTR_LAUNCH_IN_BACKGROUND" 
value="true"/>
+<stringAttribute key="org.eclipse.ui.externaltools.ATTR_BUILD_SCOPE" 
value="${working_set:&lt;?xml version=&quot;1.0&quot; 
encoding=&quot;UTF-8&quot;?&gt;&#10;&lt;launchConfigurationWorkingSet 
factoryID=&quot;org.eclipse.ui.internal.WorkingSetFactory&quot; 
name=&quot;workingSet&quot;&gt;&#10;&lt;item 
factoryID=&quot;org.eclipse.ui.internal.model.ResourceFactory&quot; 
path=&quot;/classpath/install/share/classpath&quot; 
type=&quot;2&quot;/&gt;&#10;&lt;/launchConfigurationWorkingSet&gt;}"/>
+<stringAttribute key="org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS" 
value="-cf glibj.zip META-INF java gnu org javax vm"/>
+<stringAttribute key="org.eclipse.ui.externaltools.ATTR_RUN_BUILD_KINDS" 
value="full,incremental,auto,"/>
+<stringAttribute key="org.eclipse.ui.externaltools.ATTR_WORKING_DIRECTORY" 
value="${build_project:install/share/classpath}"/>
+<stringAttribute key="org.eclipse.ui.externaltools.ATTR_LOCATION" 
value="${system_path:jar}"/>
+<booleanAttribute key="org.eclipse.ui.externaltools.ATTR_TRIGGERS_CONFIGURED" 
value="true"/>
+<booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables" 
value="true"/>
+</launchConfiguration>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]