You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by jk...@apache.org on 2008/01/04 21:48:57 UTC

svn commit: r608999 - /ant/core/trunk/src/main/org/apache/tools/ant/util/FileUtils.java

Author: jkf
Date: Fri Jan  4 12:48:55 2008
New Revision: 608999

URL: http://svn.apache.org/viewvc?rev=608999&view=rev
Log:
improved lay-out + add since ant 1.7.1 instead of 1.8

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/util/FileUtils.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/util/FileUtils.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/util/FileUtils.java?rev=608999&r1=608998&r2=608999&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/util/FileUtils.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/util/FileUtils.java Fri Jan  4 12:48:55 2008
@@ -804,7 +804,7 @@
      *            Directory to create the temporary file in; java.io.tmpdir used
      *            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.
      * @return a File reference to the new, nonexistent temporary file.
      */
@@ -831,13 +831,14 @@
      * If possible set to true.
      *
      * @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,
             boolean deleteOnExit, boolean createFile) {
         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) {
             try {
@@ -885,7 +886,7 @@
      * @param deleteOnExit
      *            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.
      * @return a File reference to the new, nonexistent temporary file.
      */