
|
If you were logged in you would be able to see more operations.
|
|
|
|
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>
|
|
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> |
Show » |
| There are no comments yet on this issue.
|
|