Author: sebb
Date: Wed Apr 23 08:55:49 2008
New Revision: 650921
URL: http://svn.apache.org/viewvc?rev=650921&view=rev
Log:
Fix VMS command file creation so does not create additional empty file
Change name from ANTnnn.COM to EXECnnn.TMP
Modified:
commons/sandbox/exec/trunk/src/main/java/org/apache/commons/exec/launcher/VmsCommandLauncher.java
Modified:
commons/sandbox/exec/trunk/src/main/java/org/apache/commons/exec/launcher/VmsCommandLauncher.java
URL:
http://svn.apache.org/viewvc/commons/sandbox/exec/trunk/src/main/java/org/apache/commons/exec/launcher/VmsCommandLauncher.java?rev=650921&r1=650920&r2=650921&view=diff
==============================================================================
---
commons/sandbox/exec/trunk/src/main/java/org/apache/commons/exec/launcher/VmsCommandLauncher.java
(original)
+++
commons/sandbox/exec/trunk/src/main/java/org/apache/commons/exec/launcher/VmsCommandLauncher.java
Wed Apr 23 08:55:49 2008
@@ -77,11 +77,11 @@
*/
private File createCommandFile(final CommandLine cmd, final Map env)
throws IOException {
- File script = File.createTempFile("ANT", ".COM");
+ File script = File.createTempFile("EXEC", ".TMP");
script.deleteOnExit();
PrintWriter out = null;
try {
- out = new PrintWriter(new FileWriter(script));
+ out = new PrintWriter(new
FileWriter(script.getAbsolutePath(),true));
// add the environment as logicals to the DCL script
if (env != null) {