diff --git a/sdk/ant-jme/nbproject/build-impl.xml b/sdk/ant-jme/nbproject/build-impl.xml index bd8965d6a..384c4859a 100644 --- a/sdk/ant-jme/nbproject/build-impl.xml +++ b/sdk/ant-jme/nbproject/build-impl.xml @@ -392,6 +392,11 @@ is divided into following sections: + + + + + @@ -415,7 +420,7 @@ is divided into following sections: - + @@ -425,7 +430,11 @@ is divided into following sections: - + + + + + @@ -548,7 +557,7 @@ is divided into following sections: - + @@ -558,7 +567,11 @@ is divided into following sections: - + + + + + @@ -930,7 +943,7 @@ is divided into following sections: - + diff --git a/sdk/ant-jme/nbproject/genfiles.properties b/sdk/ant-jme/nbproject/genfiles.properties index 940a52acd..d1ec873a3 100644 --- a/sdk/ant-jme/nbproject/genfiles.properties +++ b/sdk/ant-jme/nbproject/genfiles.properties @@ -4,5 +4,5 @@ build.xml.stylesheet.CRC32=28e38971@1.38.2.45 # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. nbproject/build-impl.xml.data.CRC32=dd1578ef -nbproject/build-impl.xml.script.CRC32=a6e22d49 -nbproject/build-impl.xml.stylesheet.CRC32=6ddba6b6@1.53.1.46 +nbproject/build-impl.xml.script.CRC32=53d14a5f +nbproject/build-impl.xml.stylesheet.CRC32=c6d2a60f@1.56.1.46 diff --git a/sdk/ant-jme/src/com/jme/ant/LoadWikiImages.java b/sdk/ant-jme/src/com/jme/ant/LoadWikiImages.java index d56556a9b..834d2205e 100644 --- a/sdk/ant-jme/src/com/jme/ant/LoadWikiImages.java +++ b/sdk/ant-jme/src/com/jme/ant/LoadWikiImages.java @@ -48,21 +48,33 @@ public class LoadWikiImages extends Task { } name = name.replaceAll(":", "/"); URL url = new URL(host + link); - InputStream in = url.openStream(); - File file = new File(getLocation().getFileName().replaceAll("build.xml", "") + File.separator + targetFolder + File.separator + name.replaceAll("/", File.separator)); - log("Getting image: " + host + link); - log("To: " + file); - File parent = file.getParentFile(); - parent.mkdirs(); - FileOutputStream out = new FileOutputStream(file); - int byte_ = in.read(); - while (byte_ != -1) { - out.write(byte_); - byte_ = in.read(); + InputStream in = null; + FileOutputStream out = null; + try { + + in = url.openStream(); + File file = new File(getLocation().getFileName().replaceAll("build.xml", "") + File.separator + targetFolder + File.separator + name.replaceAll("/", File.separator)); + log("Getting image: " + host + link); + log("To: " + file); + File parent = file.getParentFile(); + parent.mkdirs(); + out = new FileOutputStream(file); + int byte_ = in.read(); + while (byte_ != -1) { + out.write(byte_); + byte_ = in.read(); + } + } catch (Exception e) { + e.printStackTrace(); + } finally { + if (in != null) { + in.close(); + } + if (out != null) { + out.close(); + } } - in.close(); - out.close(); - }else if(extidx >= 0){ + } else if (extidx >= 0) { String name = link.replaceAll("/wiki/lib/exe/fetch\\.php\\?([^>]*);media=([^>]*)\"", ""); int markIdx = name.indexOf("?"); if (markIdx >= 0) { diff --git a/sdk/ant-lib/ant-jme.jar b/sdk/ant-lib/ant-jme.jar index c90da5fa2..9370efc25 100644 Binary files a/sdk/ant-lib/ant-jme.jar and b/sdk/ant-lib/ant-jme.jar differ