I think I figured this out.
1) I am placing my custom file directly in the esbcontent folder.
2) I then use getClass().getResource("/filename").getFile() to obtain the File reference. The "/" in the filename allows for the path to be relative to the esbcontent folder.
Any better examples/methods out there?
Here's two examples of how it's done within ESB (look for scriptPath) :