r/java • • Jul 11 '26

Simple Build System

https://github.com/bowbahdoe/build
13 Upvotes

48 comments sorted by

View all comments

Show parent comment

2

u/bowbahdoe Jul 15 '26

I think whether it is noise depends on what you are doing. There are already a ton of methods for specific tool arguments so I tend to think the noise battle is lost from the start.

if (!arguments.contains("-g")) {
    arguments.add("-g");
}

You could go either way, but I like having a list of arguments be a normal List.

That does remind me of another benefit of the __ naming scheme. It won't conflict with the methods on List. tool --add ... is actually pretty likely.