summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoland Grunberg <rgrunber@redhat.com>2013-08-30 14:17:53 -0400
committerRoland Grunberg <rgrunber@redhat.com>2013-08-30 14:17:53 -0400
commit37597ae1507a7575b5ad27cdd36b2c62a777bf20 (patch)
tree602cdc21fff5064023a609a2bdfdbe3b225d674b
parent7ba86fd9b032d21a931f0dc4fad2d6a8f6bd88e8 (diff)
downloadtestbundle-to-eclipse-test-37597ae1507a7575b5ad27cdd36b2c62a777bf20.tar.gz
testbundle-to-eclipse-test-37597ae1507a7575b5ad27cdd36b2c62a777bf20.tar.xz
testbundle-to-eclipse-test-37597ae1507a7575b5ad27cdd36b2c62a777bf20.zip
Use artifactId from pom instead of Bundle-SymbolicName from manifest.
The manifest format can be difficult to parse in certain cases so use the artifactId from the pom. These two fields should be identical for most projects.
-rwxr-xr-xprepAllTestBundles.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/prepAllTestBundles.sh b/prepAllTestBundles.sh
index 8ca7559..aacffee 100755
--- a/prepAllTestBundles.sh
+++ b/prepAllTestBundles.sh
@@ -29,7 +29,7 @@ for jar in `find ${testBundleFolder} -name "*.jar"`; do
unzip -p ${jar} ${jarPomPath} | grep -q '<packaging>eclipse-test-plugin</packaging>'
if [ $? -eq 0 ]; then
jarPomPath=`jar -tf ${jar} | grep 'pom.xml'`
- bsname=`unzip -p ${jar} META-INF/MANIFEST.MF | grep 'Bundle-SymbolicName' | sed 's/Bundle-SymbolicName: \([a-zA-Z.]*\)\(;\)\?.*/\1/'`
+ bsname=`unzip -p ${jar} ${jarPomPath} | sed '/<parent>/,/<\/parent>/ d' | sed '/<build>/,/<\/build>/ d' | grep '<artifactId>' | sed 's/.*<artifactId>\(.*\)<\/artifactId>.*/\1/'`
# Detect SWTBot Tests
useSWTBot='false'