From a4f106f158cc4887804267b31bcf5aa976659ec8 Mon Sep 17 00:00:00 2001 From: vmassol Date: Fri, 26 Nov 2004 08:49:02 +0000 Subject: [PATCH] Removed the need to set up a JAVAWS_HOME property. This is now automatically inferred from ${java.home} and defaults to ${java.home}/javaws. You can override this value by setting the maven.abbot.webstart.home property. git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@116263 13f79535-47bb-0310-9956-ffa450edef68 --- abbot/plugin.jelly | 22 +++++++++---------- abbot/plugin.properties | 8 ++++--- .../sample-webstart/build.properties.sample | 4 ---- abbot/xdocs/changes.xml | 6 +++++ abbot/xdocs/properties.xml | 8 ++++--- abbot/xdocs/using.xml | 5 ----- 6 files changed, 26 insertions(+), 27 deletions(-) diff --git a/abbot/plugin.jelly b/abbot/plugin.jelly index fe2eb018..37c9a4c2 100644 --- a/abbot/plugin.jelly +++ b/abbot/plugin.jelly @@ -192,7 +192,6 @@ storepass="${maven.abbot.sign.storepass}"/> - - - + + - + - + - + @@ -346,10 +345,9 @@ --> - - - - Mandatory environment variable JAVAWS_HOME must be set + + + Webstart home directory not found at [${maven.abbot.webstart.home}] @@ -357,11 +355,11 @@ - Mandatory variable maven.abbot.remotejnlp is missing." + Mandatory variable maven.abbot.remotejnlp is missing - Mandatory variable maven.abbot.javaws.systemhome is missing" + Mandatory variable maven.abbot.javaws.systemhome is missing diff --git a/abbot/plugin.properties b/abbot/plugin.properties index 5d76a082..8e2d3f7e 100644 --- a/abbot/plugin.properties +++ b/abbot/plugin.properties @@ -74,14 +74,16 @@ maven.abbot.include = org.apache.maven.abbot.AbbotTestAll # execution environment and must be set in your build.properties file # or equivalent: # -# - JAVAWS_HOME: You MUST define this environment variable and have it -# point to where Java Webstart is installed on your machine. -# For example: c:\apps\j2sdk1.4.2_01\jre\javaws # - maven.abbot.remotejnlp: This property points to the JNLP file of # the application you're testing. # - maven.abbot.javaws.systemhome: Java webstart system cache location # - maven.abbot.javaws.userhome: Java webstart user cache location +# Location of webstart executable. Override if your install does not match +# this default location +maven.abbot.webstart.home = ${java.home}/javaws + +# TODO: Remove these 4 properties as I don't see any use case associated with them maven.abbot.webstart.jnlp.original = original.jnlp maven.abbot.webstart.jnlp.modified = modified.jnlp maven.abbot.webstart.main.jar = abbot-main.jar diff --git a/abbot/src/plugin-test/sample-webstart/build.properties.sample b/abbot/src/plugin-test/sample-webstart/build.properties.sample index 6e4f8319..2245193a 100644 --- a/abbot/src/plugin-test/sample-webstart/build.properties.sample +++ b/abbot/src/plugin-test/sample-webstart/build.properties.sample @@ -16,10 +16,6 @@ # Copy this file to a build.properties file and edit to match your local # environment. -# -# Note: You MUST also define the JAVAWS_HOME environment variable and have it -# point to where Java Webstart is installed on your machine. -# For example: c:\apps\j2sdk1.4.2_01\jre\javaws # Locations where your Java web start caches are located. # For example on Windows XP: diff --git a/abbot/xdocs/changes.xml b/abbot/xdocs/changes.xml index baf3e395..ce110e2a 100644 --- a/abbot/xdocs/changes.xml +++ b/abbot/xdocs/changes.xml @@ -7,6 +7,12 @@ + + Removed the need to set up a JAVAWS_HOME property. This is + now automatically inferred from ${java.home} and defaults + to ${java.home}/javaws. You can override this value by + setting the maven.abbot.webstart.home property. + Upgraded to Abbot 0.13.0 and JDOM 1.0 beta 10. diff --git a/abbot/xdocs/properties.xml b/abbot/xdocs/properties.xml index 53676264..65bd5cbd 100644 --- a/abbot/xdocs/properties.xml +++ b/abbot/xdocs/properties.xml @@ -68,14 +68,16 @@ maven.abbot.include = org.apache.maven.abbot.AbbotTestAll # execution environment and must be set in your build.properties file # or equivalent: # -# - JAVAWS_HOME: You MUST define this environment variable and have it -# point to where Java Webstart is installed on your machine. -# For example: c:\apps\j2sdk1.4.2_01\jre\javaws # - maven.abbot.remotejnlp: This property points to the JNLP file of # the application you're testing. # - maven.abbot.javaws.systemhome: Java webstart system cache location # - maven.abbot.javaws.userhome: Java webstart user cache location +# Location of webstart executable. Override if your install does not match +# this default location +maven.abbot.webstart.home = ${java.home}/javaws + +# TODO: Remove these 4 properties as I don't see any use case associated with them maven.abbot.webstart.jnlp.original = original.jnlp maven.abbot.webstart.jnlp.modified = modified.jnlp maven.abbot.webstart.main.jar = abbot-main.jar diff --git a/abbot/xdocs/using.xml b/abbot/xdocs/using.xml index 317d1dc9..cc20fe84 100644 --- a/abbot/xdocs/using.xml +++ b/abbot/xdocs/using.xml @@ -43,11 +43,6 @@ executing the Abbot plugin:

    -
  • - The JAVAWS_HOME environment variable has to be set and - it must point to the location where webstart is installed on your - machine. -
  • Some mandatory environment-dependent properties need to be defined. See the Properties