If anybody are working on mx, I'll try it [java] [java] [java] ===================================================== [java] Passes: 656 [java] Fails: 39 [java] ===================================================== [java] [java] [java] Wrote summary to results.txt [java] Wrote failures to failures.txt
BUILD FAILED /Users/pepebarragan/Developer/apache/flex/sdk/trunk/mustella/build.xml:1453: The following error occurred while executing this line: /Users/pepebarragan/Developer/apache/flex/sdk/trunk/mustella/build.xml:1571: Java returned: 1 Total time: 18 minutes 28 seconds Thanks, Jose On Aug 24, 2012, at 12:43 AM, Justin Mclean <jus...@classsoftware.com> wrote: > Hi, > >> I think I found that quotes are ok even on Mac. Isn't the code that makes >> the initial command line building it up out of pieces? If so, I'd add the >> quotes as the initial command line is getting built up. > Need to be adde din about a dozen places but that's not too hard. However it > still fails as the spilt ignore quotes. > > This is the offending line: > defaultArgs=StringUtils.StringToArray(args); > > Something along the lines of this may work (assuming quotes have been added). > > Matcher match = > Pattern.compile("([^\\S]*\"[^\"]*\")|(\\S+)").matcher(args); > ArrayList argList = new ArrayList(); > > while (match.find()) { > if (match.group(1) == null) { > argList.add(match.group(2)); > } else { > argList.add(match.group(1)); > } > } > > Anyone want to give it a go/come up with a better regex? > > The better way to fix as Peter said would just to use an Array/arrayList and > not go back and forth between Arrays and Strings. > > Thanks, > Justin > >