PR: MPCONSOLE-10

split setting of properties into a separate goal to allow annotation


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@293054 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
brett 2005-10-02 01:43:27 +00:00
parent 60abcae463
commit 2b2f787f11
2 changed files with 8 additions and 3 deletions

View File

@ -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"/>
@ -67,6 +65,12 @@
</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.">
<log:info>
The following commands are available:

View File

@ -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>