You are viewing a plain text version of this content. The canonical link for it is here.
Posted to m2-dev@maven.apache.org by ca...@apache.org on 2005/02/26 22:53:40 UTC
cvs commit: maven-components/maven-meeper/src/bin deploy-bundle
carlos 2005/02/26 13:53:40
Modified: maven-meeper/src/bin deploy-bundle
Log:
Added ability to override groupId
Revision Changes Path
1.11 +11 -5 maven-components/maven-meeper/src/bin/deploy-bundle
Index: deploy-bundle
===================================================================
RCS file: /home/cvs/maven-components/maven-meeper/src/bin/deploy-bundle,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- deploy-bundle 30 Jan 2005 00:36:03 -0000 1.10
+++ deploy-bundle 26 Feb 2005 21:53:40 -0000 1.11
@@ -1,7 +1,8 @@
#!/bin/sh
BUNDLEURL=$1
-VERSION=$2
+GROUPID=$2
+VERSION=$3
[ "${BUNDLEURL}" = "" ] && echo && echo "You must specify a bundle URL!" && echo && exit
@@ -55,11 +56,16 @@
artifactId=`cat ${POM} | tr '\n' ' ' | sed 's#<versions>.*</versions>##' | sed 's#<developers>.*</developers>##' | sed 's#<dependencies>.*</dependencies>##' | sed 's#<contributors>.*</contributors>##' | grep '<id>' | sed -e 's#^.*<id>##;s#</id>.*$##'`
fi
- groupId=`cat ${POM} | tr '\n' ' ' | sed 's#<dependencies>.*</dependencies>##' | grep '<groupId>' | sed -e 's#^.*<groupId>##;s#</groupId>.*$##'`
-
- if [ -z $groupId ]
+ if [ ! -z $GROUPID ]
then
- groupId=${artifactId}
+ groupId=${GROUPID}
+ else
+ groupId=`cat ${POM} | tr '\n' ' ' | sed 's#<dependencies>.*</dependencies>##' | grep '<groupId>' | sed -e 's#^.*<groupId>##;s#</groupId>.*$##'`
+
+ if [ -z $groupId ]
+ then
+ groupId=${artifactId}
+ fi
fi
version=`echo ${version} | sed -e 's/ *$//'`