fix: name was always 'name'
All checks were successful
tagged-release / Tagged Release (push) Successful in 4m14s
All checks were successful
tagged-release / Tagged Release (push) Successful in 4m14s
This commit is contained in:
parent
166e9c0470
commit
fffeac9bac
@ -31,7 +31,7 @@ public class Metadata {
|
||||
AUTHOR = value;
|
||||
break;
|
||||
case "name":
|
||||
NAME = name;
|
||||
NAME = value;
|
||||
break;
|
||||
default:
|
||||
throw new RuntimeException(String.format("%s:%s: Unexpected metadata key '%s'", file, line, name));
|
||||
@ -44,15 +44,15 @@ public class Metadata {
|
||||
}
|
||||
|
||||
public static String version() {
|
||||
if (VERSION.equals("$" + "{VERSION}")) return "1337-devel";
|
||||
if (VERSION.equals("${VERSION}")) return "1337-devel";
|
||||
else return VERSION;
|
||||
}
|
||||
public static String author() {
|
||||
if (AUTHOR.equals("$" + "{AUTHOR}")) return "anonymous";
|
||||
if (AUTHOR.equals("${AUTHOR}")) return "anonymous";
|
||||
else return AUTHOR;
|
||||
}
|
||||
public static String name() {
|
||||
if (NAME.equals("$" + "{NAME}")) return "some-product";
|
||||
if (NAME.equals("${NAME}")) return "some-product";
|
||||
else return NAME;
|
||||
}
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
project_group = me.topchetoeu.j2s
|
||||
project_name = j2s
|
||||
project_version = 0.10.6-beta
|
||||
project_version = 0.10.7-beta
|
||||
main_class = me.topchetoeu.j2s.repl.SimpleRepl
|
||||
|
Loading…
Reference in New Issue
Block a user