felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pde...@apache.org
Subject svn commit: r954300 - /felix/trunk/dependencymanager/annotation/src/main/java/org/apache/felix/dm/annotation/plugin/mvn/AnnotationMojo.java
Date Sun, 13 Jun 2010 20:30:00 GMT
Author: pderop
Date: Sun Jun 13 20:30:00 2010
New Revision: 954300

URL: http://svn.apache.org/viewvc?rev=954300&view=rev
Log:
Fixed issue FELIX-2403: the dependencymanager annotation scanner is not working under windows

Modified:
    felix/trunk/dependencymanager/annotation/src/main/java/org/apache/felix/dm/annotation/plugin/mvn/AnnotationMojo.java

Modified: felix/trunk/dependencymanager/annotation/src/main/java/org/apache/felix/dm/annotation/plugin/mvn/AnnotationMojo.java
URL: http://svn.apache.org/viewvc/felix/trunk/dependencymanager/annotation/src/main/java/org/apache/felix/dm/annotation/plugin/mvn/AnnotationMojo.java?rev=954300&r1=954299&r2=954300&view=diff
==============================================================================
--- felix/trunk/dependencymanager/annotation/src/main/java/org/apache/felix/dm/annotation/plugin/mvn/AnnotationMojo.java
(original)
+++ felix/trunk/dependencymanager/annotation/src/main/java/org/apache/felix/dm/annotation/plugin/mvn/AnnotationMojo.java
Sun Jun 13 20:30:00 2010
@@ -178,6 +178,10 @@ public class AnnotationMojo extends Abst
             jar.write(tmp);
             jar.close();
             
+            if (target.exists() && ! target.delete())
+            {
+                throw new MojoExecutionException("Could not remove " + target);
+            }
             if (!tmp.renameTo(target))
             {
                 throw new MojoExecutionException("Could not rename " + tmp + " to " + target);



Mime
View raw message