fix: name was always 'name'
All checks were successful
tagged-release / Tagged Release (push) Successful in 4m14s

This commit is contained in:
TopchetoEU 2025-01-24 04:18:35 +02:00
parent 166e9c0470
commit fffeac9bac
Signed by: topchetoeu
GPG Key ID: 6531B8583E5F6ED4
2 changed files with 5 additions and 5 deletions

View File

@ -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;
}
}

View File

@ -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