Intermodule dependency in ant

后端 未结 2 1503
一整个雨季
一整个雨季 2020-12-21 18:27

I am using Ant 1.8

I have multiple modules in intelliJ IDEA. Each module has a build.xml and currently i need to browse till build.xml of that file and run ant for e

2条回答
  •  一个人的身影
    2020-12-21 19:22

    The subant task in ANT is the most flexible way to invoke a multi-module build, for example:

    
    
        
            
                
                    
                    
                
                
                
            
        
    
    
    

    Project structure

    |-- build.xml
    |-- moduleA
    |   `-- build.xml
    `-- moduleB
        `-- build.xml
    

    Note:

    In my opinion the most powerful way to use this task is to combine it with the buildlist task from Apache ivy. Let the ivy inter-module dependency declarations automatically determine the module build order.

提交回复
热议问题