incubator-easyant-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jlboud...@apache.org
Subject svn commit: r1373135 - /incubator/easyant/core/trunk/src/main/java/org/apache/easyant/tasks/ConfigureBuildScopedRepository.java
Date Tue, 14 Aug 2012 22:04:55 GMT
Author: jlboudart
Date: Tue Aug 14 22:04:54 2012
New Revision: 1373135

URL: http://svn.apache.org/viewvc?rev=1373135&view=rev
Log:
Add new attribute on ConfigureBuildScopedRepository to bypass wrapper resolver generation

Modified:
    incubator/easyant/core/trunk/src/main/java/org/apache/easyant/tasks/ConfigureBuildScopedRepository.java

Modified: incubator/easyant/core/trunk/src/main/java/org/apache/easyant/tasks/ConfigureBuildScopedRepository.java
URL: http://svn.apache.org/viewvc/incubator/easyant/core/trunk/src/main/java/org/apache/easyant/tasks/ConfigureBuildScopedRepository.java?rev=1373135&r1=1373134&r2=1373135&view=diff
==============================================================================
--- incubator/easyant/core/trunk/src/main/java/org/apache/easyant/tasks/ConfigureBuildScopedRepository.java
(original)
+++ incubator/easyant/core/trunk/src/main/java/org/apache/easyant/tasks/ConfigureBuildScopedRepository.java
Tue Aug 14 22:04:54 2012
@@ -41,6 +41,7 @@ public class ConfigureBuildScopedReposit
 
     private String target;
     private boolean dictator = false;
+    private boolean generateWrapperResoler = true;
     private String ivyPattern = "/[organisation]/[module]/[revision]/[module].ivy";
     private String artifactPattern = "/[organisation]/[module]/[revision]/[artifact](-[classifier]).[ext]";
 
@@ -127,6 +128,27 @@ public class ConfigureBuildScopedReposit
         this.target = target;
     }
 
+    /**
+     * Specify if we need to generate wrapper resolver. This is not evaluated when using
as dictator. When false,
+     * repository will be generated but not plugged in current {@link ChainResolver}
+     * 
+     * @return true if we need to generate wrapper resolver
+     */
+    public boolean isGenerateWrapperResoler() {
+        return generateWrapperResoler;
+    }
+
+    /**
+     * Specify if we need to generate wrapper resolver. This is not evaluated when using
as dictator. When false,
+     * repository will be generated but not plugged in current {@link ChainResolver}
+     * 
+     * @param generateWrapperResoler
+     *            true if we need to generate wrapper resolver
+     */
+    public void setGenerateWrapperResoler(boolean generateWrapperResoler) {
+        this.generateWrapperResoler = generateWrapperResoler;
+    }
+
     @Override
     public void doExecute() throws BuildException {
         String target = getTarget();
@@ -168,7 +190,7 @@ public class ConfigureBuildScopedReposit
         buildRepository.setName(buildScopeRepositoryName);
         if (isDictator()) {
             settings.setDictatorResolver(buildRepository);
-        } else {
+        } else if (isGenerateWrapperResoler()){
 
             // Search the default resolver after the build-scoped repo
             DependencyResolver dr = settings.getDefaultResolver();



Mime
View raw message