Index: src/java/org/apache/maven/plugin/JellyScriptHousing.java =================================================================== --- src/java/org/apache/maven/plugin/JellyScriptHousing.java (revision 405314) +++ src/java/org/apache/maven/plugin/JellyScriptHousing.java (working copy) @@ -60,17 +60,17 @@ /** the source of the jelly script. */ private File source; - private final String name; + private final String name; private final File pluginDirectory; private final MavenJellyContext parentContext; public JellyScriptHousing() { - this.name = null; + this.name = null; this.pluginDirectory = null; this.parentContext = null; } - + public JellyScriptHousing( File pluginDir, MavenJellyContext parentContext ) throws IOException { this.pluginDirectory = pluginDir; @@ -200,7 +200,7 @@ /** * Retrieve the plugin's default properties. - * + * * @param unpackedPluginDir The location of the unpacked plugin. * @return The default properties file for the plugin, or null * if no such plugin. @@ -216,10 +216,16 @@ if ( propsFile.exists() ) { Properties props = new Properties(); - FileInputStream in = new FileInputStream( propsFile ); - props.load( in ); - in.close(); - map.putAll( props ); + FileInputStream in; + try { + in = new FileInputStream( propsFile ); + props.load( in ); + map.putAll( props ); + } + finally { + if (in != null) + in.close(); + } } return map;