ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jlboud...@apache.org
Subject svn commit: r1500460 - /ant/easyant/core/trunk/src/main/java/org/apache/easyant/core/services/impl/DefaultPluginServiceImpl.java
Date Sun, 07 Jul 2013 15:47:28 GMT
Author: jlboudart
Date: Sun Jul  7 15:47:27 2013
New Revision: 1500460

URL: http://svn.apache.org/r1500460
Log:
src/main/java/org/apache/easyant/core/services/impl/DefaultPluginServiceImpl.java

Modified:
    ant/easyant/core/trunk/src/main/java/org/apache/easyant/core/services/impl/DefaultPluginServiceImpl.java

Modified: ant/easyant/core/trunk/src/main/java/org/apache/easyant/core/services/impl/DefaultPluginServiceImpl.java
URL: http://svn.apache.org/viewvc/ant/easyant/core/trunk/src/main/java/org/apache/easyant/core/services/impl/DefaultPluginServiceImpl.java?rev=1500460&r1=1500459&r2=1500460&view=diff
==============================================================================
--- ant/easyant/core/trunk/src/main/java/org/apache/easyant/core/services/impl/DefaultPluginServiceImpl.java
(original)
+++ ant/easyant/core/trunk/src/main/java/org/apache/easyant/core/services/impl/DefaultPluginServiceImpl.java
Sun Jul  7 15:47:27 2013
@@ -23,8 +23,8 @@ import java.io.IOException;
 import java.util.Enumeration;
 import java.util.Iterator;
 import java.util.Map;
-import java.util.Properties;
 import java.util.Map.Entry;
+import java.util.Properties;
 
 import org.apache.easyant.core.EasyAntConstants;
 import org.apache.easyant.core.EasyAntMagicNames;
@@ -70,6 +70,8 @@ import org.apache.tools.ant.ExtensionPoi
 import org.apache.tools.ant.Location;
 import org.apache.tools.ant.Project;
 import org.apache.tools.ant.ProjectHelper;
+import org.apache.tools.ant.PropertyHelper;
+import org.apache.tools.ant.PropertyHelper.PropertyEvaluator;
 import org.apache.tools.ant.Target;
 import org.apache.tools.ant.Task;
 import org.apache.tools.ant.UnknownElement;
@@ -209,6 +211,16 @@ public class DefaultPluginServiceImpl im
         project.setNewProperty(EasyAntMagicNames.SKIP_CORE_REVISION_CHECKER, "true");
         project.addReference(EasyAntMagicNames.EASYANT_IVY_INSTANCE, easyantIvySettings);
         project.addBuildListener(new TaskCollectorFromImplicitTargetListener());
+        
+        //add a property helper to ignore basedir property on reports
+        PropertyHelper propertyHelper = PropertyHelper.getPropertyHelper(project);
+        propertyHelper.add(new PropertyEvaluator() {
+
+            public Object evaluate(String propertyName, PropertyHelper helper) {
+                return propertyName.equals("basedir") ? "${basedir}" : null;
+            }
+            
+        });
 
         if (properties != null) {
             for (Entry<String, String> entry : properties.entrySet()) {



Mime
View raw message