-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved template search path, again
- Loading branch information
Showing
5 changed files
with
69 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,28 @@ | ||
/* | ||
* This file is automatically generated. | ||
* Do not modify! -- ALL CHANGES WILL BE ERASED! | ||
*/ | ||
|
||
package com.example; | ||
|
||
import java.util.Date; | ||
|
||
public final class GeneratedVersion implements Comparable<GeneratedVersion> { | ||
public static final Date BUILD_DATE = new Date(1720371304587L); | ||
/** | ||
* Provides project version information. | ||
*/ | ||
public final class GeneratedVersion { | ||
public static final String PROJECT = "Sample"; | ||
public static final Date BUILD_DATE = new Date(1720742175167L); | ||
public static final int MAJOR = 1; | ||
public static final int MINOR = 0; | ||
public static final String PROJECT = "My App"; | ||
public static final String QUALIFIER = "rc1"; | ||
public static final int REVISION = 1; | ||
public static final String QUALIFIER = "rc1"; | ||
public static final String VERSION = "1.0.1-rc1"; | ||
|
||
/** | ||
* Disables the default constructor. | ||
*/ | ||
private GeneratedVersion() { | ||
// 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); | ||
} | ||
throw new UnsupportedOperationException("Illegal constructor call."); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package {{v packageName/}}; | ||
|
||
import java.util.Date; | ||
|
||
public final class {{v className/}} { | ||
public static final String PROJECT = "{{v project/}}"; | ||
public static final Date BUILD_DATE = new Date({{v epoch/}}L); | ||
public static final int MAJOR = {{v major/}}; | ||
public static final int MINOR = {{v minor/}}; | ||
public static final int REVISION = {{v revision/}}; | ||
public static final String QUALIFIER = "{{v qualifier/}}"; | ||
public static final String VERSION = "{{v version/}}"; | ||
|
||
private {{v className/}}() { | ||
// no-op | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters