[izpack-changes] r2026 - izpack-src/trunk/src/lib/com/izforge/izpack/compiler
noreply at berlios.de
noreply at berlios.de
Mon Jan 28 21:45:51 CET 2008
Author: jgordon
Date: 2008-01-28 21:45:46 +0100 (Mon, 28 Jan 2008)
New Revision: 2026
Modified:
izpack-src/trunk/src/lib/com/izforge/izpack/compiler/CompilerConfig.java
Log:
Changed File.toURL() to File.toURI().toURL() to get rid of deprecation messages in Java 6.
Modified: izpack-src/trunk/src/lib/com/izforge/izpack/compiler/CompilerConfig.java
===================================================================
--- izpack-src/trunk/src/lib/com/izforge/izpack/compiler/CompilerConfig.java 2008-01-28 15:46:14 UTC (rev 2025)
+++ izpack-src/trunk/src/lib/com/izforge/izpack/compiler/CompilerConfig.java 2008-01-28 20:45:46 UTC (rev 2026)
@@ -1319,7 +1319,7 @@
os = new BufferedOutputStream(outFile);
// and specify the substituted file to be added to the
// packager
- url = parsedFile.toURL();
+ url = parsedFile.toURI().toURL();
}
if (parsexml)
@@ -1826,7 +1826,7 @@
try
{
- url = resource.toURL();
+ url = resource.toURI().toURL();
}
catch (MalformedURLException how)
{
@@ -1862,7 +1862,7 @@
try
{
- url = resource.toURL();
+ url = resource.toURI().toURL();
}
catch (MalformedURLException how)
{
@@ -2457,7 +2457,7 @@
if (in != null) in.close();
if (outFile != null) outFile.close();
}
- url = tf.toURL();
+ url = tf.toURI().toURL();
}
// Use the class loader of the interface as parent, else
More information about the izpack-changes
mailing list