From 2bba1c8258501171b7c84a923f0d8be75ef8fced Mon Sep 17 00:00:00 2001 From: Jan Materne Date: Tue, 21 Apr 2009 09:17:21 +0000 Subject: [PATCH] Example: How to pass multiple JARs via -lib git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@767082 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/running.html | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/docs/manual/running.html b/docs/manual/running.html index 49b59f3bf..01ea6be37 100644 --- a/docs/manual/running.html +++ b/docs/manual/running.html @@ -193,16 +193,19 @@ JVM documentation for more details.

runs Ant using the build.xml file in the current directory, on the default target.

+
ant -buildfile test.xml

runs Ant using the test.xml file in the current directory, on the default target.

+
ant -buildfile test.xml dist

runs Ant using the test.xml file in the current directory, on the target called dist.

+
ant -buildfile test.xml -Dbuild=build/classes dist
@@ -214,8 +217,15 @@ to the value build/classes.

ant -lib /home/ant/extras

runs Ant picking up additional task and support jars from the -/home/ant/extras location -

+/home/ant/extras location

+ +
+
ant -lib one.jar;another.jar
+
ant -lib one.jar -lib another.jar
+
+

adds two jars to Ants classpath.

+ +

Files