Carlos, there is no error in my mavem.xml. This is the way I test the property, check it out: <echo>[Ctp] ### CvsPwd="${cvspwd}" ###</echo> <j:if test="${cvspwd.equals('none')}"> <echo>[Ctp] ### CvsPwd="none" ###</echo> </j:if> <echo>[Ctp] ### B R A S I L ###</echo>
In my project.properties file, I have: #==================== MM Properties =================== # cvspwd=none Take a look in the execution: C:\MMmaster3>maven goaldefault -Dmm_tag_version=head -Dcvslogin=roberto - Dreporemuser=rpremoto -Dreporempwd=... -Dmm_subprojects_name=spbmessage -Dm m_domain=CETIP __ __ | \/ |__ _Apache__ ___ | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~ |_| |_\__,_|\_/\___|_||_| v. 1.0 build:start: goaldefault: [echo] [Ctp] ### CvsPwd="none" ### [echo] [Ctp] ### B R A S I L ### . . . Best regards, Roberto de Castro Analista de Suporte Cetip - Desus Rio de Janeiro +55 21 2276-7439 mailto:[EMAIL PROTECTED] -----Mensagem original----- De: Carlos Sanchez [mailto:[EMAIL PROTECTED] Enviada em: sexta-feira, 30 de julho de 2004 11:39 Para: 'Maven Users List' Assunto: RE: How to define a default value for a Maven argument? Hi, That should work, you probably have an error in your maven.xml Regards Carlos Sanchez A Coruņa, Spain Oness Project http://oness.sourceforge.net > -----Original Message----- > From: Roberto Castro [mailto:[EMAIL PROTECTED] > Sent: Friday, July 30, 2004 4:09 PM > To: [EMAIL PROTECTED] > Subject: 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]