What are the default goals for a typical ant buildfile?

Do you have a predefined set of goals that contain all the created files build.xml? For example, most ant manuals offer the following list of goals:

  • Init
  • clean
  • compilation
  • to build
  • bank
  • test
  • Javadoc
  • distance
  • expand
  • Webapp

What is the largest build file you've come across in your life? How many goals did he have, and what are they? How often do you need more than a predefined set of goals?

, buildfile , - ( , ). , , , .

+3
2

ant

  • INIT
  • build
  • Javadoc

, , whateveer.

, ( VCS). jar- i.g.:

lib.commons-collections=commons-collections-2.1.jar
lib.commons-io=commons-io-1.4.jar

ant, common.jar - , , .

<path id="local-cp">
    <pathelement path="${dir.common.jar}/${lib.shared}" />
    <pathelement path="${dir.lib}/${lib.commons-logging}" />
    <pathelement path="${dir.lib}/${lib.commons-io}" />
...

ant deploy_component-name.xml ant , ..

, , , , .

+2
  • int
0

Source: https://habr.com/ru/post/1739965/


All Articles