Add an extension point target on which the spoofaximp.default.(ctree|jar) may depend. This is as easy as adding a line such as:

<extension-point name="ready-to-compile"/>

to the build.generated.xml file and the target ready-to-compile as a dependency of the above-mentioned targets.

The user can then define a target with the attribute extensionOf="ready-to-compile" for custom preprocessing tasks that are guaranteed to be run before building the project.

The alternative is to rewrite the all target to be a sequence of <antcall>s, since ANT does not guarantee ordering is maintained if you simply add unrelated dependencies to the same target. I believe this extension point alternative is a little cleaner.

Submitted by Augusto on 18 September 2014 at 16:50

Log in to post comments