You are viewing a plain text version of this content. The canonical link for it is here.
Posted to m2-dev@maven.apache.org by ji...@codehaus.org on 2005/02/03 22:16:20 UTC
[jira] Work Logged: (MNG-56) Enable interpolation of pom values within the pom
The following work log has been added to this issue:
Logged By: John Casey
Created: Thu, 3 Feb 2005 4:14 PM
Time Logged: 12 hours
Description:
Implemented POM interpolation using xml serialization, regex'es, and reflective POM value extraction.
- Serialize model to StringWriter using MavenXpp3Writer
- Use regex: "#([.A-Za-z]+)" to pull both the expression and it's delimiter(s) out of the serialized model, one at a time.
- Extract the model value for the expression, and if not null replaceAll(delimited-expression, value) on the serialized model.
- Reset the matcher to the new serialized model, which has some values interpolated
- Repeat until matcher.find() == false.
It's fairly fast, and very maintainable, and represents the third iteration of work I've done on this. In the second iteration, I used a variant of InterpolatingFilterReader, but had to scrap it since it requires both beginning and ending expression delimiters, and we're hoping to use OGNL syntax.
---------------------------------------------------------------------
View this work log:
http://jira.codehaus.org/browse/MNG-56?page=worklog#action_29548
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/browse/MNG-56
Here is an overview of the issue:
---------------------------------------------------------------------
Key: MNG-56
Summary: Enable interpolation of pom values within the pom
Type: Task
Status: In Progress
Priority: Major
Original Estimate: Unknown
Time Spent: 12 hours
Remaining: 0 minutes
Project: m2
Fix Fors:
1.0-alpha-1
Versions:
1.0-alpha-1
Assignee: John Casey
Reporter: Jason van Zyl
Created: Mon, 26 Jul 2004 10:57 PM
Updated: Thu, 3 Feb 2005 4:14 PM
Description:
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira