Issue Details (XML | Word | Printable)

Key: MPCONSOLE-10
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Brett Porter
Reporter: karan singh malhi
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Maven 1.x Console Plugin

console goal should be broken into two to provide more options

Created: 23/Sep/05 06:16 PM   Updated: 01/Oct/05 08:43 PM
Component/s: None
Affects Version/s: None
Fix Version/s: 1.2

Time Tracking:
Not Specified


 Description  « Hide
In the maven console goal, i propose to extract the code to set properties in a separate goal, so that pre/post Goals could be written after the property is set using the console. We need to customize the console for the current project and need to do some post processing of the property value before we can run a goal. If this modification could be made and updated on ibiblio ASAP, then it would be nice.
Below is the current plugin.jelly file:
<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]}" scope="parent" />
</j:when>

I propose to have the following :
<j:when test="${goal.indexOf('=') != '-1'}">
<attainGoal name="setProperties"/>
</j:when>
<goal name="setProperties">
<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>

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.