Author: brett
Date: Sat Oct 1 18:43:27 2005
New Revision: 293054
URL: http://svn.apache.org/viewcvs?rev=293054&view=rev
Log:
PR: MPCONSOLE-10
split setting of properties into a separate goal to allow annotation
Modified:
maven/maven-1/plugins/trunk/console/plugin.jelly
maven/maven-1/plugins/trunk/console/xdocs/changes.xml
Modified: maven/maven-1/plugins/trunk/console/plugin.jelly
URL:
http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/console/plugin.jelly?rev=293054&r1=293053&r2=293054&view=diff
==============================================================================
--- maven/maven-1/plugins/trunk/console/plugin.jelly (original)
+++ maven/maven-1/plugins/trunk/console/plugin.jelly Sat Oct 1 18:43:27 2005
@@ -37,9 +37,7 @@
<log:info>${prop} = ${context.getVariable(prop)}</log:info>
</j:when>
<j:when test="${goal.indexOf('=') gt 0}">
- <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]}"
scope="parent" />
+ <attainGoal name="console:set-properties" />
</j:when>
<j:when test="${goal=='help'}">
<attainGoal name="console:help"/>
@@ -65,6 +63,12 @@
<log:info>Bye !</log:info>
</j:if>
</j:while>
+ </goal>
+
+ <goal name="console:set-properties">
+ <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]}"
scope="parent" />
</goal>
<goal name="console:help" description="Print the help message.">
Modified: maven/maven-1/plugins/trunk/console/xdocs/changes.xml
URL:
http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/console/xdocs/changes.xml?rev=293054&r1=293053&r2=293054&view=diff
==============================================================================
--- maven/maven-1/plugins/trunk/console/xdocs/changes.xml (original)
+++ maven/maven-1/plugins/trunk/console/xdocs/changes.xml Sat Oct 1 18:43:27
2005
@@ -25,6 +25,7 @@
</properties>
<body>
<release version="1.2-SNAPSHOT" date="in SVN">
+ <action dev="brett" type="update" issue="MPCONSOLE-10">Split property
setting into a separate goal console:set-properties to allow annotation of the
properties</action>
<action dev="brett" type="remove">Removed the <code>list</code> command
as it hasn't worked as expected since the early betas (goals are lazy loaded
into the werkz project)</action>
<action dev="brett" type="add">Add way to display a property
value</action>
<action dev="brett" type="update">Improve help</action>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]