How can I use an Ant taskdef that depends on lib imported by ivy

前端 未结 3 1142
Happy的楠姐
Happy的楠姐 2021-01-25 11:39

I\'ve created a taskdef in my build.xml that depends on a class that resides in a jar imported by Ivy.

I\'d like to understand if it\'s possible in any way, given the fa

3条回答
  •  执笔经年
    2021-01-25 12:34

    Just documenting my solution in case it might help anyone. Doing it cleanly as in David's answer is probably the right way to go, but just in case you need the quick solution...

    1) Move your taskdef inside the macro you want to call, instead of defining it outside. This will avoid it being evaluated and the build breaking immediatelly.

    2) Add your dependencies resolution as a dependency of the task containing the call to the macro.

提交回复
热议问题