cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r697868 - /cxf/trunk/maven-plugins/xml2fastinfoset-plugin/src/main/java/org/apache/cxf/maven_plugin/xml2fastinfoset/XML2FastInfosetCompilerMojo.java
Date Mon, 22 Sep 2008 15:21:42 GMT
Author: dkulp
Date: Mon Sep 22 08:21:42 2008
New Revision: 697868

URL: http://svn.apache.org/viewvc?rev=697868&view=rev
Log:
Only create the output dir if something will actually go into it to avoid having eclipse:eclipse
wire it in.

Modified:
    cxf/trunk/maven-plugins/xml2fastinfoset-plugin/src/main/java/org/apache/cxf/maven_plugin/xml2fastinfoset/XML2FastInfosetCompilerMojo.java

Modified: cxf/trunk/maven-plugins/xml2fastinfoset-plugin/src/main/java/org/apache/cxf/maven_plugin/xml2fastinfoset/XML2FastInfosetCompilerMojo.java
URL: http://svn.apache.org/viewvc/cxf/trunk/maven-plugins/xml2fastinfoset-plugin/src/main/java/org/apache/cxf/maven_plugin/xml2fastinfoset/XML2FastInfosetCompilerMojo.java?rev=697868&r1=697867&r2=697868&view=diff
==============================================================================
--- cxf/trunk/maven-plugins/xml2fastinfoset-plugin/src/main/java/org/apache/cxf/maven_plugin/xml2fastinfoset/XML2FastInfosetCompilerMojo.java
(original)
+++ cxf/trunk/maven-plugins/xml2fastinfoset-plugin/src/main/java/org/apache/cxf/maven_plugin/xml2fastinfoset/XML2FastInfosetCompilerMojo.java
Mon Sep 22 08:21:42 2008
@@ -110,13 +110,6 @@
                 continue;
             }
 
-            // this part is required in case the user specified "../something"
-            // as destination
-            // see MNG-1345
-            if (!outputDirectory.exists() && !outputDirectory.mkdirs()) {
-                throw new MojoExecutionException("Cannot create resource output directory:
"
-                                                 + outputDirectory);
-            }
 
             DirectoryScanner scanner = new DirectoryScanner();
 
@@ -140,6 +133,16 @@
                               + (includedFiles.size() > 1 ? "s" : "")
                               + (targetPath == null ? "" : " to " + targetPath));
 
+            if (includedFiles.size() > 0) {
+                // this part is required in case the user specified "../something"
+                // as destination
+                // see MNG-1345
+                if (!outputDirectory.exists() && !outputDirectory.mkdirs()) {
+                    throw new MojoExecutionException("Cannot create resource output directory:
"
+                                                     + outputDirectory);
+                }
+            }
+            
             for (Iterator j = includedFiles.iterator(); j.hasNext();) {
                 String name = (String)j.next();
 



Mime
View raw message