Browse Source

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
master
Jan Materne 16 years ago
parent
commit
2bba1c8258
1 changed files with 12 additions and 2 deletions
  1. +12
    -2
      docs/manual/running.html

+ 12
- 2
docs/manual/running.html View File

@@ -193,16 +193,19 @@ JVM documentation for more details.
</blockquote>
<p>runs Ant using the <code>build.xml</code> file in the current directory, on
the default target.</p>

<blockquote>
<pre>ant -buildfile test.xml</pre>
</blockquote>
<p>runs Ant using the <code>test.xml</code> file in the current directory, on
the default target.</p>

<blockquote>
<pre>ant -buildfile test.xml dist</pre>
</blockquote>
<p>runs Ant using the <code>test.xml</code> file in the current directory, on
the target called <code>dist</code>.</p>

<blockquote>
<pre>ant -buildfile test.xml -Dbuild=build/classes dist</pre>
</blockquote>
@@ -214,8 +217,15 @@ to the value <code>build/classes</code>.</p>
<pre>ant -lib /home/ant/extras</pre>
</blockquote>
<p>runs Ant picking up additional task and support jars from the
/home/ant/extras location
</p>
/home/ant/extras location</p>

<blockquote>
<pre>ant -lib one.jar;another.jar</pre>
<pre>ant -lib one.jar -lib another.jar</pre>
</blockquote>
<p>adds two jars to Ants classpath.</p>



<h3><a name="files">Files</a></h3>



Loading…
Cancel
Save