Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Added expressions #13

Closed
wants to merge 1 commit into from

2 participants

@MMeldrum

Hi James,

For our project, we needed to deploy to multiple JBoss 7 instances at once.. so we forked and exposed the plugin configuration as expressions.

Hostname, port, username and password have been exposed as expressions.

For example:

mvn -Ddeploy.hostname=alternateserver -Ddeploy.port=1234 jboss-as:deploy

A simple addition, but thought I'd share.

Cheers
Martin

@MMeldrum MMeldrum Made parameters available at command-line. e.g.
mvn -Ddeploy.hostname=alternateserver -Ddeploy.port=1234 jboss-as:deploy
c0ac287
@jamezp
Collaborator

Perfect, thanks. This is now merged.

@jamezp jamezp closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 14, 2012
  1. @MMeldrum

    Made parameters available at command-line. e.g.

    MMeldrum authored
    mvn -Ddeploy.hostname=alternateserver -Ddeploy.port=1234 jboss-as:deploy
This page is out of date. Refresh to see the latest.
View
8 src/main/java/org/jboss/as/plugin/deployment/common/AbstractServerConnection.java
@@ -46,14 +46,14 @@
/**
* Specifies the host name of the server where the deployment plan should be executed.
*
- * @parameter default-value="localhost"
+ * @parameter default-value="localhost" expression="${deploy.hostname}"
*/
private String hostname;
/**
* Specifies the port number the server is listening on.
*
- * @parameter default-value="9999"
+ * @parameter default-value="9999" expression="${deploy.port}"
*/
private int port;
@@ -63,7 +63,7 @@
* If no username is specified and the server requests authentication the user
* will be prompted to supply the username,
*
- * @parameter
+ * @parameter expression="${deploy.username}"
*/
private String username;
@@ -73,7 +73,7 @@
* If no password is specified and the server requests authentication the user
* will be prompted to supply the password,
*
- * @parameter
+ * @parameter expression="${deploy.password}"
*/
private String password;
Something went wrong with that request. Please try again.