You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by ab...@apache.org on 2003/04/09 17:06:44 UTC
cvs commit: maven/src/plugins-build/jar/xdocs properties.xml
abarantsev 2003/04/09 08:06:44
Modified: src/plugins-build/jar plugin.jelly plugin.properties
src/plugins-build/jar/xdocs properties.xml
Log:
Added a property to specify Unix group that should own deployed artifacts
Revision Changes Path
1.7 +8 -8 maven/src/plugins-build/jar/plugin.jelly
Index: plugin.jelly
===================================================================
RCS file: /home/cvs/maven/src/plugins-build/jar/plugin.jelly,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- plugin.jelly 7 Apr 2003 12:23:59 -0000 1.6
+++ plugin.jelly 9 Apr 2003 15:06:44 -0000 1.7
@@ -24,8 +24,8 @@
<ant:available property="maven.jar.manifest.available"
file="${maven.jar.manifest}"/>
- <!-- See http://java.sun.com/j2se/1.3/docs/guide/jar/jar.html -->
- <!-- See http://java.sun.com/j2se/1.4.1/docs/guide/jar/jar.html -->
+ <!-- See http://java.sun.com/j2se/1.3/docs/guide/jar/jar.html -->
+ <!-- See http://java.sun.com/j2se/1.4.1/docs/guide/jar/jar.html -->
<ant:jar
jarfile="${maven.build.dir}/${maven.final.name}.jar"
basedir="${maven.build.dest}"
@@ -65,7 +65,7 @@
<j:set var="extensionList" value="${extensionList},${dep.artifactId}"/>
</j:forEach>
- <j:if test="${extensionList.length() != 0}">
+ <j:if test="${extensionList.length() != 0}">
<j:set var="extensionList" value="${extensionList.substring(1)}"/>
<ant:attribute name="Extension-List" value="${extensionList}"/>
</j:if>
@@ -73,9 +73,9 @@
<j:forEach var="artifact" items="${pom.artifacts}">
<j:set var="dep" value="${artifact.dependency}"/>
- <ant:attribute name="${dep.artifactId}-Extension-Name" value="${dep.artifactId}"/>
- <ant:attribute name="${dep.artifactId}-Implementation-Version" value="${dep.version}"/>
- <ant:attribute name="${dep.artifactId}-Implementation-URL" value="http://www.ibiblio.org/maven${artifact.urlPath}"/>
+ <ant:attribute name="${dep.artifactId}-Extension-Name" value="${dep.artifactId}"/>
+ <ant:attribute name="${dep.artifactId}-Implementation-Version" value="${dep.version}"/>
+ <ant:attribute name="${dep.artifactId}-Implementation-URL" value="http://www.ibiblio.org/maven${artifact.urlPath}"/>
</j:forEach>
</ant:manifest>
</ant:jar>
@@ -123,7 +123,7 @@
artifact="${relativePath}"
type="jars"
assureDirectoryCommand="mkdir -p"
- siteCommand="cd @deployDirectory@; chmod g+w ${maven.jar.to.deploy}; chgrp maven ${maven.jar.to.deploy}; ln -sf ${maven.jar.to.deploy} ${pom.artifactId}-SNAPSHOT.jar; echo ${snapshotVersion} > ${pom.artifactId}-snapshot-version"
+ siteCommand="cd @deployDirectory@; chmod g+w ${maven.jar.to.deploy}; chgrp ${maven.remote.group} ${maven.jar.to.deploy}; ln -sf ${maven.jar.to.deploy} ${pom.artifactId}-SNAPSHOT.jar; echo ${snapshotVersion} > ${pom.artifactId}-snapshot-version"
/>
</goal>
@@ -152,7 +152,7 @@
artifact="${relativePath}"
type="jars"
assureDirectoryCommand="mkdir -p"
- siteCommand="cd @deployDirectory@; chmod g+w ${maven.jar.to.deploy}; chgrp maven ${maven.jar.to.deploy}"
+ siteCommand="cd @deployDirectory@; chmod g+w ${maven.jar.to.deploy}; chgrp ${maven.remote.group} ${maven.jar.to.deploy}"
/>
</goal>
1.2 +2 -0 maven/src/plugins-build/jar/plugin.properties
Index: plugin.properties
===================================================================
RCS file: /home/cvs/maven/src/plugins-build/jar/plugin.properties,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- plugin.properties 5 Apr 2003 08:03:18 -0000 1.1
+++ plugin.properties 9 Apr 2003 15:06:44 -0000 1.2
@@ -1,3 +1,5 @@
# -------------------------------------------------------------------
# P L U G I N P R O P E R T I E S
# -------------------------------------------------------------------
+
+maven.remote.group=maven
\ No newline at end of file
1.2 +10 -3 maven/src/plugins-build/jar/xdocs/properties.xml
Index: properties.xml
===================================================================
RCS file: /home/cvs/maven/src/plugins-build/jar/xdocs/properties.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- properties.xml 5 Apr 2003 08:03:18 -0000 1.1
+++ properties.xml 9 Apr 2003 15:06:44 -0000 1.2
@@ -161,7 +161,7 @@
<td>Yes</td>
<td>
This property is the list of the
- <source><![CDATA[
+ <source><![CDATA[
<build>
<sourceModification>
<sourceModification>
@@ -188,7 +188,7 @@
<td>Yes</td>
<td>
This is a calculated property based on the value of the
- <source><![CDATA[
+ <source><![CDATA[
<build>
<resources>
</resources>
@@ -241,7 +241,7 @@
<td>
This is the Ant <code>patternset</code> of all the <code>include</code>s and
<code>exclude</code>s from the
- <source><![CDATA[
+ <source><![CDATA[
<build>
<resources>
</resources>
@@ -284,6 +284,13 @@
<td>Yes</td>
<td>
This is the user name used to log in to the remote repository
+ </td>
+ </tr>
+ <tr>
+ <td>maven.remote.group</td>
+ <td>Yes</td>
+ <td>
+ The name of the Unix group that should own deployed artifacts. Default to maven
</td>
</tr>
</table>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: cvs commit: maven/src/plugins-build/jar/xdocs properties.xml
Posted by di...@multitask.com.au.
Hi Alexei,
did you know that there already was a property for the unix group in the
repository plugin:
${maven.repository.group}
We should try to minimise the duplication between these plugins.
abarantsev@apache.org wrote on 10/04/2003 01:06:44 AM:
> abarantsev 2003/04/09 08:06:44
>
> Modified: src/plugins-build/jar plugin.jelly plugin.properties
> src/plugins-build/jar/xdocs properties.xml
> Log:
> Added a property to specify Unix group that should own deployed
artifacts
>
[snip]
> + siteCommand="cd @deployDirectory@; chmod g+w ${maven.jar.to.
> deploy}; chgrp ${maven.remote.group} ${maven.jar.to.deploy}; ln -sf
> ${maven.jar.to.deploy} ${pom.artifactId}-SNAPSHOT.jar; echo
> ${snapshotVersion} > ${pom.artifactId}-snapshot-version"
> />
[snip]
--
dIon Gillard, Multitask Consulting
Blog: http://www.freeroller.net/page/dion/Weblog
Work: http://www.multitask.com.au
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org