ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jlboud...@apache.org
Subject [09/12] git commit: set array size
Date Thu, 28 Aug 2014 07:04:50 GMT
set array size


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

Branch: refs/heads/master
Commit: bb7e81a5eb034438b7a06db18c1f3d38552f5a90
Parents: a0cd109
Author: Jean-Louis Boudart <jeanlouis.boudart@gmail.com>
Authored: Thu Aug 28 08:54:40 2014 +0200
Committer: Jean-Louis Boudart <jeanlouis.boudart@gmail.com>
Committed: Thu Aug 28 08:54:40 2014 +0200

----------------------------------------------------------------------
 src/main/java/org/apache/easyant/core/ant/MetaBuildExecutor.java | 4 ++--
 src/main/java/org/apache/easyant/tasks/LoadModule.java           | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ant-easyant-core/blob/bb7e81a5/src/main/java/org/apache/easyant/core/ant/MetaBuildExecutor.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/easyant/core/ant/MetaBuildExecutor.java b/src/main/java/org/apache/easyant/core/ant/MetaBuildExecutor.java
index 341ba11..7a68aa5 100644
--- a/src/main/java/org/apache/easyant/core/ant/MetaBuildExecutor.java
+++ b/src/main/java/org/apache/easyant/core/ant/MetaBuildExecutor.java
@@ -74,7 +74,7 @@ public class MetaBuildExecutor extends DefaultExecutor {
 
         // now call the default executor to include any extra
         // targets defined in the root module.ant
-        super.executeTargets(project, preTargetsToRun.toArray(new String[] {}));
+        super.executeTargets(project, preTargetsToRun.toArray(new String[preTargetsToRun.size()]));
 
         printSubBuildsInOrder(project);
         // delegate to the ea:submodule task to execute the list of targets on
@@ -93,7 +93,7 @@ public class MetaBuildExecutor extends DefaultExecutor {
 
         // now call the default executor to include any extra targets defined in
         // the root module.ant
-        super.executeTargets(project, postTargetsToRun.toArray(new String[] {}));
+        super.executeTargets(project, postTargetsToRun.toArray(new String[postTargetsToRun.size()]));
     }
 
     /*

http://git-wip-us.apache.org/repos/asf/ant-easyant-core/blob/bb7e81a5/src/main/java/org/apache/easyant/tasks/LoadModule.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/easyant/tasks/LoadModule.java b/src/main/java/org/apache/easyant/tasks/LoadModule.java
index 1efdf4a..3e37b56 100644
--- a/src/main/java/org/apache/easyant/tasks/LoadModule.java
+++ b/src/main/java/org/apache/easyant/tasks/LoadModule.java
@@ -443,7 +443,7 @@ public class LoadModule extends AbstractEasyAntTask {
             }
         }
         if (mainConfsList.size() > 0) {
-            String mainConfs = StringUtils.join(mainConfsList.toArray(new String[0]), ",");
+            String mainConfs = StringUtils.join(mainConfsList.toArray(new String[mainConfsList.size()]),
",");
             log("updating main.confs with active profile for current project :" + mainConfs,
Project.MSG_DEBUG);
             getProject().setProperty(EasyAntMagicNames.MAIN_CONFS, mainConfs);
         }


Mime
View raw message