From 11edfc23a87c8bf5505f295dfe08cb54b674cd21 Mon Sep 17 00:00:00 2001 From: aclement Date: Wed, 30 Sep 2009 18:56:44 +0000 Subject: [PATCH] 1.6.6 --- .../core/internal/AjdeCoreBuildManager.java | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/ajde.core/src/org/aspectj/ajde/core/internal/AjdeCoreBuildManager.java b/ajde.core/src/org/aspectj/ajde/core/internal/AjdeCoreBuildManager.java index 774dd7b33..39b7d7704 100644 --- a/ajde.core/src/org/aspectj/ajde/core/internal/AjdeCoreBuildManager.java +++ b/ajde.core/src/org/aspectj/ajde/core/internal/AjdeCoreBuildManager.java @@ -168,27 +168,32 @@ public class AjdeCoreBuildManager { } private String formatCollection(Collection options) { - if (options == null) + if (options == null) { return ""; - if (options.isEmpty()) + } + if (options.isEmpty()) { return "none"; + } StringBuffer formattedOptions = new StringBuffer(); Iterator it = options.iterator(); while (it.hasNext()) { String o = it.next().toString(); - if (formattedOptions.length() > 0) + if (formattedOptions.length() > 0) { formattedOptions.append(", "); + } formattedOptions.append(o); } return formattedOptions.toString(); } private String formatMap(Map options) { - if (options == null) + if (options == null) { return ""; - if (options.isEmpty()) + } + if (options.isEmpty()) { return "none"; + } return options.toString(); } @@ -223,7 +228,7 @@ public class AjdeCoreBuildManager { } List xmlfiles = compilerConfig.getProjectXmlConfigFiles(); if (xmlfiles != null && !xmlfiles.isEmpty()) { - args = new String[l.size() + xmlfiles.size()]; + args = new String[l.size() + xmlfiles.size() + 1]; // TODO speedup int p = 0; for (int i = 0; i < l.size(); i++) { @@ -232,6 +237,7 @@ public class AjdeCoreBuildManager { for (int i = 0; i < xmlfiles.size(); i++) { args[p++] = (String) xmlfiles.get(i); } + args[p++] = "-xmlConfigured"; } else { args = (String[]) l.toArray(new String[l.size()]); } -- 2.39.5