you can now build g-earth

This commit is contained in:
sirjonasxx 2020-04-24 22:37:25 +02:00
parent 750fff662f
commit 2b3d266e32
4 changed files with 99 additions and 0 deletions

3
.gitignore vendored
View File

@ -7,6 +7,9 @@ out/
bin/ bin/
**/target/ **/target/
# our self-made build folder
Build/
# vsCode # vsCode
Extensions/BlockReplacePackets/.classpath Extensions/BlockReplacePackets/.classpath
.project .project

View File

@ -77,6 +77,28 @@
<appendAssemblyId>false</appendAssemblyId> <appendAssemblyId>false</appendAssemblyId>
</configuration> </configuration>
</plugin> </plugin>
<!-- global build folder -->
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<phase>package</phase>
<configuration>
<target name="copy to extensions folder">
<copy file="target/bin/AdminOnConnect.jar" todir="../../Build/Linux/extensions"/>
<copy file="target/bin/AdminOnConnect.jar" todir="../../Build/Mac/extensions"/>
<copy file="target/bin/AdminOnConnect.jar" todir="../../Build/Windows_64bit/extensions"/>
<copy file="target/bin/AdminOnConnect.jar" todir="../../Build/Windows_64bit/extensions"/>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins> </plugins>
</build> </build>

View File

@ -76,6 +76,29 @@
<appendAssemblyId>false</appendAssemblyId> <appendAssemblyId>false</appendAssemblyId>
</configuration> </configuration>
</plugin> </plugin>
<!-- global build folder -->
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<phase>package</phase>
<configuration>
<target name="copy to extensions folder">
<copy file="target/bin/BlockReplacePackets.jar" todir="../../Build/Linux/extensions"/>
<copy file="target/bin/BlockReplacePackets.jar" todir="../../Build/Mac/extensions"/>
<copy file="target/bin/BlockReplacePackets.jar" todir="../../Build/Windows_64bit/extensions"/>
<copy file="target/bin/BlockReplacePackets.jar" todir="../../Build/Windows_64bit/extensions"/>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins> </plugins>
</build> </build>

View File

@ -69,6 +69,57 @@
<appendAssemblyId>false</appendAssemblyId> <appendAssemblyId>false</appendAssemblyId>
</configuration> </configuration>
</plugin> </plugin>
<!-- global build folder -->
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<id>copy_files</id>
<phase>package</phase>
<configuration>
<target name="copy G-Earth.jar to Build folder">
<copy file="target/bin/G-Earth.jar" todir="../Build/Mac/"/>
<copy file="target/bin/G-Earth.jar" todir="../Build/Linux/"/>
<copy file="target/bin/G-Earth.jar" todir="../Build/Windows_32bit/"/>
<copy file="target/bin/G-Earth.jar" todir="../Build/Windows_64bit/"/>
<copy todir="../Build/Mac/">
<fileset dir="src/main/resources/build/mac" includes="**/*" />
</copy>
<copy todir="../Build/Linux/">
<fileset dir="src/main/resources/build/linux" includes="**/*" />
</copy>
<copy todir="../Build/Windows_32bit/">
<fileset dir="src/main/resources/build/windows/32bit" includes="**/*" />
</copy>
<copy todir="../Build/Windows_64bit/">
<fileset dir="src/main/resources/build/windows/64bit" includes="**/*" />
</copy>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
<execution>
<id>clean_files</id>
<phase>clean</phase>
<configuration>
<target name="clean our own build folder">
<delete dir="../Build"
includeemptydirs="true"/>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins> </plugins>
</build> </build>