Package org.collebol.client.utils
Class GameInfo
java.lang.Object
org.collebol.client.utils.GameInfo
Load your own game info. Make sure to setup the following plugins in your
pom.xml.
Usage:
<build>
<resources>
<resource>
<directory>src/main/resources/properties</directory>
<filtering>true</filtering>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>3.3.1</version>
<configuration>
<delimiters>
<delimiter>${*}</delimiter>
</delimiters>
<useDefaultDelimiters>true</useDefaultDelimiters>
</configuration>
</plugin>
</plugins>
</build>
Steps to add your own game info:
- Add your
game.propertiesto the directory you have set at:src/main/resources/properties. - Use resource filtering in Maven so variables like
${project.version}are replaced.
Add the following to your game.properties:
version=${project.version}
artifactId=${project.artifactId}
name=${project.name}
- Since:
- 1.0-dev
- Author:
- ColleBol - contact@collebol.org
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
GameInfo
-
-
Method Details
-
getVersion
-
getArtifactId
-
getName
-