From 5c24e87bb242eb58d277fa8a2f3460717f2a2502 Mon Sep 17 00:00:00 2001 From: brett Date: Wed, 1 Jun 2005 02:59:32 +0000 Subject: [PATCH] PR: MPARTIFACT-46 add -f flag to chmod and chgrp git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@179341 13f79535-47bb-0310-9956-ffa450edef68 --- artifact/plugin.jelly | 8 ++++---- artifact/xdocs/changes.xml | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/artifact/plugin.jelly b/artifact/plugin.jelly index e3b155c9..3980f15a 100644 --- a/artifact/plugin.jelly +++ b/artifact/plugin.jelly @@ -95,7 +95,7 @@ type="poms" artifact="${projectFilename}" targetFilename="${pomFilename}" - siteCommand="cd @deployDirectory@; chmod g+w ${pomFilename}; chgrp ${maven.remote.group} ${pomFilename}" + siteCommand="cd @deployDirectory@; chmod -f g+w ${pomFilename}; chgrp -f ${maven.remote.group} ${pomFilename}" /> @@ -158,7 +158,7 @@ type="poms" artifact="${projectFilename}" targetFilename="${pomFilename}" - siteCommand="cd @deployDirectory@; chmod g+w ${pomFilename}; chgrp ${maven.remote.group} ${pomFilename}; rm -f ${pomSnapshotName}; ln -s ${pomFilename} ${pomSnapshotName}; echo ${snapshotVersion} > ${pom.artifactId}-snapshot-version" + siteCommand="cd @deployDirectory@; chmod -f g+w ${pomFilename}; chgrp -f ${maven.remote.group} ${pomFilename}; rm -f ${pomSnapshotName}; ln -s ${pomFilename} ${pomSnapshotName}; echo ${snapshotVersion} > ${pom.artifactId}-snapshot-version" /> diff --git a/artifact/xdocs/changes.xml b/artifact/xdocs/changes.xml index 757bcf4e..3d62b71b 100644 --- a/artifact/xdocs/changes.xml +++ b/artifact/xdocs/changes.xml @@ -26,6 +26,7 @@ + Add -f flag to chmod and chgrp as they may fail even in a successful state Legacy method not executing from the correct directory Replace bulk of code with Wagon