You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Olivier Lamy <ol...@accor.com> on 2006/05/15 10:58:13 UTC

RE : war plugin command line argument

Hi,
Look at
http://svn.apache.org/viewcvs.cgi/maven/plugins/trunk/maven-war-plugin/s
rc/main/java/org/apache/maven/plugin/war/AbstractWarMojo.java?rev=406419
&view=markup

    /**
     * The directory where the webapp is built.
     *
     * @parameter
expression="${project.build.directory}/${project.build.finalName}"
     * @required
     */
    private File webappDirectory;

A solution could be 

    /**
     * The directory where the webapp is built.
     *
     * @parameter expression="${webappDirectory}"
default-value="${project.build.directory}/${project.build.finalName}"
     * @required
     */
    private File webappDirectory;

But this need a request for enhancement.
Put a jira issue.

- Olivier

-----Message d'origine-----
De : Sebastien Cesbron [mailto:scesbron@gmail.com] 
Envoyé : lundi 15 mai 2006 10:39
À : Maven Users List
Objet : war plugin command line argument


Is it possible to specify war plugin arguments as command line arguments
?

I tried :
mvn war:exploded -DwebappDirectory=/myDir

but this does not seems to work : how can I achieve that ?

Thanx

Seb

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org



This e-mail, any attachments and the information contained therein ("this message") are confidential and intended solely for the use of the addressee(s). If you have received this message in error please send it back to the sender and delete it. Unauthorized publication, use, dissemination or disclosure of this message, either in whole or in part is strictly prohibited.
--------------------------------------------------------------------------------------------------------------
Ce message électronique et tous les fichiers joints ainsi que  les informations contenues dans ce message ( ci après "le message" ), sont confidentiels et destinés exclusivement à l'usage de la  personne à laquelle ils sont adressés. Si vous avez reçu ce message par erreur, merci  de le renvoyer à son émetteur et de le détruire. Toutes diffusion, publication, totale ou partielle ou divulgation sous quelque forme que se soit non expressément autorisées de ce message, sont interdites.
-------------------------------------------------------------------------------------------------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org