@Steven McLaughlin what do you mean with obviously doesn't work?
s
Steven McLaughlin
12/07/2018, 4:41 PM
Since it's looking for a file on a relative path, it won't find it. Essentially it's looking for a file relative to the path that the jar is in, but building the jar doesn't copy that file with its filepath outside of the jar
a
Andreas Sinz
12/07/2018, 5:04 PM
Right. Well it depends on what you are actually going to do with the jar file (run it from different folder, on a different pc, with multiple configs) etc.
s
Spike Baylor
12/07/2018, 10:34 PM
Well also... Src probably isnt in your jar. You should probably out the yaml in a resources dir and make sure that gets into the jar.