Thanks Patrick for the attached .launch file.! Thanks David for 'refactoring' and posting the improved shell script.!
Yes Patrick, I want it to run against 'live' code.
Patrick Mueller wrote: [.launch file]
However ... I suspect what you want is to run against 'live' code, not the maven built jars. This is going to be more work. The easiest thing to do is to use Eclipse for editing/launching/debugging, but not for build. Do your builds outside of eclipse.
Currently building outside of eclipse in ~/incubator-geronimo and using David's shell script to do a "maven eclipse" with the maven-eclipse-plugin in each of geronimo's modules. In Eclipse you do an "Import | Existing Project into Workspace" for every module you want to look at.
Consider using Mevenide (no typo) http://mevenide.codehaus.org/ to integrate Maven into Eclipse. This gives you --among other things-- Maven launcher integration into Eclipse External Tools.
To be able to use Patrick's .launch file with David's approach, you perform the following steps in Eclipse :-
(1) Create incubator-geronimo as a top-level project in Eclipse with "New | Project" and the Java Project wizard. (2) Add a "New | Folder" named: target to that project.
(3) "Import ..." from File System
From directory ~/incubator-geronimo/target into the freshly created target folder. Note: "Create selected folders only". (4) Copy Geronimo-jars.launch to your eclipse workspace: /incubator-geronimo/Geronimo-jars.launch
(5) "Add Projects..." geronimo-system et al to the "Source Lookup Path" of that Geronimo-jars configuration. (6) Run the pre-built DebugConsole configuration and/or debug it inside Eclipse -- and have fun ...
Find attached a slightly modified Geronimo-jars.launch file for the 1.0-SNAPSHOT. Note: Not all modules were added to the Source Lookup Path, only geronimo-system for the moment.
Cheers,
--
/rgb
<?xml version="1.0" encoding="UTF-8"?> <launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication"> <booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="false"/> <stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.apache.geronimo.system.main.Daemon"/> <stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="org/apache/geronimo/DebugConsole"/> <listAttribute key="org.eclipse.jdt.launching.CLASSPATH"> <listEntry value="<?xml version="1.0" encoding="UTF-8"?> <runtimeClasspathEntry type="4" path="2" containerPath="org.eclipse.jdt.launching.JRE_CONTAINER"/> "/> <listEntry value="<?xml version="1.0" encoding="UTF-8"?> <runtimeClasspathEntry type="2" path="3" internalArchive="/incubator-geronimo/target/bin/server.jar"/> "/> <listEntry value="<?xml version="1.0" encoding="UTF-8"?> <runtimeClasspathEntry type="2" path="3" internalArchive="/incubator-geronimo/target/lib/cglib-full-2.0.jar"/> "/> <listEntry value="<?xml version="1.0" encoding="UTF-8"?> <runtimeClasspathEntry type="2" path="3" internalArchive="/incubator-geronimo/target/lib/commons-cli-1.0.jar"/> "/> <listEntry value="<?xml version="1.0" encoding="UTF-8"?> <runtimeClasspathEntry type="2" path="3" internalArchive="/incubator-geronimo/target/lib/commons-logging-1.0.3.jar"/> "/> <listEntry value="<?xml version="1.0" encoding="UTF-8"?> <runtimeClasspathEntry type="2" path="3" internalArchive="/incubator-geronimo/target/lib/geronimo-common-1.0-SNAPSHOT.jar"/> "/> <listEntry value="<?xml version="1.0" encoding="UTF-8"?> <runtimeClasspathEntry type="2" path="3" internalArchive="/incubator-geronimo/target/lib/geronimo-deployment-1.0-SNAPSHOT.jar"/> "/> <listEntry value="<?xml version="1.0" encoding="UTF-8"?> <runtimeClasspathEntry type="2" path="3" internalArchive="/incubator-geronimo/target/lib/geronimo-kernel-1.0-SNAPSHOT.jar"/> "/> <listEntry value="<?xml version="1.0" encoding="UTF-8"?> <runtimeClasspathEntry type="2" path="3" internalArchive="/incubator-geronimo/target/lib/geronimo-system-1.0-SNAPSHOT.jar"/> "/> <listEntry value="<?xml version="1.0" encoding="UTF-8"?> <runtimeClasspathEntry type="2" path="3" internalArchive="/incubator-geronimo/target/lib/log4j-1.2.8.jar"/> "/> <listEntry value="<?xml version="1.0" encoding="UTF-8"?> <runtimeClasspathEntry type="2" path="3" internalArchive="/incubator-geronimo/target/lib/mx4j-2.0.1.jar"/> "/> <listEntry value="<?xml version="1.0" encoding="UTF-8"?> <runtimeClasspathEntry type="2" path="3" internalArchive="/incubator-geronimo/target/lib/xbean-apache-1.0-DEV.jar"/> "/> <listEntry value="<?xml version="1.0" encoding="UTF-8"?> <runtimeClasspathEntry type="2" path="3" internalArchive="/incubator-geronimo/target/lib/xercesImpl-2.6.0.jar"/> "/> <listEntry value="<?xml version="1.0" encoding="UTF-8"?> <runtimeClasspathEntry type="2" path="3" internalArchive="/incubator-geronimo/target/lib/xmlParserAPIs-2.2.1.jar"/> "/> </listAttribute> <stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="incubator-geronimo"/> <listAttribute key="org.eclipse.jdt.launching.SOURCE_PATH"> <listEntry value="<?xml version="1.0" encoding="UTF-8"?> <runtimeClasspathEntry type="4" path="2" containerPath="org.eclipse.jdt.launching.JRE_CONTAINER"/> "/> <listEntry value="<?xml version="1.0" encoding="UTF-8"?> <runtimeClasspathEntry type="1" path="3" projectName="geronimo-system"/> "/> </listAttribute> <listAttribute key="org.eclipse.debug.ui.favoriteGroups"> <listEntry value="org.eclipse.debug.ui.launchGroup.run"/> <listEntry value="org.eclipse.debug.ui.launchGroup.debug"/> </listAttribute> <booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables" value="true"/> <stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="incubator-geronimo/target"/> <booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_SOURCE_PATH" value="false"/> <booleanAttribute key="org.eclipse.jdt.launching.STOP_IN_MAIN" value="true"/> <stringAttribute key="org.eclipse.debug.core.source_locator_id" value="org.eclipse.jdt.debug.ui.javaSourceLocator"/> </launchConfiguration>
