atom feed6 messages in org.apache.maven.usersRe: I think I need some jelly help...
FromSent OnAttachments
James CE JohnsonDec 17, 2002 8:05 am 
di...@multitask.com.auDec 17, 2002 8:39 am 
James CE JohnsonDec 17, 2002 8:47 am 
di...@multitask.com.auDec 17, 2002 9:01 am 
James CE JohnsonDec 17, 2002 9:15 am 
James StrachanDec 17, 2002 9:26 am 
Subject:Re: I think I need some jelly help...
From:di...@multitask.com.au (di@multitask.com.au)
Date:Dec 17, 2002 9:01:14 am
List:org.apache.maven.users

Try with -Ddatabase=oracle and see if that helps. I had hassles with jelly and properties today. -- dIon Gillard, Multitask Consulting Blog: http://www.freeroller.net/page/dion/Weblog Work: http://www.multitask.com.au

"James CE Johnson" <jc@tragus.org> wrote on 18/12/2002 03:47:26 AM:

How is database being passed to maven?

In a project.properties.

I thought there might be an issue there with "property vs variable" which is why I threw in the j:set. That didn't help though.

-- dIon Gillard, Multitask Consulting Blog: http://www.freeroller.net/page/dion/Weblog Work: http://www.multitask.com.au

"James CE Johnson" <jc@tragus.org> wrote on 18/12/2002 03:05:56 AM:

I've got the following postGoal but my j:when tests always fail.

This:

<postGoal name="war:webapp"> <j:scope> <echo message="postGoal war:webapp (${database})"/> <!-- this line neither helps nor hinders --> <j:set var="database" value="${database}"/> <j:choose> <j:when test="${database=='oracle'}"> <echo message="The database is oracle"/> </j:when> <j:when test="${database=='hypersonic'}"> <echo message="The database is hypersonic"/> </j:when> <j:otherwise> <echo message="Can't handle database (${database})"/> </j:otherwise> </j:choose> </j:scope> </postGoal>

Produces this:

war:webapp: [echo] Assembling webapp automate [copy] Copying 1 file to /home/jcej/personal/jcej/Automate/target/automate/WEB-INF/classes [copy] Copying 1 file to /home/jcej/personal/jcej/Automate/target/webapps/automate.war [echo] postGoal war:webapp (oracle) [echo] Can't handle database (oracle) [copy] Copying 1 file to

/home/jcej/personal/jcej/Automate/target/webapps/automate.war/WEB-

INF/classes

If I add: <j:set name="database" value="oracle"/>

prior to the j:choose then it works as expected.

What am I doing wrong?

-- To unsubscribe, e-mail: <mailto:turbine-maven-user- unsu@jakarta.apache.org> For additional commands, e-mail: <mailto:turbine-maven-user- he@jakarta.apache.org>

ForwardSourceID:NT0009A866