Mirror von
https://github.com/TheSilentPro/HeadDB.git
synchronisiert 2024-12-26 19:02:39 +01:00
hmm
Dieser Commit ist enthalten in:
Ursprung
1677c5d2e4
Commit
9c497b2ec7
12
pom.xml
12
pom.xml
@ -17,6 +17,7 @@
|
||||
<maven.compiler.source>17</maven.compiler.source>
|
||||
<maven.compiler.target>17</maven.compiler.target>
|
||||
<build.author>TheSilentPro (Silent)</build.author>
|
||||
<maven.build.timestamp.format>dd-MM-yyyy HH:mm:ss</maven.build.timestamp.format>
|
||||
<build.timestamp>${maven.build.timestamp}</build.timestamp>
|
||||
</properties>
|
||||
|
||||
@ -133,7 +134,7 @@
|
||||
<executions>
|
||||
<execution>
|
||||
<id>build-properties</id>
|
||||
<phase>validate</phase>
|
||||
<phase>generate-resources</phase>
|
||||
<goals>
|
||||
<goal>create</goal>
|
||||
<goal>create-metadata</goal>
|
||||
@ -144,16 +145,15 @@
|
||||
<doCheck>true</doCheck>
|
||||
<doUpdate>true</doUpdate>
|
||||
|
||||
<buildNumberPropertiesFileLocation>${basedir}/build/buildNumber.properties</buildNumberPropertiesFileLocation>
|
||||
<outputDirectory>${basedir}/build</outputDirectory>
|
||||
<outputName>build.properties</outputName>
|
||||
<buildNumberPropertyName>build.number</buildNumberPropertyName>
|
||||
<revisionPropertyName>build.revision</revisionPropertyName>
|
||||
<scmBranchPropertyName>build.branch</scmBranchPropertyName>
|
||||
|
||||
<useLastCommittedRevision>true</useLastCommittedRevision>
|
||||
<useLastCommittedRevision>false</useLastCommittedRevision>
|
||||
<shortRevisionLength>7</shortRevisionLength>
|
||||
<revisionOnScmFailure>0</revisionOnScmFailure>
|
||||
<items>
|
||||
<item>buildNumber</item>
|
||||
<item>timestamp</item>
|
||||
<item>scmVersion</item>
|
||||
</items>
|
||||
</configuration>
|
||||
|
@ -15,6 +15,8 @@ public class BuildProperties {
|
||||
|
||||
private String version = "unknown";
|
||||
private int buildNumber = 0;
|
||||
private String revision = "unknown";
|
||||
private String branch = "unknown";
|
||||
private String timestamp = "unknown";
|
||||
private String author = "unknown";
|
||||
|
||||
@ -28,6 +30,8 @@ public class BuildProperties {
|
||||
YamlConfiguration data = YamlConfiguration.loadConfiguration(new InputStreamReader(in));
|
||||
this.version = data.getString("version", "unknown");
|
||||
this.buildNumber = data.getInt("build", 0);
|
||||
this.revision = data.getString("buildRevision", "unknown");
|
||||
this.branch = data.getString("buildBranch", "unknown");
|
||||
this.timestamp = data.getString("buildTimestamp", "unknown");
|
||||
this.author = data.getString("buildAuthor", "unknown");
|
||||
}
|
||||
@ -40,6 +44,14 @@ public class BuildProperties {
|
||||
return buildNumber;
|
||||
}
|
||||
|
||||
public String getRevision() {
|
||||
return revision;
|
||||
}
|
||||
|
||||
public String getBranch() {
|
||||
return branch;
|
||||
}
|
||||
|
||||
public String getTimestamp() {
|
||||
return timestamp;
|
||||
}
|
||||
|
@ -9,6 +9,8 @@ author: TheSilentPro (Silent)
|
||||
spigot-id: 84967
|
||||
|
||||
build: ${build.number}
|
||||
buildRevision: ${build.revision}
|
||||
buildBranch: ${build.branch}
|
||||
buildTimestamp: ${build.timestamp}
|
||||
buildAuthor: ${build.author}
|
||||
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren