Move tools folder into test folder

- Classes still won't be present in JAR but classes will be automatically compiled by Maven inside of the test scope, facilitating the execution of tool tasks
This commit is contained in:
ljacqu
2016-05-03 20:24:34 +02:00
parent 23317caa46
commit 3645806edc
46 changed files with 69 additions and 64 deletions
@@ -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
+16
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/
@@ -0,0 +1,6 @@
#!/bin/sh
#
# That script sort the content of all files in the current directory
#
ls | grep -v .sort | while read file; do sort "$file" > "$file".sort; done
for file in *.sort; do mv "$file" "${file%%.sort}"; done