Search code examples
ant

Difference between ant and ant clean all?


Difference between ant and ant clean all ?

please can any one expain clearly when to use ant and ant clean all.

C:>ant

c:>ant clean all


Solution

  • "ant" runs the default target of the project.

    "ant clean all" runs the clean target with parameter all.

    The exact function depends on your definition of those targets. Generally speaking people use clean to clean up and have a fresh start, and default to rebuild the project, but again all depend on the way those targets are defined in the build file.