You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by ma...@apache.org on 2008/11/25 21:33:31 UTC

svn commit: r720591 - in /ant/ivy/core/trunk: CHANGES.txt src/java/org/apache/ivy/Main.java

Author: maartenc
Date: Tue Nov 25 12:33:30 2008
New Revision: 720591

URL: http://svn.apache.org/viewvc?rev=720591&view=rev
Log:
IMPROVEMENT: Ivy Standalone setting to overwrite publications (IVY-976)

Modified:
    ant/ivy/core/trunk/CHANGES.txt
    ant/ivy/core/trunk/src/java/org/apache/ivy/Main.java

Modified: ant/ivy/core/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/CHANGES.txt?rev=720591&r1=720590&r2=720591&view=diff
==============================================================================
--- ant/ivy/core/trunk/CHANGES.txt (original)
+++ ant/ivy/core/trunk/CHANGES.txt Tue Nov 25 12:33:30 2008
@@ -84,6 +84,7 @@
    trunk
 =====================================
 - IMPROVEMENT: Support useOrigin for artifacts with a set url attribute (IVY-965) (thanks to alex322)
+- IMPROVEMENT: Ivy Standalone setting to overwrite publications (IVY-976)
 
 - FIX: Log levels aren't respected in certain cases using the standalone functionality (IVY-960) (thanks to Patrick Woodworth)
 - FIX: Listing of URL's under a given URL does not handle fully specified URL's (IVY-959) (thanks to Randy Nott)

Modified: ant/ivy/core/trunk/src/java/org/apache/ivy/Main.java
URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/src/java/org/apache/ivy/Main.java?rev=720591&r1=720590&r2=720591&view=diff
==============================================================================
--- ant/ivy/core/trunk/src/java/org/apache/ivy/Main.java (original)
+++ ant/ivy/core/trunk/src/java/org/apache/ivy/Main.java Tue Nov 25 12:33:30 2008
@@ -120,6 +120,8 @@
                 .description("use given revision to publish the module").create())
             .addOption(new OptionBuilder("status").arg("status")
                 .description("use given status to publish the module").create())
+            .addOption(new OptionBuilder("overwrite")
+                .description("overwrite files in the repository if they exist").create())
 
             .addCategory("http auth options")
             .addOption(new OptionBuilder("realm").arg("realm")
@@ -272,7 +274,7 @@
                             .setPubrevision(settings.substitute(line.getOptionValue("revision")))
                             .setValidate(validate).setSrcIvyPattern(
                                 settings.substitute(line.getOptionValue("deliverto",
-                                    "ivy-[revision].xml"))));
+                                    "ivy-[revision].xml"))).setOverwrite(line.hasOption("overwrite")));
                 }
             }
             if (line.hasOption("main")) {