[#5477] Proper pre-Java 7 resource handling
This commit is contained in:
parent
987ac77fbf
commit
227c0c0777
@ -46,6 +46,7 @@ import static org.jooq.Constants.XSD_CODEGEN;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.StringWriter;
|
||||
import java.net.URL;
|
||||
import java.net.URLClassLoader;
|
||||
@ -139,6 +140,14 @@ public class Plugin extends AbstractMojo {
|
||||
catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
finally {
|
||||
if (in != null) {
|
||||
try {
|
||||
in.close();
|
||||
}
|
||||
catch (IOException ignore) {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// [#5286] There are a variety of reasons why the generator isn't set up
|
||||
|
||||
Loading…
Reference in New Issue
Block a user