maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Deblauwe, Wim" <wim.debla...@barco.com>
Subject RE: Maven systemscope
Date Fri, 11 Mar 2005 15:38:45 GMT
nope, it does not print any of the possibilities in that case. The brackets
needs to be around the testcase.

If you have this:

		<j:if test="${passvar == 'true'}">
			<echo>passvar was true</echo>
		</j:if>
and you type: maven -Dpassvar=true test-test

then "passvar was true" is printed out.

If you use:

		<j:if test="${passvar} == 'true'">
			<echo>passvar was true</echo>
		</j:if>

Then nothing is printed out.

So, guess I still got a problem :(

BTW: Is there somewhere a good tutorial on jelly? I already searched the
offical site, but I found it very lacking.

regards,

Wim

-----Original Message-----
From: Marc-Andre Blain [mailto:marc-andre.blain@standardlife.ca]
Sent: vrijdag 11 maart 2005 16:32
To: Maven Users List
Subject: RE: Maven systemscope


Maybe you should try the following:
	<j:if test="${testing.var} == 'true'">
		<echo>${testing.var} is true</echo>
	</j:if>
	<j:if test="${testing.var} != 'true'">
		<echo>'${testing.var}' is not true</echo>
	</j:if>

The brackets should delimit your variable, not the test case

regards,

Marc-Andre

-----Original Message-----
From: Deblauwe, Wim [mailto:wim.deblauwe@barco.com]
Sent: Friday, March 11, 2005 10:28 AM
To: 'Maven Users List'
Subject: RE: Maven systemscope


thank you for your time, but I still got a last question on checking the
variable. Consider this:

<goal name="test-test">
	
<echo>${systemScope.setProperty("${pom.groupId}.${pom.artifactId}.buildstart
ed",'true')}</echo>
	<echo>${pom.groupId}</echo>
	<echo>${pom.artifactId}</echo>
	<echo>${pom.groupId}.${pom.artifactId}.buildstarted</echo>
	<echo>systemScope["${pom.groupId}.${pom.artifactId}.buildstarted"] =
${systemScope["${pom.groupId}.${pom.artifactId}.buildstarted"]}</echo>
	<j:set var="testing.var"
value='${systemScope["${pom.groupId}.${pom.artifactId}.buildstarted"]}'/>

	<echo>${testing.var}</echo>
	<j:if test="${testing.var == 'true'}">
		<echo>${testing.var} is true</echo>
	</j:if>
	<j:if test="${testing.var != 'true'}">
		<echo>'${testing.var}' is not true</echo>
	</j:if>		
</goal>

This is the output I get:

test-test:
    [echo]
    [echo] multiproject-root
    [echo] multiproject-root-project
    [echo] multiproject-root.multiproject-root-project.buildstarted
    [echo]
systemScope["multiproject-root.multiproject-root-project.buildstarted"] =
true
    [echo] true
    [echo] 'true' is not true


Why is true not true??

regards,

Wim

-----Original Message-----
From: Marc-Andre Blain [mailto:marc-andre.blain@standardlife.ca]
Sent: donderdag 10 maart 2005 15:43
To: Maven Users List
Subject: RE: Maven systemscope


I tried the following and it returns me 'true'

	<goal name="test-test">
	
<echo>${systemScope.setProperty("${pom.groupId}.${pom.artifactId}.buildstart
ed",'true')}</echo>
		<echo>${pom.groupId}</echo>
		<echo>${pom.artifactId}</echo>
		<echo>${pom.groupId}.${pom.artifactId}.buildstarted</echo>
	
<echo>systemScope["${pom.groupId}.${pom.artifactId}.buildstarted"] =
${systemScope["${pom.groupId}.${pom.artifactId}.buildstarted"]}</echo>
	</goal>

Thanks !

Marc-Andre

-----Original Message-----
From: Deblauwe, Wim [mailto:wim.deblauwe@barco.com]
Sent: Thursday, March 10, 2005 9:02 AM
To: 'Maven Users List'
Subject: RE: Maven systemscope


Does not seem to work..

I have this:

	<goal name="wim:testing">
	
${systemScope.setProperty("${pom.groupId}.${pom.artifactId}.buildstarted",'t
rue')}
			<ant:echo>${systemScope}</ant:echo>
	</goal>

When I look though the echo, it states:
${pom.groupId}.${pom.artifactId}.buildstarted=true

so, not expanded unfortunatly...


-----Original Message-----
From: Marc-Andre Blain [mailto:marc-andre.blain@standardlife.ca]
Sent: donderdag 10 maart 2005 14:58
To: Maven Users List
Subject: RE: Maven systemscope


You just need to insert it in double quotes

${systemScope.setProperty("${pom.groupId}.${pom.artifactId}.buildstarted",'t
rue')}

Regards,

Marc-Andre

-----Original Message-----
From: Deblauwe, Wim [mailto:wim.deblauwe@barco.com]
Sent: Thursday, March 10, 2005 8:55 AM
To: Maven Users List (E-mail)
Subject: Maven systemscope


Hi,
 
I would like to add the following to the systemscope:
 
${systemScope.setProperty('${pom.groupId}.${pom.artifactId}.buildstarted','t
rue')}

 
This does not work, because ${pom.groupId} and ${pom.artifactId} do not
expand to their values. I want ofcourse ${pom.groupId} and ${pom.artifactId}
to expand to their values. Is there a way of doing this?
 
regards,
 
Wim
 

  
Ing. Wim Deblauwe 
Software Development Engineer 
  
BarcoView - Medical Imaging Systems 
President Kennedypark 35 
B-8500 Kortrijk, Belgium 
Tel. +32 56 233 985 Fax +32 56 233 457 
www.barco.com <http://www.barco.com/>  
wim.deblauwe@barco.com <mailto:wim.deblauwe@barco.com> 

 
- - - - - - - DISCLAIMER- - - - - - - -
Unless indicated otherwise, the information contained in this message is
privileged and confidential, and is intended only for the use of the
addressee(s) named above and others who have been specifically authorized to
receive it. If you are not the intended recipient, you are hereby notified
that any dissemination, distribution or copying of this message and/or
attachments is strictly prohibited. The company accepts no liability for any
damage caused by any virus transmitted by this email. Furthermore, the
company does not warrant a proper and complete transmission of this
information, nor does it accept liablility for any delays. If you have
received this message in error, please contact the sender and delete the
message. Thank you.

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

- - - - - - - DISCLAIMER- - - - - - - -
Unless indicated otherwise, the information contained in this message is
privileged and confidential, and is intended only for the use of the
addressee(s) named above and others who have been specifically authorized to
receive it. If you are not the intended recipient, you are hereby notified
that any dissemination, distribution or copying of this message and/or
attachments is strictly prohibited. The company accepts no liability for any
damage caused by any virus transmitted by this email. Furthermore, the
company does not warrant a proper and complete transmission of this
information, nor does it accept liablility for any delays. If you have
received this message in error, please contact the sender and delete the
message. Thank you.

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

- - - - - - - DISCLAIMER- - - - - - - -
Unless indicated otherwise, the information contained in this message is
privileged and confidential, and is intended only for the use of the
addressee(s) named above and others who have been specifically authorized to
receive it. If you are not the intended recipient, you are hereby notified
that any dissemination, distribution or copying of this message and/or
attachments is strictly prohibited. The company accepts no liability for any
damage caused by any virus transmitted by this email. Furthermore, the
company does not warrant a proper and complete transmission of this
information, nor does it accept liablility for any delays. If you have
received this message in error, please contact the sender and delete the
message. Thank you.

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

- - - - - - - DISCLAIMER- - - - - - - -
Unless indicated otherwise, the information contained in this message is
privileged and confidential, and is intended only for the use of the
addressee(s) named above and others who have been specifically authorized to
receive it. If you are not the intended recipient, you are hereby notified
that any dissemination, distribution or copying of this message and/or
attachments is strictly prohibited. The company accepts no liability for any
damage caused by any virus transmitted by this email. Furthermore, the
company does not warrant a proper and complete transmission of this
information, nor does it accept liablility for any delays. If you have
received this message in error, please contact the sender and delete the
message. Thank you.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message