diff options
Diffstat (limited to 'archiva-configuration')
-rw-r--r-- | archiva-configuration/src/main/java/org/apache/maven/archiva/configuration/DefaultConfigurationStore.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/archiva-configuration/src/main/java/org/apache/maven/archiva/configuration/DefaultConfigurationStore.java b/archiva-configuration/src/main/java/org/apache/maven/archiva/configuration/DefaultConfigurationStore.java index 3f8dd70f8..911f7eb87 100644 --- a/archiva-configuration/src/main/java/org/apache/maven/archiva/configuration/DefaultConfigurationStore.java +++ b/archiva-configuration/src/main/java/org/apache/maven/archiva/configuration/DefaultConfigurationStore.java @@ -158,7 +158,11 @@ public class DefaultConfigurationStore FileWriter fileWriter = null; try { - file.getParentFile().mkdirs(); + //does file directory exist ? + if ( file.getParentFile() != null && !file.getParentFile().exists() ) + { + file.getParentFile().mkdirs(); + } fileWriter = new FileWriter( file ); writer.write( fileWriter, configuration ); |