Not yet. How can I do this?
I also have another similar problem when I pass an argument to maven and uppercase it.
Inside maven.xml it is in uppercase letters, when I echoed it, but if I use it in a
project.xml file, for example, it is not in uppercase letters. I think project.xml
gets its value before maven.xml runs.
Is that correct?
Regards,
Roberto de Castro
Analista de Suporte
Cetip - Desus Rio de Janeiro
+55 21 2276-7439
mailto:[EMAIL PROTECTED]
-----Mensagem original-----
De: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Enviada em: sexta-feira, 30 de julho de 2004 11:14
Para: Maven Users List
Assunto: R�f. : How to define a default value for a Mavenargument?
Did you try to set the MAVEN_OPTS environment variable ?
Nicolas
"Roberto Castro" <[EMAIL PROTECTED]>
30/07/2004 11:09
Veuillez r�pondre � "Maven Users List"
Pour : <[EMAIL PROTECTED]>
cc :
Objet : How to define a default value for a Maven argument?
Hi, all. I pass an argument to Maven(maven -Darg=xyz ....), but sometimes
I'd like not to pass the argument and use a default value, so, I defined
the default value in "project.properties" file, like this:
arg=defaultValue
Well, in "maven.xml" when I echoed the argument "arg", it shows me the
correct value, i.e., "defaultValue", but when I performed an "if" comand
to check if the argument was passed in CLI or not, it's always different
from the value I defined in "project.properties".
Is there a work around for this situation?
Thanks in advance.
Roberto de Castro
Analista de Suporte
Cetip - Desus Rio de Janeiro
+55 21 2276-7439
mailto:[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]