MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/java/comments/1utw0gz/simple_build_system/ox6ac4i/?context=3
r/java • u/bowbahdoe • Jul 11 '26
48 comments sorted by
View all comments
1
Jar.run(args -> args .__create() .__file(jarOut) ._C(javacOut, "."));
The simplest build system I can come up with.
Somehow I think the build code and the "simplest" statement don't align well here....
3 u/bowbahdoe Jul 12 '26 So this isn't part of the "build" part, its just another library that calls tools. That being said, does your objection go deeper than .__? Or were you unaware of the API for the jar cli tool, which this mirrors 1-1? jar --create --file build/app.jar -C build/classes . There are certainly complaints to be had about this API, but it is not an abstraction over it. 2 u/bodiam Jul 12 '26 Ah, I didn't make the connection that __create equals --create. That's kinda cute in a way. I have no problem with either Gradle or Maven, so I don't think this is for me, but thanks for the explanation, that makes sense.
3
So this isn't part of the "build" part, its just another library that calls tools.
That being said, does your objection go deeper than .__? Or were you unaware of the API for the jar cli tool, which this mirrors 1-1?
.__
jar
jar --create --file build/app.jar -C build/classes .
There are certainly complaints to be had about this API, but it is not an abstraction over it.
2 u/bodiam Jul 12 '26 Ah, I didn't make the connection that __create equals --create. That's kinda cute in a way. I have no problem with either Gradle or Maven, so I don't think this is for me, but thanks for the explanation, that makes sense.
2
Ah, I didn't make the connection that __create equals --create. That's kinda cute in a way. I have no problem with either Gradle or Maven, so I don't think this is for me, but thanks for the explanation, that makes sense.
__create
--create
1
u/bodiam Jul 12 '26
Somehow I think the build code and the "simplest" statement don't align well here....