moved deploy_features to MarwStuff

This commit is contained in:
Erik Bročko 2018-10-05 19:34:32 +02:00
parent 48ca6d4d8f
commit 1f25c23944
3 changed files with 29 additions and 49 deletions

View File

@ -5,6 +5,8 @@
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="src" path="/MarwCore"/> <classpathentry kind="src" path="/MarwCore"/>
<classpathentry kind="var" path="M2_REPO/me/lucko/luckperms/luckperms-api/4.2/luckperms-api-4.2.jar" sourcepath="M2_REPO/me/lucko/luckperms/luckperms-api/4.2/luckperms-api-4.2-sources.jar"/> <classpathentry kind="var" path="M2_REPO/me/lucko/luckperms/luckperms-api/4.2/luckperms-api-4.2.jar" sourcepath="M2_REPO/me/lucko/luckperms/luckperms-api/4.2/luckperms-api-4.2-sources.jar"/>
<classpathentry kind="var" path="M2_REPO/com/zaxxer/HikariCP/3.2.0/HikariCP-3.2.0.jar" sourcepath="M2_REPO/com/zaxxer/HikariCP/3.2.0/HikariCP-3.2.0-sources.jar"/>
<classpathentry kind="var" path="M2_REPO/org/slf4j/slf4j-api/1.7.25/slf4j-api-1.7.25.jar" sourcepath="M2_REPO/org/slf4j/slf4j-api/1.7.25/slf4j-api-1.7.25-sources.jar"/>
<classpathentry kind="var" path="M2_REPO/org/spigotmc/spigot-api/1.12-R0.1-SNAPSHOT/spigot-api-1.12-R0.1-SNAPSHOT.jar" sourcepath="M2_REPO/org/spigotmc/spigot-api/1.12-R0.1-SNAPSHOT/spigot-api-1.12-R0.1-SNAPSHOT-sources.jar"/> <classpathentry kind="var" path="M2_REPO/org/spigotmc/spigot-api/1.12-R0.1-SNAPSHOT/spigot-api-1.12-R0.1-SNAPSHOT.jar" sourcepath="M2_REPO/org/spigotmc/spigot-api/1.12-R0.1-SNAPSHOT/spigot-api-1.12-R0.1-SNAPSHOT-sources.jar"/>
<classpathentry kind="var" path="M2_REPO/commons-lang/commons-lang/2.6/commons-lang-2.6.jar" sourcepath="M2_REPO/commons-lang/commons-lang/2.6/commons-lang-2.6-sources.jar"/> <classpathentry kind="var" path="M2_REPO/commons-lang/commons-lang/2.6/commons-lang-2.6.jar" sourcepath="M2_REPO/commons-lang/commons-lang/2.6/commons-lang-2.6-sources.jar"/>
<classpathentry kind="var" path="M2_REPO/com/googlecode/json-simple/json-simple/1.1.1/json-simple-1.1.1.jar" sourcepath="M2_REPO/com/googlecode/json-simple/json-simple/1.1.1/json-simple-1.1.1-sources.jar"/> <classpathentry kind="var" path="M2_REPO/com/googlecode/json-simple/json-simple/1.1.1/json-simple-1.1.1.jar" sourcepath="M2_REPO/com/googlecode/json-simple/json-simple/1.1.1/json-simple-1.1.1-sources.jar"/>

View File

@ -1,20 +0,0 @@
#!/bin/bash
if [[ "Darwin" == `uname` ]]; then
MC_PATH="../../server"
cp "$1" "../../server/plugins/MarwCore/modules/$2.jar"
"$MC_PATH/cmd.sh" "marw reload $2"
else
LXC_CONT="marw"
MC_USER="mc"
MC_PATH="/home/mc/factions"
lxc file push "$1" "$LXC_CONT$MC_PATH/plugins/MarwCore/modules/$2.jar"
lxc exec $LXC_CONT chown $MC_USER:$MC_USER "$MC_PATH/plugins/MarwCore/modules/$2.jar"
lxc exec $LXC_CONT -- sudo -u $MC_USER "$MC_PATH/cmd.sh" "marw reload $2"
fi
exit 0

View File

@ -25,39 +25,37 @@
</plugin> </plugin>
<plugin> <plugin>
<artifactId>exec-maven-plugin</artifactId> <artifactId>exec-maven-plugin</artifactId>
<version>1.6.0</version> <version>1.6.0</version>
<groupId>org.codehaus.mojo</groupId> <groupId>org.codehaus.mojo</groupId>
<executions> <executions>
<execution> <execution>
<id>Version Calculation</id> <phase>deploy</phase>
<phase>deploy</phase> <goals>
<goals> <goal>exec</goal>
<goal>exec</goal> </goals>
</goals> </execution>
</execution> </executions>
</executions> <configuration>
<configuration> <executable>${project.parent.basedir}/deploy_feature.sh</executable>
<executable>${basedir}/deploy_feature.sh</executable> <arguments>
<arguments> <argument>${project.build.directory}/${project.build.finalName}.jar</argument>
<argument>${project.build.directory}/${project.build.finalName}.jar</argument> <argument>${project.artifactId}</argument>
<argument>${project.artifactId}</argument> </arguments>
</arguments> </configuration>
</configuration> </plugin>
</plugin> <plugin>
<plugin> <artifactId>maven-resources-plugin</artifactId>
<artifactId>maven-resources-plugin</artifactId> <configuration>
<configuration> <outputDirectory>${project.build.outputDirectory}/resources</outputDirectory>
<outputDirectory> ${project.build.outputDirectory}/resources</outputDirectory> </configuration>
</configuration> </plugin>
</plugin>
</plugins> </plugins>
</build> </build>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>cz.marwland.mc</groupId> <groupId>cz.marwland.mc</groupId>
<artifactId>MarwCore</artifactId> <artifactId>MarwCore</artifactId>
<version>${project.parent.version}</version> <version>${project.parent.version}</version>
</dependency> </dependency>
</dependencies> </dependencies>
</project> </project>