> 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: [EMAIL PROTECTED] For
>> additional commands, e-mail: [EMAIL PROTECTED]
>>
>
>
>
> Siegfried Goeschl
> CTO
> =================================
> IT20one GmbH
> mail: [EMAIL PROTECTED]
> phone: +43-1-9900046
> fax: +43-1-52 37 888
> www.it20one.at
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]