forked from cal101/AutoRefactorCli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild-cli
executable file
·30 lines (24 loc) · 1.1 KB
/
build-cli
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash -e
#
# build raw autorefactor command line installation in cli/target/autorefactor
#
# for help run:
# cli/target/autorefactor/bin/autorefactor --help
#
DIR=`dirname $0`
cd "$DIR"
#mvn --offline clean package
mvn clean package
#mvn package
rm -rf cli/target/autorefactor
mkdir -p cli/target/autorefactor/bin cli/target/autorefactor/dropins/plugins
#cp ./plugin/target/org.autorefactor.plugin-1.1.0-SNAPSHOT.jar ./plugin.ui/target/org.autorefactor.plugin.ui-1.1.0-SNAPSHOT.jar ./cli/target/org.autorefactor.cli-1.1.0-SNAPSHOT.jar cli/target/autorefactor/dropins/plugins
cp ./plugin/target/org.autorefactor.plugin-2.0.0-SNAPSHOT.jar ./cli/target/org.autorefactor.cli-2.0.0-SNAPSHOT.jar cli/target/autorefactor/dropins/plugins
cp ${DIR}/cli/src/main/resources/autorefactor.sh cli/target/autorefactor/bin/autorefactor
chmod +x cli/target/autorefactor/bin/autorefactor
cat << EOD
Start with
$DIR/cli/target/autorefactor/bin/autorefactor --help
or specify eclipse instance to use (default is: "eclipse")
AUTOREFACTOR_ECLIPSE=eclipse-oxygen-vanilla $DIR/cli/target/autorefactor/bin/autorefactor --help
EOD