ASF Bugzilla – Attachment 28096 Details for
Bug 50781
javac task creates long command line
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to fix Bug 50781
ant-bug-50781.patch (text/plain), 1.55 KB, created by
Justin Ryan
on 2011-12-22 04:51:14 UTC
(
hide
)
Description:
Patch to fix Bug 50781
Filename:
MIME Type:
Creator:
Justin Ryan
Created:
2011-12-22 04:51:14 UTC
Size:
1.55 KB
patch
obsolete
>Index: src/main/org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapter.java >=================================================================== >--- src/main/org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapter.java (revision 1208006) >+++ src/main/org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapter.java (working copy) >@@ -483,7 +483,7 @@ > tmpFile = FILE_UTILS.createTempFile( > "files", "", getJavac().getTempdir(), true, true); > out = new BufferedWriter(new FileWriter(tmpFile)); >- for (int i = firstFileName; i < args.length; i++) { >+ for (int i = 1; i < args.length; i++) { > if (quoteFiles && args[i].indexOf(" ") > -1) { > args[i] = args[i].replace(File.separatorChar, '/'); > out.write("\"" + args[i] + "\""); >@@ -493,9 +493,9 @@ > out.newLine(); > } > out.flush(); >- commandArray = new String[firstFileName + 1]; >- System.arraycopy(args, 0, commandArray, 0, firstFileName); >- commandArray[firstFileName] = "@" + tmpFile; >+ commandArray = new String[2]; >+ commandArray[0] = args[0]; >+ commandArray[1] = "@" + tmpFile; > } catch (IOException e) { > throw new BuildException("Error creating temporary file", > e, location);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 50781
:
28096
|
28819
|
29031