Generating one file from many

Hi forum,
what is the recommended way for a plugin that, as part of the compile/build process, is supposed to generate one file out of many source files? So far, my best guess is to use either PackagingCompiler or a custom Artifact.
PackagingCompiler creates GenerationItems, which have a single source- and target-path. So question would be if it is okay that the same target path re-occurs in many GenerationItems?
Artifacts are only built on make if the corresponding option is checked, but I'd like the file to be generated on every compilation (or even better everytime on of the input files is updated). Of course, I could pre-set the option for my custom Artifact.
So which way is better, or is there a third way I missed?


Please sign in to leave a comment.