ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject ant git commit: register AntClassLoader as parallel capabale
Date Wed, 21 Sep 2016 17:02:13 GMT
Repository: ant
Updated Branches:
  refs/heads/master 6b17b4cf6 -> d37df73a8


register AntClassLoader as parallel capabale


Project: http://git-wip-us.apache.org/repos/asf/ant/repo
Commit: http://git-wip-us.apache.org/repos/asf/ant/commit/d37df73a
Tree: http://git-wip-us.apache.org/repos/asf/ant/tree/d37df73a
Diff: http://git-wip-us.apache.org/repos/asf/ant/diff/d37df73a

Branch: refs/heads/master
Commit: d37df73a8097142c328d54847d66ffc204ef226f
Parents: 6b17b4c
Author: Stefan Bodewig <bodewig@apache.org>
Authored: Wed Sep 21 19:01:46 2016 +0200
Committer: Stefan Bodewig <bodewig@apache.org>
Committed: Wed Sep 21 19:01:46 2016 +0200

----------------------------------------------------------------------
 WHATSNEW                                                  | 3 +++
 src/main/org/apache/tools/ant/AntClassLoader.java         | 4 ++++
 src/main/org/apache/tools/ant/loader/AntClassLoader2.java | 4 ++++
 src/main/org/apache/tools/ant/loader/AntClassLoader5.java | 4 ++++
 4 files changed, 15 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ant/blob/d37df73a/WHATSNEW
----------------------------------------------------------------------
diff --git a/WHATSNEW b/WHATSNEW
index 426b9dc..a0acec8 100644
--- a/WHATSNEW
+++ b/WHATSNEW
@@ -109,6 +109,9 @@ Other changes:
  * it is now possible to use references to Ant types and classloaders
    built around Ant <path>s as values for TraX factory attributes.
 
+ * AntClassLoader and its subclasses register themselves as parallel
+   capable.
+
 Changes from Ant 1.9.6 TO Ant 1.9.7
 ===================================
 

http://git-wip-us.apache.org/repos/asf/ant/blob/d37df73a/src/main/org/apache/tools/ant/AntClassLoader.java
----------------------------------------------------------------------
diff --git a/src/main/org/apache/tools/ant/AntClassLoader.java b/src/main/org/apache/tools/ant/AntClassLoader.java
index 44f7b2d..e56822f 100644
--- a/src/main/org/apache/tools/ant/AntClassLoader.java
+++ b/src/main/org/apache/tools/ant/AntClassLoader.java
@@ -73,6 +73,10 @@ public class AntClassLoader extends ClassLoader implements SubBuildListener,
Clo
 
     private static final FileUtils FILE_UTILS = FileUtils.getFileUtils();
 
+    static {
+        registerAsParallelCapable();
+    }
+
     /**
      * An enumeration of all resources of a given name found within the
      * classpath of this class loader. This enumeration is used by the

http://git-wip-us.apache.org/repos/asf/ant/blob/d37df73a/src/main/org/apache/tools/ant/loader/AntClassLoader2.java
----------------------------------------------------------------------
diff --git a/src/main/org/apache/tools/ant/loader/AntClassLoader2.java b/src/main/org/apache/tools/ant/loader/AntClassLoader2.java
index 1a4cac6..4838b0d 100644
--- a/src/main/org/apache/tools/ant/loader/AntClassLoader2.java
+++ b/src/main/org/apache/tools/ant/loader/AntClassLoader2.java
@@ -25,6 +25,10 @@ import org.apache.tools.ant.AntClassLoader;
  *             Just use {@link AntClassLoader} itself.
  */
 public class AntClassLoader2 extends AntClassLoader {
+    static {
+        registerAsParallelCapable();
+    }
+
     /** No args constructor. */
     public AntClassLoader2() {
     }

http://git-wip-us.apache.org/repos/asf/ant/blob/d37df73a/src/main/org/apache/tools/ant/loader/AntClassLoader5.java
----------------------------------------------------------------------
diff --git a/src/main/org/apache/tools/ant/loader/AntClassLoader5.java b/src/main/org/apache/tools/ant/loader/AntClassLoader5.java
index 15c29df..873e48a 100644
--- a/src/main/org/apache/tools/ant/loader/AntClassLoader5.java
+++ b/src/main/org/apache/tools/ant/loader/AntClassLoader5.java
@@ -27,6 +27,10 @@ import org.apache.tools.ant.types.Path;
  *             Just use {@link AntClassLoader} itself.
  */
 public class AntClassLoader5 extends AntClassLoader {
+    static {
+        registerAsParallelCapable();
+    }
+
     /**
      * Creates a classloader for the given project using the classpath given.
      *


Mime
View raw message