mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-23 00:24:11 -08:00
Fixes bugs in teavm-maven-plugin
This commit is contained in:
parent
5de1b3877d
commit
1280493717
|
@ -197,7 +197,9 @@ public class BuildJavascriptMojo extends AbstractMojo {
|
||||||
for (int i = 0; i < methodAlias.getTypes().length; ++i) {
|
for (int i = 0; i < methodAlias.getTypes().length; ++i) {
|
||||||
String types = methodAlias.getTypes()[i];
|
String types = methodAlias.getTypes()[i];
|
||||||
if (types != null) {
|
if (types != null) {
|
||||||
for (String type : types.split(" ")) {
|
for (String type : types.split(" +")) {
|
||||||
|
type = type.trim();
|
||||||
|
if (!type.isEmpty()) {
|
||||||
entryPoint.withValue(i, type);
|
entryPoint.withValue(i, type);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -205,6 +207,7 @@ public class BuildJavascriptMojo extends AbstractMojo {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
targetDirectory.mkdirs();
|
targetDirectory.mkdirs();
|
||||||
try (FileWriter writer = new FileWriter(new File(targetDirectory, targetFileName))) {
|
try (FileWriter writer = new FileWriter(new File(targetDirectory, targetFileName))) {
|
||||||
if (runtime == RuntimeCopyOperation.MERGED) {
|
if (runtime == RuntimeCopyOperation.MERGED) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user