Version 0.9.8-SNAPSHOT
This commit is contained in:
parent
4ee818deab
commit
61d723b589
4 changed files with 31 additions and 26 deletions
|
@ -45,8 +45,8 @@ public class SampleBuild extends Project {
|
|||
public void genver() throws Exception {
|
||||
new GeneratedVersionOperation()
|
||||
.fromProject(this)
|
||||
.projectName("My App")
|
||||
.classTemplate("my_app_version.txt")
|
||||
// .projectName("My App")
|
||||
// .classTemplate("my_app_version.txt")
|
||||
.execute();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,28 +1,30 @@
|
|||
/*
|
||||
* This file is automatically generated.
|
||||
* Do not modify! -- ALL CHANGES WILL BE ERASED!
|
||||
*/
|
||||
|
||||
package com.example;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* Provides project version information.
|
||||
*/
|
||||
public final class GeneratedVersion {
|
||||
public static final String PROJECT = "Sample";
|
||||
public static final Date BUILD_DATE = new Date(1720056110519L);
|
||||
public final class GeneratedVersion implements Comparable<GeneratedVersion> {
|
||||
public static final Date BUILD_DATE = new Date(1720371304587L);
|
||||
public static final int MAJOR = 1;
|
||||
public static final int MINOR = 0;
|
||||
public static final int REVISION = 1;
|
||||
public static final String PROJECT = "My App";
|
||||
public static final String QUALIFIER = "rc1";
|
||||
public static final int REVISION = 1;
|
||||
public static final String VERSION = "1.0.1-rc1";
|
||||
|
||||
/**
|
||||
* Disables the default constructor.
|
||||
*/
|
||||
private GeneratedVersion() {
|
||||
throw new UnsupportedOperationException("Illegal constructor call.");
|
||||
// no-op
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int compareTo(GeneratedVersion other) {
|
||||
if (MAJOR != other.MAJOR) {
|
||||
return Integer.compare(MAJOR, other.MAJOR);
|
||||
} else if (MINOR != other.MINOR) {
|
||||
return Integer.compare(MINOR, other.MINOR);
|
||||
} else if (REVISION != other.REVISION) {
|
||||
return Integer.compare(REVISION, other.REVISION);
|
||||
} else {
|
||||
return QUALIFIER.compareTo(other.QUALIFIER);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue