Cargo

Add configuration option to allow JVM to be specified

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 0.9
  • Fix Version/s: 1.0
  • Component/s: Core
  • Labels:
    None
  • Complexity:
    Intermediate
  • Tested on JDKs:
    1.4.2_09, 1.5.0_09
  • Number of attachments :
    3

Description

Currently the ant JavaTask used for starting local installed containers defaults to using the JAVA_HOME settings to determine the JVM.
For the project I am currently working on we wanted to be able to specify different JVMs through the cargo configuration by calling through to the setJvm option on the ant task.

The attached patch allows a setting cargo.jvm to be specified. It is assumed to be a JDKsince the tools.jar will be added to the classpath relative to this setting.

Activity

Hide
Pascal Thivent added a comment -

Hello David,

I've looked at your patch and I'm wondering if :

  • o.c.c.c.s.c.AbstractExistingLocalConfigurationCapability.java should be modified too (I'm using an existing configuration)
  • these changes are enough (I've applied your patch with some slight modifications but I've not been able to start my existing container with the jdk specified by the cargo.jvm property).

Thanks.

Pascal

Show
Pascal Thivent added a comment - Hello David, I've looked at your patch and I'm wondering if :
  • o.c.c.c.s.c.AbstractExistingLocalConfigurationCapability.java should be modified too (I'm using an existing configuration)
  • these changes are enough (I've applied your patch with some slight modifications but I've not been able to start my existing container with the jdk specified by the cargo.jvm property).
Thanks. Pascal
Hide
Adrian Cole added a comment -

example $HOME/.m2/settings.xml that allows running of the following profile, which requires 3 different jdk versions:

mvn -Pall-weblogic install

Show
Adrian Cole added a comment - example $HOME/.m2/settings.xml that allows running of the following profile, which requires 3 different jdk versions: mvn -Pall-weblogic install
Hide
Adrian Cole added a comment -

cargo.java.home can now be set on a standalone or existing local container to assign an alternate JAVA_HOME for the container to use.

samples has been updated to allow support of cargo.<container>.java.home to be provided. These settings can be assigned in your maven $HOME/.m2/settings.xml file

Show
Adrian Cole added a comment - cargo.java.home can now be set on a standalone or existing local container to assign an alternate JAVA_HOME for the container to use. samples has been updated to allow support of cargo.<container>.java.home to be provided. These settings can be assigned in your maven $HOME/.m2/settings.xml file

People

Vote (1)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: