maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r518730 - /maven/plugins/trunk/maven-remote-resources-plugin/src/main/java/org/apache/maven/plugin/resources/remote/ProcessRemoteResourcesMojo.java
Date Thu, 15 Mar 2007 19:16:06 GMT
Author: dkulp
Date: Thu Mar 15 12:16:05 2007
New Revision: 518730

URL: http://svn.apache.org/viewvc?view=rev&rev=518730
Log:
[MRRESOURCES-14] If no remote-resources are created, don't write out .plxarc file

Modified:
    maven/plugins/trunk/maven-remote-resources-plugin/src/main/java/org/apache/maven/plugin/resources/remote/ProcessRemoteResourcesMojo.java

Modified: maven/plugins/trunk/maven-remote-resources-plugin/src/main/java/org/apache/maven/plugin/resources/remote/ProcessRemoteResourcesMojo.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-remote-resources-plugin/src/main/java/org/apache/maven/plugin/resources/remote/ProcessRemoteResourcesMojo.java?view=diff&rev=518730&r1=518729&r2=518730
==============================================================================
--- maven/plugins/trunk/maven-remote-resources-plugin/src/main/java/org/apache/maven/plugin/resources/remote/ProcessRemoteResourcesMojo.java
(original)
+++ maven/plugins/trunk/maven-remote-resources-plugin/src/main/java/org/apache/maven/plugin/resources/remote/ProcessRemoteResourcesMojo.java
Thu Mar 15 12:16:05 2007
@@ -398,11 +398,14 @@
 
         try
         {
-            File dotFile = new File( project.getBuild().getDirectory(), ".plxarc" );
+            if ( outputDirectory.exists() )
+            {
+                File dotFile = new File( project.getBuild().getDirectory(), ".plxarc" );
 
-            FileUtils.mkdir( dotFile.getParentFile().getAbsolutePath() );
-
-            FileUtils.fileWrite( dotFile.getAbsolutePath(), outputDirectory.getName() );
+                FileUtils.mkdir( dotFile.getParentFile().getAbsolutePath() );
+                
+                FileUtils.fileWrite( dotFile.getAbsolutePath(), outputDirectory.getName()
);
+            }
         }
         catch ( IOException e )
         {



Mime
View raw message