You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by dk...@apache.org on 2008/09/22 17:21:42 UTC
svn commit: r697868 -
/cxf/trunk/maven-plugins/xml2fastinfoset-plugin/src/main/java/org/apache/cxf/maven_plugin/xml2fastinfoset/XML2FastInfosetCompilerMojo.java
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();