mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-11-24 11:15:19 +01:00
Add SH Helpers tools
This commit is contained in:
parent
dcd06760ce
commit
49da659d93
11
src/tools/shhelpers/analyze_project.sh
Normal file
11
src/tools/shhelpers/analyze_project.sh
Normal file
@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Usage: ./analyze_project.sh
|
||||
#
|
||||
|
||||
if [ -z $jarfile ];
|
||||
then
|
||||
./setvars.sh
|
||||
fi
|
||||
|
||||
mvn clean verify sonar:sonar -f $pomfile
|
11
src/tools/shhelpers/build_project.sh
Normal file
11
src/tools/shhelpers/build_project.sh
Normal file
@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Usage: ./build_project.sh
|
||||
#
|
||||
|
||||
if [ -z $jarfile ];
|
||||
then
|
||||
./setvars.sh
|
||||
fi
|
||||
|
||||
mvn clean install -f $pomfile -B
|
2
src/tools/shhelpers/list_files.sh
Normal file
2
src/tools/shhelpers/list_files.sh
Normal file
@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
ls -aB *.sh
|
16
src/tools/shhelpers/move_plugin.sh
Normal file
16
src/tools/shhelpers/move_plugin.sh
Normal file
@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Usage: ./move_plugin.sh
|
||||
#
|
||||
|
||||
if [ -z $jarfile ];
|
||||
then
|
||||
./setvars.sh
|
||||
fi
|
||||
|
||||
if [ -f $jarfile ]
|
||||
then
|
||||
cp $jarfile $plugins
|
||||
else
|
||||
echo "Target file not found: $jarfile"
|
||||
fi
|
11
src/tools/shhelpers/quick_build.sh
Normal file
11
src/tools/shhelpers/quick_build.sh
Normal file
@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Usage: ./analyze_project.sh
|
||||
#
|
||||
|
||||
if [ -z $jarfile ];
|
||||
then
|
||||
./setvars.sh
|
||||
fi
|
||||
|
||||
mvn install -f $pomfile -Dmaven.test.skip
|
11
src/tools/shhelpers/run_server.sh
Normal file
11
src/tools/shhelpers/run_server.sh
Normal file
@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ -z $jarfile ]
|
||||
then
|
||||
./setvars.sh
|
||||
fi
|
||||
|
||||
cd $server
|
||||
java -Xmx1024M -Xms1024M -jar spigot_server.jar
|
||||
cd $batdir
|
||||
./list_files.sh
|
16
src/tools/shhelpers/setvars.sh
Normal file
16
src/tools/shhelpers/setvars.sh
Normal file
@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
|
||||
#The folder in which these .sh files are located
|
||||
EXPORT batdir=/home/yourhome/IdeaProjects/AuthMeReloaded/src/tools/shhelpers/
|
||||
|
||||
#The location of the generated JAR file
|
||||
EXPORT jarfile=/home/yourhome/IdeaProjects/AuthMeReloaded/target/AuthMe-5.2-SNAPSHOT.jar
|
||||
|
||||
#The location of the pom.xml file of the project
|
||||
EXPORT pomfile=/home/yourhome/IdeaProjects/AuthMeReloaded/pom.xml
|
||||
|
||||
#The folder in which the server is located
|
||||
EXPORT server=/home/yourhome/AUTHME_DEV/spigot-server/
|
||||
|
||||
#The Location of the plugins folder of the Minecraft server
|
||||
EXPORT plugins=$server/plugins/
|
Loading…
Reference in New Issue
Block a user