evenisse 2003/02/06 07:23:04
Modified: src/plugins-build/console plugin.jelly
Log:
Add log:info to see messages
Revision Changes Path
1.2 +67 -64 jakarta-turbine-maven/src/plugins-build/console/plugin.jelly
Index: plugin.jelly
===================================================================
RCS file: /home/cvs/jakarta-turbine-maven/src/plugins-build/console/plugin.jelly,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- plugin.jelly 24 Jan 2003 03:45:06 -0000 1.1
+++ plugin.jelly 6 Feb 2003 15:23:03 -0000 1.2
@@ -1,64 +1,67 @@
-<?xml version="1.0"?>
-
-<project
- xmlns:j="jelly:core"
- xmlns:i="jelly:interaction"
- xmlns:log="jelly:log"
- xmlns:util="jelly:util">
-
- <goal name="console" description="Run the Maven console">
- <attainGoal name="console:help"/>
- <j:set var="lastGoal" value="${maven.console.first}"/>
- <j:set var="followOn" value="true"/>
- <j:while test="${followOn}">
- <i:ask question="${pom.artifactId} ${pom.currentVersion} >" answer="goal"
default="${lastGoal}"/>
- <j:choose>
- <j:when test="${goal.indexOf('=') != '-1'}">
- <util:tokenize var="propertyPieces" delim="=">${goal}</util:tokenize>
- <log:info>Setting property ${propertyPieces[0]} to
${propertyPieces[1]}</log:info>
- <j:set var="${propertyPieces[0]}" value="${propertyPieces[1]}" />
- </j:when>
- <j:when test="${goal=='help'}">
- <attainGoal name="console:help"/>
- </j:when>
- <j:when test="${goal=='list'}">
- <attainGoal name="console:listGoals"/>
- </j:when>
- <j:when test="${goal=='quit'}">
- <j:set var="followOn" value="false"/>
- </j:when>
- <j:otherwise>
- <j:catch var="ex">
- <util:tokenize var="goals" delim=" ,;">${goal}</util:tokenize>
- <j:forEach var="partGoal" items="${goals}">
- <attainGoal name="${partGoal}"/>
- </j:forEach>
- <j:set var="lastGoal" value="${goal}"/>
- </j:catch>
- <j:if test="${ex != null}">
-${ex}
- </j:if>
- </j:otherwise>
- </j:choose>
- <j:if test="${followOn=='false'}">
-Bye !
- </j:if>
- </j:while>
- </goal>
-
- <goal name="console:listGoals" description="List all available goals">
- <j:set var="proj" value="${org.apache.commons.jelly.werkz.Project}"/>
- <j:forEach var="listGoal" items="${proj.goals}" trim="false">
-${listGoal.name}</j:forEach>
- </goal>
-
- <goal name="console:help" description="Print the help message.">
-The following commands are available:
-
- list - list all available goals
- help - this message
- <goalname> - attain a goal
- quit - quits the console
-
- </goal>
-</project>
+<?xml version="1.0"?>
+
+<project
+ xmlns:j="jelly:core"
+ xmlns:i="jelly:interaction"
+ xmlns:log="jelly:log"
+ xmlns:util="jelly:util">
+
+ <goal name="console" description="Run the Maven console">
+ <attainGoal name="console:help"/>
+ <j:set var="lastGoal" value="${maven.console.first}"/>
+ <j:set var="followOn" value="true"/>
+ <j:while test="${followOn}">
+ <i:ask question="${pom.artifactId} ${pom.currentVersion} >" answer="goal"
default="${lastGoal}"/>
+ <j:choose>
+ <j:when test="${goal.indexOf('=') != '-1'}">
+ <util:tokenize var="propertyPieces" delim="=">${goal}</util:tokenize>
+ <log:info>Setting property ${propertyPieces[0]} to
${propertyPieces[1]}</log:info>
+ <j:set var="${propertyPieces[0]}" value="${propertyPieces[1]}" />
+ </j:when>
+ <j:when test="${goal=='help'}">
+ <attainGoal name="console:help"/>
+ </j:when>
+ <j:when test="${goal=='list'}">
+ <attainGoal name="console:listGoals"/>
+ </j:when>
+ <j:when test="${goal=='quit'}">
+ <j:set var="followOn" value="false"/>
+ </j:when>
+ <j:otherwise>
+ <j:catch var="ex">
+ <util:tokenize var="goals" delim=" ,;">${goal}</util:tokenize>
+ <j:forEach var="partGoal" items="${goals}">
+ <attainGoal name="${partGoal}"/>
+ </j:forEach>
+ <j:set var="lastGoal" value="${goal}"/>
+ </j:catch>
+ <j:if test="${ex != null}">
+<log:info>${ex}</log:info>
+ </j:if>
+ </j:otherwise>
+ </j:choose>
+ <j:if test="${followOn=='false'}">
+<log:info>Bye !</log:info>
+ </j:if>
+ </j:while>
+ </goal>
+
+ <goal name="console:listGoals" description="List all available goals">
+ <j:set var="proj" value="${org.apache.commons.jelly.werkz.Project}"/>
+ <j:forEach var="listGoal" items="${proj.goals}" trim="false">
+<log:info>${listGoal.name}</log:info>
+ </j:forEach>
+ </goal>
+
+ <goal name="console:help" description="Print the help message.">
+ <log:info>
+The following commands are available:
+
+ list - list all available goals
+ help - this message
+ <goalname> - attain a goal
+ quit - quits the console
+
+ </log:info>
+ </goal>
+</project>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]