When we ran the
HelloWorld.xml Ant buildfile in the last section,
the choice of targets, along with all other options in the launch configuration dialog were saved in an entity called
a 'launch configuration'. Launch configurations contain all details necessary to run an Ant buildfile in a particular
way. It is perfectly valid to have multiple launch configurations associated with a single Ant buildfile. Therefore,
in addition to the launch configuration that was created in the last step, specifying that our
HelloWorld.xml buildfile should execute the targets
that order, a second launch configuration could be created for the same buildfile specifying different targets or
just different ordering. Creating multiple launch configurations in this manner allows you to quickly run your Ant
buildfile in any configuration by simply specifying the corresponding launch configuration.
HelloWorld.xmlbuildfile is selected in the tree at the left, and the tabs on the right show the options for this launch configuration.
Hello Worldand Apply the change.
(1)is appended to the name, and the new launch configuration is selected in the tree.
Worldtarget executes first, and Apply the change.
HelloWorld.xmlbuildfile runs and sends its output to the Console view. This time however, because the targets were reversed, the output is reversed as well.
Hello Worldand one for
World Hello. In order to rerun the Ant buildfile so that it outputs
Hello World, just select this launch configuration in the history. To rerun the launch configuration that outputs
World Hello, select this configuration in the history.