Add SH Helpers tools
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Usage: ./analyze_project.sh
|
||||
#
|
||||
|
||||
if [ -z $jarfile ];
|
||||
then
|
||||
./setvars.sh
|
||||
fi
|
||||
|
||||
mvn clean verify sonar:sonar -f $pomfile
|
||||
@@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Usage: ./build_project.sh
|
||||
#
|
||||
|
||||
if [ -z $jarfile ];
|
||||
then
|
||||
./setvars.sh
|
||||
fi
|
||||
|
||||
mvn clean install -f $pomfile -B
|
||||
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
ls -aB *.sh
|
||||
@@ -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
|
||||
@@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Usage: ./analyze_project.sh
|
||||
#
|
||||
|
||||
if [ -z $jarfile ];
|
||||
then
|
||||
./setvars.sh
|
||||
fi
|
||||
|
||||
mvn install -f $pomfile -Dmaven.test.skip
|
||||
@@ -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
|
||||
@@ -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/
|
||||
Reference in New Issue
Block a user