Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
55 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,3 +77,4 @@ Thumbs.db | |
Configurations/ | ||
isatab files/ | ||
src/main/resources/Configurations/ | ||
Plugins/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/usr/bin/env bash | ||
|
||
get_tag_data () { | ||
local tag=$1 | ||
local xml_file=$2 | ||
|
||
# Find tag in the xml, convert tabs to spaces, remove leading spaces, remove the tag. | ||
grep $tag $xml_file | \ | ||
tr '\011' '\040' | \ | ||
sed -e 's/^[ ]*//' \ | ||
-e 's/^<.*>\([^<].*\)<.*>$/\1/' | ||
|
||
} | ||
|
||
|
||
ALLVERSIONS=`get_tag_data \<version\> pom.xml 2>/dev/null` | ||
|
||
VERSIONSPLIT=(`echo $ALLVERSIONS | tr ' ' ' '`) | ||
# get first version number referenced. Should always be the version of the project, since it's always the first | ||
VERSION=${VERSIONSPLIT[0]} | ||
|
||
if [ "$VERSION" = "" ] | ||
then | ||
echo "Couldn't extract version from pom.xml. Exiting." | ||
exit 1 | ||
fi | ||
|
||
java -cp target/ISAcreator-$VERSION.jar org.isatools.isacreator.launch.ISAcreatorApplication |