paradox icon indicating copy to clipboard operation
paradox copied to clipboard

Linking to dynamically generated files

Open joprice opened this issue 7 years ago • 2 comments

Is there a way to link to dynamically generated files generated by a task?

joprice avatar Aug 09 '17 03:08 joprice

After looking at the plugin code, I was able to get this working by adding the dynamically generated files' output directory to the source directories with sourceDirectories in (Paradox, paradox) += outputDirectory.value and making the paradox task depend on the generation task: paradox in Paradox <<= (paradox in Paradox).dependsOn(generateFiles).

Not sure if this is the best way to go about it, but I'll try it until I run into issues.

joprice avatar Aug 09 '17 15:08 joprice

That sounds good. I did a similar thing where I created a custom config which allows to generate paradox output that links to locally generated API docs (instead of the ones hosted already). I did not have to touch sourceDirectories as the linking was setup through paradoxProperties.

2m avatar Aug 11 '17 08:08 2m