felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fmesc...@apache.org
Subject svn commit: r573259 - /felix/trunk/scrplugin/src/main/java/org/apache/felix/scrplugin/SCRDescriptorMojo.java
Date Thu, 06 Sep 2007 13:25:45 GMT
Author: fmeschbe
Date: Thu Sep  6 06:25:44 2007
New Revision: 573259

URL: http://svn.apache.org/viewvc?rev=573259&view=rev
Log:
Only create the metatype directory if there are any metatype descriptors to write

Modified:
    felix/trunk/scrplugin/src/main/java/org/apache/felix/scrplugin/SCRDescriptorMojo.java

Modified: felix/trunk/scrplugin/src/main/java/org/apache/felix/scrplugin/SCRDescriptorMojo.java
URL: http://svn.apache.org/viewvc/felix/trunk/scrplugin/src/main/java/org/apache/felix/scrplugin/SCRDescriptorMojo.java?rev=573259&r1=573258&r2=573259&view=diff
==============================================================================
--- felix/trunk/scrplugin/src/main/java/org/apache/felix/scrplugin/SCRDescriptorMojo.java
(original)
+++ felix/trunk/scrplugin/src/main/java/org/apache/felix/scrplugin/SCRDescriptorMojo.java
Thu Sep  6 06:25:44 2007
@@ -187,8 +187,8 @@
 
         // create metatype information
         File mtFile = new File(this.outputDirectory, "OSGI-INF" + File.separator + "metatype"
+ File.separator + this.metaTypeName);
-        mtFile.getParentFile().mkdirs();
         if ( metaData.getDescriptors().size() > 0 ) {
+            mtFile.getParentFile().mkdirs();
             MetaTypeIO.write(metaData, mtFile);
         } else {
             if ( mtFile.exists() ) {



Mime
View raw message