Cargo
  1. Cargo
  2. CARGO-127

Add support for passing system properties in the Maven plugin

    Details

    • Type: Task Task
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.4
    • Fix Version/s: 0.6
    • Component/s: None
    • Labels:
      None
    • Number of attachments :
      1

      Activity

      Hide
      Jan Zuchhold added a comment -

      I've attached a patch that will allow you to set system properties in cargo just like the test plugin with maven.junit.sysproperties:
      http://maven.apache.org/reference/plugins/test/properties.html

      I've chosen
      cargo.container.$

      {containerId}

      .sysproperties
      as the property, a sample looks like:

      cargo.container.tomcat.sysproperties = sysprop1 sysprop2
      sysprop1 = true
      sysprop2 = foobar

      I don't know anything about jelly scripts, it's working for me, but it should better be tested

      Show
      Jan Zuchhold added a comment - I've attached a patch that will allow you to set system properties in cargo just like the test plugin with maven.junit.sysproperties: http://maven.apache.org/reference/plugins/test/properties.html I've chosen cargo.container.$ {containerId} .sysproperties as the property, a sample looks like: cargo.container.tomcat.sysproperties = sysprop1 sysprop2 sysprop1 = true sysprop2 = foobar I don't know anything about jelly scripts, it's working for me, but it should better be tested
      Hide
      Vincent Massol added a comment -

      Thanks Jan. I've applied your patch. Could you please also document it? For that you'll need to edit the wiki at http://docs.codehaus.org/display/CARGO/Maven+support.

      If you create a user on confluence there, I'll add you to the cargo-developers group so that you have the rights to edit the pages.

      Thanks again.

      Show
      Vincent Massol added a comment - Thanks Jan. I've applied your patch. Could you please also document it? For that you'll need to edit the wiki at http://docs.codehaus.org/display/CARGO/Maven+support . If you create a user on confluence there, I'll add you to the cargo-developers group so that you have the rights to edit the pages. Thanks again.
      Hide
      Vincent Massol added a comment -

      Thanks Jan.

      Show
      Vincent Massol added a comment - Thanks Jan.

        People

        • Assignee:
          Vincent Massol
          Reporter:
          Vincent Massol
        • Votes:
          0 Vote for this issue
          Watchers:
          0 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved: