Does Ant offer a way to bypass dependency?

后端 未结 5 1962
刺人心
刺人心 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:07

    No, you can't skip it without modifying the build file.

    Here is what I do in my projects to solve this issue. For every public target I will create a private target with "do-" in front of it. The private target has no dependency, and the public target has the "do-" target as a dependency.

    For example:

    
    
    
            
                
                
                
            
    
    

提交回复
热议问题