-Remove hard coded 'maven' group

-Allow artifact to be a file anywhere
-add md5 creation


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113113 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
dion committed 2003-03-12 16:47:02 +00:00
1 parent c4464976fe
commit 5fd4235d6f
2 files changed
+15 -8

No files matched your search

+14 -8
View File
@@ -15,7 +15,7 @@
!-->
<define:tag name="exec">
<exec dir="." executable="${maven.ssh.executable}">
<arg line="${maven.repo.central} -l ${maven.username} '${command}'"/>
<arg line='${maven.repo.central} -l ${maven.username} "${command}"'/>
</exec>
</define:tag>
@@ -67,7 +67,7 @@
<j:set var="command" value="cd ${directory}" />
<j:set var="command" value="${command};chmod -R g+w *" />
<j:set var="command" value="${command};chmod -R a+r *" />
<j:set var="command" value="${command};chgrp -R maven *" />
<j:set var="command" value="${command};chgrp -R ${maven.repository.group} *" />
<j:set var="command" value="${command};rm ${groupId}.license" />
<j:set var="command" value="${command};ln -s ${fileName} ${groupId}.license" />
<repository:exec command="${command}" />
@@ -98,7 +98,7 @@
<echo>Processing project ${group.text}</echo>
<j:set var="directory" value="${maven.repo.central.directory}/${group.text}/licenses" />
<j:set var="command" value="mkdir -p ${directory}; chmod g+ws ${directory}; chgrp maven ${directory}" />
<j:set var="command" value="mkdir -p ${directory}; chmod g+ws ${directory}; chgrp ${maven.repository.group} ${directory}" />
<echo>Checking directory '${directory}'</echo>
<repository:exec command="${command}"/>
@@ -205,7 +205,7 @@
</j:if>
<j:set var="command" value="cd ${maven.repo.central.directory}"/>
<j:set var="command" value="${command};mkdir ${groupId}" />
<j:set var="command" value="${command};chgrp maven ${groupId}"/>
<j:set var="command" value="${command};chgrp ${maven.repository.group} ${groupId}"/>
<j:set var="command" value="${command};chmod g+s ${groupId}"/>
<j:set var="command" value="${command};mkdir ${groupId}/distributions"/>
<j:set var="command" value="${command};mkdir ${groupId}/jars"/>
@@ -232,7 +232,7 @@
<!-- this is pretty much a copy of whats in jar:deploy-snapshot -->
<goal name="repository:deploy-snapshot-jar"
description="deploy a snapshot jar, specified by file, to the repository">
description="deploy a snapshot jar, specified by groupId and artifact, to the repository">
<j:if test="${empty(artifact)}">
<fail>artifact must be specified</fail>
@@ -241,7 +241,7 @@
<fail>groupId must be specified</fail>
</j:if>
<j:if test="${empty(artifactId)}">
<fail>artifactId must be specified</fail>
<j:set var="artifactId">${groupId}</j:set>
</j:if>
<!-- work out snapshotVersion from artifact -->
<!-- artifact is format blah-yyyymmdd.hhmmss.jar -->
@@ -252,11 +252,17 @@
<j:set var="directory" value="${maven.repo.central.directory}/${groupId}/jars/" />
<repository:copy from="${artifact}" toFileOrDir="${directory}" />
<u:file name="${artifact}" var="artifactFile"/>
<j:set var="artifactName">${artifactFile.canonicalFile.name}</j:set>
<j:set var="command" value="cd ${directory}"/>
<j:set var="command" value="${command};ln -sf ${artifact} ${artifactId}-SNAPSHOT.jar"/>
<j:set var="command" value="${command};md5sum ${artifactName} | sed 's/ .*$//' > ${artifactName}.md5" />
<j:set var="command" value="${command};ln -sf ${artifactName} ${artifactId}-SNAPSHOT.jar"/>
<j:set var="command" value="${command};ln -sf ${artifactName}.md5 ${artifactId}-SNAPSHOT.jar.md5"/>
<j:set var="command" value="${command};echo ${snapshotVersion} > ${artifactId}-snapshot-version"/>
<j:set var="command" value="${command};chmod g+w *"/>
<j:set var="command" value="${command};chgrp maven *"/>
<j:set var="command" value="${command};chgrp ${maven.repository.group} *"/>
<echo>Executing '${command}' remotely</echo>
<repository:exec command="${command}" />
</goal>
+1
View File
@@ -1,3 +1,4 @@
# -------------------------------------------------------------------
# P L U G I N P R O P E R I E S
# -------------------------------------------------------------------
maven.repository.group=maven