mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-04-23 16:49:10 +00:00
create addon manifests
This commit is contained in:
@@ -38,7 +38,7 @@ public class ManifestAddonLoader implements BootstrapBaseAddon<ManifestAddon> {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
return Files.walk(addonsFolder, 1)
|
return Files.walk(addonsFolder, 1)
|
||||||
.filter(path -> path.toFile().isFile() && path.getFileName().endsWith(".jar"))
|
.filter(path -> path.toFile().isFile() && path.toString().endsWith(".jar"))
|
||||||
.flatMap(path -> {
|
.flatMap(path -> {
|
||||||
try {
|
try {
|
||||||
JarFile jar = new JarFile(path.toFile());
|
JarFile jar = new JarFile(path.toFile());
|
||||||
|
|||||||
@@ -28,7 +28,8 @@ public class AddonManifest implements ConfigTemplate, StringIdentifiable {
|
|||||||
private String license;
|
private String license;
|
||||||
|
|
||||||
@Value("contributors")
|
@Value("contributors")
|
||||||
private List<String> contributors;
|
@Default
|
||||||
|
private List<String> contributors = Collections.emptyList();
|
||||||
|
|
||||||
@Value("entrypoints")
|
@Value("entrypoints")
|
||||||
private List<String> entryPoints;
|
private List<String> entryPoints;
|
||||||
|
|||||||
Reference in New Issue
Block a user