maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James CE Johnson" <j...@tragus.org>
Subject Re: Using jelly script in project.xml
Date Thu, 30 Oct 2003 19:06:44 GMT
> Hi James,
>
> can you tell me if you succeeded with this approach?!

No luck so far :-(

I can't quite figure out when the jelly script is executed in the
project.xml lifecycle. From what I can tell, though, its after the ${pom}
has already been populated because my script below had absolutely no
effect on the actual list of dependencies.

> I actually
> thought of using JELLY scripting to pull in dependencies but you end  up
> with a "non-XML" file. In my case we thought of autogenerating the  WSAD
> (Websphere Application Studio) project files based on the POM  similar
> to that what MEVENIDE does (or should do)
>
> Thanks in advance,
>
> Siegfried Goeschl
>
> On 30 Oct 2003 at 8:56, James CE Johnson wrote:
>
>> This bit from project.xml:
>>
>>
>>   <dependencies>
>>     <maven:pom var="pom"
>>                projectDescriptor="${basedir}/../view/project.xml"/>
>>     <j:forEach var="dep" items="${pom.dependencies}">
>>       <j:if test="${dep.getProperty('war.bundle')=='true'}">
>>         <dependency>
>>           <id>${dep.id}</id>
>>           <groupId>${dep.groupId}</groupId>
>>           <version>${dep.version}</version>
>>         </dependency>
>>       </j:if>
>>     </j:forEach>
>>   </dependencies>
>>
>> And this bit from maven.xml:
>>
>>   <goal name="foo">
>>     <j:forEach var="dep" items="${pom.dependencies}">
>>       <echo message="${dep.id}"/>
>>     </j:forEach>
>>   </goal>
>>
>> Doesn't produce what I was hoping for. That is, I want this project's
>> project.xml to include in its dependencies everything marked
>> 'war.bundle' in ../view/project.xml. The 'foo' goal doesn't show any
>> such thing.
>>
>> Is a completely stupid thing to do or am I just doing it the wrong
>> way?
>>
>> Thanks,
>> J
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For
>> additional commands, e-mail: users-help@maven.apache.org
>>
>
>
>
> Siegfried Goeschl
> CTO
> =================================
> IT20one GmbH
> mail: siegfried.goeschl@it20one.at
> phone: +43-1-9900046
> fax: +43-1-52 37 888
> www.it20one.at


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


Mime
View raw message