Author: brett
Date: Tue May 31 19:59:32 2005
New Revision: 179341
URL: http://svn.apache.org/viewcvs?rev=179341&view=rev
Log:
PR: MPARTIFACT-46
add -f flag to chmod and chgrp
Modified:
maven/maven-1/plugins/trunk/artifact/plugin.jelly
maven/maven-1/plugins/trunk/artifact/xdocs/changes.xml
Modified: maven/maven-1/plugins/trunk/artifact/plugin.jelly
URL:
http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/artifact/plugin.jelly?rev=179341&r1=179340&r2=179341&view=diff
==============================================================================
--- maven/maven-1/plugins/trunk/artifact/plugin.jelly (original)
+++ maven/maven-1/plugins/trunk/artifact/plugin.jelly Tue May 31 19:59:32 2005
@@ -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}"
/>
<deploy:artifact
assureDirectoryCommand="mkdir -p"
@@ -103,7 +103,7 @@
handler="${typeHandler}"
artifact="${artifact}"
targetFilename="${filename}"
- siteCommand="cd @deployDirectory@; chmod g+w ${filename}; chgrp
${maven.remote.group} ${filename}"
+ siteCommand="cd @deployDirectory@; chmod -f g+w ${filename}; chgrp
-f ${maven.remote.group} ${filename}"
/>
</j:when>
<j:otherwise>
@@ -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"
/>
<deploy:artifact
assureDirectoryCommand="mkdir -p"
@@ -166,7 +166,7 @@
handler="${typeHandler}"
targetFilename="${timestampName}"
artifact="${artifact}"
- siteCommand="cd @deployDirectory@; chmod g+w ${timestampName};
chgrp ${maven.remote.group} ${timestampName}; rm -f ${snapshotName}; ln -s
${timestampName} ${snapshotName}; echo ${snapshotVersion} >
${pom.artifactId}-snapshot-version"
+ siteCommand="cd @deployDirectory@; chmod -f g+w ${timestampName};
chgrp -f ${maven.remote.group} ${timestampName}; rm -f ${snapshotName}; ln -s
${timestampName} ${snapshotName}; echo ${snapshotVersion} >
${pom.artifactId}-snapshot-version"
/>
</j:when>
<j:otherwise>
Modified: maven/maven-1/plugins/trunk/artifact/xdocs/changes.xml
URL:
http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/artifact/xdocs/changes.xml?rev=179341&r1=179340&r2=179341&view=diff
==============================================================================
--- maven/maven-1/plugins/trunk/artifact/xdocs/changes.xml (original)
+++ maven/maven-1/plugins/trunk/artifact/xdocs/changes.xml Tue May 31 19:59:32
2005
@@ -26,6 +26,7 @@
</properties>
<body>
<release version="1.5-SNAPSHOT" date="in SVN">
+ <action dev="brett" type="update" issue="MPARTIFACT-46">Add -f flag to
chmod and chgrp as they may fail even in a successful state</action>
<action dev="brett" type="update" issue="MPARTIFACT-48">Legacy method
not executing from the correct directory</action>
<action dev="brett" type="update" issue="MAVEN-1396">Replace bulk of
code with Wagon</action>
</release>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]