incubator-easyant-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jlboud...@apache.org
Subject svn commit: r1387074 - in /incubator/easyant/core/trunk/src/main/java/org/apache/ivy: ./ ant/ ant/EasyAntPluginBridge.java
Date Tue, 18 Sep 2012 09:47:23 GMT
Author: jlboudart
Date: Tue Sep 18 09:47:22 2012
New Revision: 1387074

URL: http://svn.apache.org/viewvc?rev=1387074&view=rev
Log:
Add missing class EasyAntPluginBridge

Added:
    incubator/easyant/core/trunk/src/main/java/org/apache/ivy/
    incubator/easyant/core/trunk/src/main/java/org/apache/ivy/ant/
    incubator/easyant/core/trunk/src/main/java/org/apache/ivy/ant/EasyAntPluginBridge.java

Added: incubator/easyant/core/trunk/src/main/java/org/apache/ivy/ant/EasyAntPluginBridge.java
URL: http://svn.apache.org/viewvc/incubator/easyant/core/trunk/src/main/java/org/apache/ivy/ant/EasyAntPluginBridge.java?rev=1387074&view=auto
==============================================================================
--- incubator/easyant/core/trunk/src/main/java/org/apache/ivy/ant/EasyAntPluginBridge.java
(added)
+++ incubator/easyant/core/trunk/src/main/java/org/apache/ivy/ant/EasyAntPluginBridge.java
Tue Sep 18 09:47:22 2012
@@ -0,0 +1,30 @@
+package org.apache.ivy.ant;
+
+import java.util.List;
+
+import org.apache.ivy.core.module.descriptor.DefaultModuleDescriptor;
+import org.apache.ivy.core.module.descriptor.DependencyDescriptor;
+import org.apache.ivy.core.settings.IvySettings;
+
+public class EasyAntPluginBridge {
+
+    public static DefaultModuleDescriptor computeModuleDescriptor(DefaultModuleDescriptor
md, IvySettings settings,
+            List<IvyDependency> dependencies, List<IvyConflict> conflicts, List<IvyExclude>
excludes) {
+        for (IvyDependency dependency : dependencies) {
+            DependencyDescriptor dd = dependency.asDependencyDescriptor(md, "default", settings);
+            md.addDependency(dd);
+        }
+
+        for (IvyExclude exclude : excludes) {
+            org.apache.ivy.core.module.descriptor.DefaultExcludeRule rule = exclude.asRule(settings);
+            rule.addConfiguration("default");
+            md.addExcludeRule(rule);
+        }
+
+        for (IvyConflict conflict : conflicts) {
+            conflict.addConflict(md, settings);
+        }
+        return md;
+    }
+
+}



Mime
View raw message