[Schmitzm-commits] r1713 - trunk/schmitzm-core/src/main/java/de/schmitzm/io

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Sep 6 16:30:36 CEST 2011


Author: alfonx
Date: 2011-09-06 16:30:35 +0200 (Tue, 06 Sep 2011)
New Revision: 1713

Modified:
   trunk/schmitzm-core/src/main/java/de/schmitzm/io/IOUtil.java
Log:
copyUrl now return the destinatino File

Modified: trunk/schmitzm-core/src/main/java/de/schmitzm/io/IOUtil.java
===================================================================
--- trunk/schmitzm-core/src/main/java/de/schmitzm/io/IOUtil.java	2011-09-06 10:38:45 UTC (rev 1712)
+++ trunk/schmitzm-core/src/main/java/de/schmitzm/io/IOUtil.java	2011-09-06 14:30:35 UTC (rev 1713)
@@ -1216,8 +1216,10 @@
 	 *            copying a file to file.
 	 * 
 	 * @author <a href="mailto:tzeggai at wikisquare.de">Stefan Alfons Tzeggai</a>
+	 * 
+	 * @return A {@link File} to the new destination 
 	 */
-	public final static void copyUrl(final URL source, File destination,
+	public final static File copyUrl(final URL source, File destination,
 			final Boolean cleanFilenames) throws IOException,
 			URISyntaxException {
 
@@ -1232,6 +1234,8 @@
 		}
 
 		FileUtils.copyURLToFile(source, destination);
+		
+		return destination;
 	}
 
 	/**



More information about the Schmitzm-commits mailing list