maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rfscho...@apache.org
Subject svn commit: r1744909 - /maven/release/trunk/maven-release-manager/src/main/java/org/apache/maven/shared/release/phase/AbstractRewritePomsPhase.java
Date Sat, 21 May 2016 11:34:43 GMT
Author: rfscholte
Date: Sat May 21 11:34:43 2016
New Revision: 1744909

URL: http://svn.apache.org/viewvc?rev=1744909&view=rev
Log:
Add setter for ModelETL

Modified:
    maven/release/trunk/maven-release-manager/src/main/java/org/apache/maven/shared/release/phase/AbstractRewritePomsPhase.java

Modified: maven/release/trunk/maven-release-manager/src/main/java/org/apache/maven/shared/release/phase/AbstractRewritePomsPhase.java
URL: http://svn.apache.org/viewvc/maven/release/trunk/maven-release-manager/src/main/java/org/apache/maven/shared/release/phase/AbstractRewritePomsPhase.java?rev=1744909&r1=1744908&r2=1744909&view=diff
==============================================================================
--- maven/release/trunk/maven-release-manager/src/main/java/org/apache/maven/shared/release/phase/AbstractRewritePomsPhase.java
(original)
+++ maven/release/trunk/maven-release-manager/src/main/java/org/apache/maven/shared/release/phase/AbstractRewritePomsPhase.java
Sat May 21 11:34:43 2016
@@ -77,7 +77,10 @@ public abstract class AbstractRewritePom
     
     private Map<String, ModelETLFactory> modelETLFactories;
     
-    private String defaultModelETLFactoryHint = JDomModelETLFactory.ROLE_HINT;
+    /**
+     * Use jdom-sax as default
+     */
+    private String modelETL = JDomModelETLFactory.ROLE_HINT;
 
     /**
      * SCM URL translators mapped by provider name.
@@ -100,6 +103,11 @@ public abstract class AbstractRewritePom
     {
         this.ls = ls;
     }
+    
+    public void setModelETL( String modelETL )
+    {
+        this.modelETL = modelETL;
+    }
 
     @Override
     public ReleaseResult execute( ReleaseDescriptor releaseDescriptor, ReleaseEnvironment
releaseEnvironment,
@@ -182,7 +190,7 @@ public abstract class AbstractRewritePom
         request.setProject( project );
         request.setReleaseDescriptor( releaseDescriptor );
         
-        ModelETL etl = modelETLFactories.get( defaultModelETLFactoryHint ).newInstance( request
);
+        ModelETL etl = modelETLFactories.get( modelETL ).newInstance( request );
         
         etl.extract( pomFile );
 



Mime
View raw message