Does Ant offer a way to bypass dependency?

后端 未结 5 1982
刺人心
刺人心 2021-02-19 03:38

The build.xml has a test and a build target. The test target obviously depends on the build target.

How can I run the test target on

5条回答
  •  广开言路
    2021-02-19 04:24

    Personally I've found the dependency stuff in Ant to get in the way more than helping. I usually set up two sets of targets - ones which actually do stuff (with no dependencies) and then targets which just have dependencies. That way you can easily run a single target, and you can also easily run the whole suite etc. This fits in with practical (rather than ideological) uses in my view.

提交回复
热议问题