Maven 1.x Console Plugin

console goal should be broken into two to provide more options

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 1.2
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

Description

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>

Activity

There are no comments yet on this issue.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: