I understand that to add files to be packaged with an artifact in IDEA, one goes to "Project Structure", "Artifacts" and then "Add copy of".
What I'm looking for is a way to add to an artifact a file *that is only generated at build time*.
e.g., there is a another tool that creates a file, which I don't want to store anywhere, but only to include in the final artifact.
How can I do this programatically?
I can see a "Pre-processing" section that only lets us run Ant targets, which seems unhelpful since we're interested in just calling a library.