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:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>