This question is in reference to Atlassian Documentation: Ant
Hi,
Issue: What should i mention in the 'Target' field in ANT Builder Task ?
I don't have any tests to be included in this task. Just simply i need to Build my 'build.xml' file.
Can anyone help, please.
Thanks.
An Apache Ant target denotes a set of tasks
you want to be executed. When starting Ant, you can select which target(s) you want to have executed. When no target is given, the project's default is used - see Writing a Simple Buildfile and for Running Apache Ant more on this.
While specifying the target for Ant is optional as such (Ant will simply execute all top level targets in case), the Bamboo Ant Task's resp. 'Target' parameter strangely requires a value. Accordingly, you need to be explicit about what Ant is doing by default when run from the command line by looking into your build.xml
file to determine the default
target configured there.
In case your build.xml
does not have a default
target configured, you need to deduce an appropriate target for your use case depending on the targets that are available in build.xml
.
Many projects use a target named build
or compile
accordingly.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.