Add SH Helpers tools

This commit is contained in:
Xephi 2015-12-09 11:15:09 +01:00
parent dcd06760ce
commit 49da659d93
7 changed files with 78 additions and 0 deletions

View 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

View File

@ -0,0 +1,11 @@
#!/bin/sh
#
# Usage: ./build_project.sh
#
if [ -z $jarfile ];
then
./setvars.sh
fi
mvn clean install -f $pomfile -B

View File

@ -0,0 +1,2 @@
#!/bin/sh
ls -aB *.sh

View 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

View 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

View 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

View 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/