

When ant command is run, it looks for project's default target and execute it. Īdd the following to a file named build.xml in your project directory: įrom a command prompt on a computer running Windows, executing ant main will display similar to the following: $ ant mainīuildfile: C:\Users\\Projects\HelloWorld\build.xmlĪlso, user can now run the command ant as default target name added to the project.

The following will create dist/output.jar from the source code in src and the libraries in lib, and will use src/Main.java as the main class. Īnd any custom repositories in ivysettings.xml ĭownload your dependencies by running ant ivy.resolve.

Add the following target in your build.xml Īfter running the task ant ivy.bootstrap, you will now be able to resolve dependencies using apache ivy.
