maven-m2-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From car...@apache.org
Subject cvs commit: maven-components/maven-meeper/src/bin deploy-bundle
Date Sat, 26 Feb 2005 21:53:40 GMT
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/ *$//'`
  
  
  

Mime
View raw message