Pay tribute to ants (2)
Listing 3:
XML Version = "1.0"?>
The target all is the default target (default = "all"), so all the goals in the component file are executed. Because the target ALL depends on Clean and Package. Clean depends on init, init depending on SetProps. Package depends on Compile, Compile depends on Prepare, prepare relying on init. Of course, if the same text is used twice, then it should be defined in the init target.
You can see $ {OUTDIR} in the values defined local_outdir. It represents local_outdir = / tmp / app / panel. $ {local_outdir} is used in the value of Build. It represents build = / tmp / app / panel / classes.
Ok, you can run Ant in the Panel directory to see if there is HelloWorldPanel.jar in the G: / TMP / App / Lib directory.
Similarly, the respective component files (Listing 4) are written in the Frame and Main catalogs. Of course, HelloWorldMain relies on HelloWorldFrame, and HelloWorldFrame relies on HelloWorldPanel, so writes their respective list files (inventory 5) in their respective main-INF.
Listing 4:
XML Version = "1.0"?> Basedir = "$ {build}" /> target>