Browse Source

improved lay-out + add since ant 1.7.1 instead of 1.8

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@608999 13f79535-47bb-0310-9956-ffa450edef68
master
Jacobus Martinus Kruithof 17 years ago
parent
commit
46bf9d8c85
1 changed files with 6 additions and 5 deletions
  1. +6
    -5
      src/main/org/apache/tools/ant/util/FileUtils.java

+ 6
- 5
src/main/org/apache/tools/ant/util/FileUtils.java View File

@@ -804,7 +804,7 @@ public class FileUtils {
* Directory to create the temporary file in; java.io.tmpdir used * Directory to create the temporary file in; java.io.tmpdir used
* if not specified. * if not specified.
* *
* @deprecated since ant 1.8 use createTempFile(String, String, File,
* @deprecated since ant 1.7.1 use createTempFile(String, String, File,
* boolean, boolean) instead. * boolean, boolean) instead.
* @return a File reference to the new, nonexistent temporary file. * @return a File reference to the new, nonexistent temporary file.
*/ */
@@ -831,13 +831,14 @@ public class FileUtils {
* If possible set to true. * If possible set to true.
* *
* @return a File reference to the new temporary file. * @return a File reference to the new temporary file.
* @since Ant 1.8
* @since Ant 1.7.1
*/ */
public File createTempFile(String prefix, String suffix, File parentDir, public File createTempFile(String prefix, String suffix, File parentDir,
boolean deleteOnExit, boolean createFile) { boolean deleteOnExit, boolean createFile) {
File result = null; File result = null;
String parent = (parentDir == null) ? System
.getProperty("java.io.tmpdir") : parentDir.getPath();
String parent = (parentDir == null)
? System.getProperty("java.io.tmpdir")
: parentDir.getPath();


if (createFile) { if (createFile) {
try { try {
@@ -885,7 +886,7 @@ public class FileUtils {
* @param deleteOnExit * @param deleteOnExit
* whether to set the tempfile for deletion on normal VM exit. * whether to set the tempfile for deletion on normal VM exit.
* *
* @deprecated since ant 1.8 use createTempFile(String, String, File,
* @deprecated since ant 1.7.1 use createTempFile(String, String, File,
* boolean, boolean) instead. * boolean, boolean) instead.
* @return a File reference to the new, nonexistent temporary file. * @return a File reference to the new, nonexistent temporary file.
*/ */


Loading…
Cancel
Save