Info |
---|
Works with Eclipse 2019-06 or later |
...
Info |
---|
The version of Jetty should match the jetty.version property in the testbed POM (java-idp-testbed/pom.xml ) |
...
3) Import projects into Eclipse : File > Import > Maven > Existing Maven Projects
4) Checkout the 9.4-testbed-eclipse
branch of java-idp-jetty-base
5) Assemble third party dependencies by building the IdP WAR and removing IdP JARs :
...
6) Download logging and testbed dependencies and add to the Jetty Jetty server classpath :
Code Block |
---|
|
cd java-idp-jetty-base/src/main/resources/jetty-base
java -jar $jetty.home/start.jar --create-files |
...
8) Go to the testbed webapp :
https://localhost:8443/index.html
Issues
Logging
You will probably want to change the root logging level from DEBUG
to INFO
in idp-conf/src/test/resources/logback-test.xml
...
Right-click on Main.java > Run As > Java Application
Eclipse Launcher program arguments :
Program Arguments
Code Block |
---|
language | bash | title | Program Arguments |
---|
|
-Djetty.home=<path to jetty-distribution> -Didp.home=classpath: -Didp.webflows=classpath*:/flows -Djava.io.tmpdir=tmp |
Eclipse Launcher working directory :
Working Directory
Code Block |
---|
language | bash | title | Working Directory |
---|
|
${workspace_loc:idp-jetty-base/src/main/resources/jetty-base} |
Example Eclipse Launcher :
Code Block |
language Expand |
---|
xml | title | idp-testbed.launch |
---|
|
| collapse | true | <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication">
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
<listEntry value="/idp-testbed/src/main/java/Main.java"/>
</listAttribute>
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
<listEntry value="1"/>
</listAttribute>
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_EXCLUDE_TEST_CODE" value="true"/>
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_CLASSPATH_ONLY_JAR" value="false"/>
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_START_ON_FIRST_THREAD" value="true"/>
<stringAttribute key="org.eclipse.jdt.launching.CLASSPATH_PROVIDER" value="org.eclipse.m2e.launchconfig.classpathProvider"/>
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="Main"/>
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-Djetty.home=/opt/jetty/jetty-home-9.4 -Didp.home=classpath: -Didp.webflows=classpath*:/flows -Djava.io.tmpdir=tmp" />
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="idp-testbed"/>
<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.m2e.launchconfig.sourcepathProvider"/>
<stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="${workspace_loc:idp-jetty-base/src/main/resources/jetty-base}"/>
</launchConfiguration> |
|