Summary: | [ExternalTools] ArrayIndexOutOfBounds exception when running ant in a build | ||||||
---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] Platform | Reporter: | Jeff Reichenberg <jeff.reichenberg> | ||||
Component: | Ant | Assignee: | Darin Wright <darin.eclipse> | ||||
Status: | VERIFIED FIXED | QA Contact: | |||||
Severity: | normal | ||||||
Priority: | P1 | CC: | Darin_Swanson, dcorbin | ||||
Version: | 2.0.1 | Keywords: | ui | ||||
Target Milestone: | 2.0.2 | ||||||
Hardware: | PC | ||||||
OS: | Windows 2000 | ||||||
Whiteboard: | |||||||
Attachments: |
|
Description
Jeff Reichenberg
2002-09-09 14:40:48 EDT
Created attachment 2247 [details]
Sample build file that causes the problem.
Problem appears to have been caused by fix to bug 20797. Problem currently only exists in the 2.0.* streams. BUT the fix that caused the problem needs to be added to the 2.1 stream (bug 22402). Problem is in AntFileRunner#execute Code is currently: String[] newArgs = new String[args.length + 1]; for (int i=0; i < newArgs.length; i++) { newArgs[i] = args[i]; } Code should be: String[] newArgs = new String[args.length + 1]; for (int i=0; i < newArgs.length - 1; i++) { //CHANGE HERE newArgs[i] = args[i]; } Fixed in the 2.0.2 stream Please verify the changes to AntFileRunner (Darin W). Verified. Is there any way to tweak the build file so that this will not happen in 2.0.1? Sorry for the delay in response but I was no longer "attached" to this bug. I believe if you do not set a working directory the problem should not occur. If you don't specify a working directory, do you know what IS your working directory? It would be the basedir specified in your build file. So it should work if you correctly specify your basedir in your build file but do not specify the working directory in the external tools setup. |