Jelly question

2007-06-22 Thread Jose Correia
Hi all
 
I'm trying to use jelly inside a maven reactor. When I iterate through a
project.xml I have the following component:
 
dependency
  groupIdtools/groupId
  artifactIdartifact/artifactId
  versionSNAPSHOT/version
  properties
classloaderroot/classloader
artifact.origintraderoot/artifact.origin
  /properties
/dependency
dependency
  groupIdjaxb/groupId
  artifactIdjaxb-api/artifactId
  version1.5/version
  properties
classloaderroot/classloader
  /properties
   /dependency
 
When I go through the project.xml Iam trying to identify the
dependency elements which have not got this subElement :
artifact.origin but jelly does not seem to respond to this:
 
j:forEach var=dep items=${multipoms.dependencies}
 j:choose trim=true
   j:when test=${(dep.properties != null) and (not
empty(dep.properties))}
j:forEach var=prop items=${dep.properties}
  j:set var=propArtifact value=${prop.artifact.origin}D/
  echotesting2 ${propArtifact}/echo 
 
 ..
 
When i do that echo, even for the top element above (the one with group
id tools and which has a artifact.origin) I get:  testing2 D instead
of testing2 traderootD
How does one deal with a defined element with a . in it? Does one
escape it as it seems that ${prop.artifact.origin}  doesn't do the
trick
 
Thanks
Jose
 


RE: Jelly question

2007-06-22 Thread Jose Correia
Never mind, needed to use .getProperty(...) :) 

-Original Message-
From: Jose Correia [mailto:[EMAIL PROTECTED] 
Sent: 22 June 2007 12:59 PM
To: commons-user@jakarta.apache.org
Subject: Jelly question

Hi all
 
I'm trying to use jelly inside a maven reactor. When I iterate through a
project.xml I have the following component:
 
dependency
  groupIdtools/groupId
  artifactIdartifact/artifactId
  versionSNAPSHOT/version
  properties
classloaderroot/classloader
artifact.origintraderoot/artifact.origin
  /properties
/dependency
dependency
  groupIdjaxb/groupId
  artifactIdjaxb-api/artifactId
  version1.5/version
  properties
classloaderroot/classloader
  /properties
   /dependency
 
When I go through the project.xml Iam trying to identify the
dependency elements which have not got this subElement :
artifact.origin but jelly does not seem to respond to this:
 
j:forEach var=dep items=${multipoms.dependencies}
 j:choose trim=true
   j:when test=${(dep.properties != null) and (not
empty(dep.properties))}
j:forEach var=prop items=${dep.properties}
  j:set var=propArtifact value=${prop.artifact.origin}D/
  echotesting2 ${propArtifact}/echo 
 
 ..
 
When i do that echo, even for the top element above (the one with group
id tools and which has a artifact.origin) I get:  testing2 D instead
of testing2 traderootD How does one deal with a defined element with a
. in it? Does one escape it as it seems that ${prop.artifact.origin}
doesn't do the trick
 
Thanks
Jose
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]