You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Nick Cross (Jira)" <ji...@apache.org> on 2020/05/01 07:14:00 UTC

[jira] [Created] (MRELEASE-1044) Allow JDomModelETL to be reused

Nick Cross created MRELEASE-1044:
------------------------------------

             Summary: Allow JDomModelETL to be reused
                 Key: MRELEASE-1044
                 URL: https://issues.apache.org/jira/browse/MRELEASE-1044
             Project: Maven Release Plugin
          Issue Type: Task
            Reporter: Nick Cross


Would it be possible to consider exposing for reuse e.g. by making them protected the fields in org.apache.maven.shared.release.transform.jdom.JDomModelETL

{code:java}
    private Document document;

    private String intro = null;
    private String outtro = null;
{code}

In my project I would like to improve the roundtrip ability of rewriting POMs and hence I am looking at reusing this code which provides a much better experience.

Ideally if those fields were protected I could subclass it and perform further actions upon the Document and the outtro strings (e.g. adding '<-- Modified by foo -->' ) etc. 

Thanks.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)