Compile other dependent projects with Ant in one project at the same time

In development, it is generally encountered that several projects need to be compiled and released at the same time. If you execute ant in sequence, it is too annoying. You can call other ant scripts from the ant scripts of a target project.

Add the following to the target project

<target name="callNewsExtractor">

      <echo message="building xxxxx    project" />

       <ant antfile="build.xml" dir="dir\xxx" />

</target>

This will call the build.xml compilation in the dir directory

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326953388&siteId=291194637