shevek / jcpp

The C Preprocessor as a Java library
http://www.anarres.org/projects/jcpp/
Apache License 2.0
106 stars 36 forks source link

Unable to run Main class via Gradle #41

Open AlanKrueger opened 3 years ago

AlanKrueger commented 3 years ago

Just wanted to try out this project, but ran into some issues. After patching https://github.com/shevek/jcpp/pull/40, I run into this:

$ ./gradlew run --args="--help"

> Task :compileJava
[...]
> Task :run FAILED
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Exception in thread "main" java.lang.NullPointerException
        at org.anarres.cpp.BuildMetadata.<init>(BuildMetadata.java:40)
        at org.anarres.cpp.BuildMetadata.getInstance(BuildMetadata.java:29)
        at org.anarres.cpp.Main.run(Main.java:61)
        at org.anarres.cpp.Main.main(Main.java:51)

FAILURE: Build failed with an exception.
[...]

It looks like it's failing to load /META-INF/jcpp.properties from the built resources. I don't see any file with that name, though.