ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject cvs commit: ant/xdocs faq.xml
Date Tue, 07 Oct 2003 14:29:30 GMT
bodewig     2003/10/07 07:29:30

  Modified:    docs     Tag: ANT_16_BRANCH faq.html
               xdocs    Tag: ANT_16_BRANCH faq.xml
  Log:
  Update the delegating-classloader FAQ
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.77.2.1  +19 -1     ant/docs/faq.html
  
  Index: faq.html
  ===================================================================
  RCS file: /home/cvs/ant/docs/faq.html,v
  retrieving revision 1.77
  retrieving revision 1.77.2.1
  diff -u -r1.77 -r1.77.2.1
  --- faq.html	20 Aug 2003 16:07:48 -0000	1.77
  +++ faq.html	7 Oct 2003 14:29:30 -0000	1.77.2.1
  @@ -1315,6 +1315,10 @@
           <code>CLASSPATH</code> environment variable or
           <code>ANT_HOME/lib</code>" for the rest of this
           answer.</p>
  +                        <p>Technically the sentence above isn't true for Ant 1.6
  +        and later anymore, but the result is the same.  For the sake
  +        of this discussion, <code>CLASSPATH</code> and
  +        <code>ANT_HOME/lib</code> are identical.</p>
                           <p>This question collects a common type of problem: A task
           needs an external library and it has a nested classpath
           element so that you can point it to this external library, but
  @@ -1367,6 +1371,8 @@
             <li>remove the class that loads the external library from
             the <code>CLASSPATH</code>.</li>
           </ol>
  +                        <p><strong>Using The Second Option with Ant 1.5.4 and
  +        Earlier:</strong></p>
                           <p>The easiest way to do this is to remove
           <code>optional.jar</code> from <code>ANT_HOME/lib</code>.
 If
           you do so, you will have to <code>&lt;taskdef&gt;</code> all
  @@ -1393,8 +1399,20 @@
           directory, in the <code>&lt;style&gt;</code> case it is one
of
           the <code>*Liaison</code> classes in
           <code>org/apache/tools/ant/taskdefs/optional</code>.</p>
  +                        <p><strong>Using The Second Option with Ant 1.6 and
  +        later:</strong></p>
  +                        <p>In Ant 1.6 <code>optional.jar</code> has been
split into
  +        multiple jars, each one containing classes with the same
  +        dependencies on external libraries.  You can move the
  +        "offending" jar out of ANT_HOME/lib.  For the
  +        <code>&lt;junit&gt;</code> task it would be
  +        <code>ant-junit.jar</code> and for <code>&lt;style&gt;</code>
  +        it would be <code>ant-trax.jar</code>,
  +        <code>ant-xalan1.jar</code> or <code>ant-xslp.jar</code>
-
  +        depending on the processor you use.</p>
                           <p>If you use the option to break up <code>optional.jar</code>
  -        for <code>&lt;junit&gt;</code>, you still have to use a
  +        for <code>&lt;junit&gt;</code> or remove
  +        <code>ant-junit.jar</code>, you still have to use a
           <code>&lt;taskdef&gt;</code> with a nested
           <code>&lt;classpath&gt;</code> to define the junit task.</p>
                       <p class="faq">
  
  
  
  No                   revision
  No                   revision
  1.38.2.1  +23 -1     ant/xdocs/faq.xml
  
  Index: faq.xml
  ===================================================================
  RCS file: /home/cvs/ant/xdocs/faq.xml,v
  retrieving revision 1.38
  retrieving revision 1.38.2.1
  diff -u -r1.38 -r1.38.2.1
  --- faq.xml	20 Aug 2003 16:07:48 -0000	1.38
  +++ faq.xml	7 Oct 2003 14:29:30 -0000	1.38.2.1
  @@ -1090,6 +1090,11 @@
           <code>ANT_HOME/lib</code>&quot; for the rest of this
           answer.</p>
   
  +        <p>Technically the sentence above isn&apos;t true for Ant 1.6
  +        and later anymore, but the result is the same.  For the sake
  +        of this discussion, <code>CLASSPATH</code> and
  +        <code>ANT_HOME/lib</code> are identical.</p>
  +
           <p>This question collects a common type of problem: A task
           needs an external library and it has a nested classpath
           element so that you can point it to this external library, but
  @@ -1154,6 +1159,9 @@
             the <code>CLASSPATH</code>.</li>
           </ol>
   
  +        <p><strong>Using The Second Option with Ant 1.5.4 and
  +        Earlier:</strong></p>
  +
           <p>The easiest way to do this is to remove
           <code>optional.jar</code> from <code>ANT_HOME/lib</code>.
 If
           you do so, you will have to <code>&lt;taskdef&gt;</code> all
  @@ -1183,8 +1191,22 @@
           the <code>*Liaison</code> classes in
           <code>org/apache/tools/ant/taskdefs/optional</code>.</p>
   
  +        <p><strong>Using The Second Option with Ant 1.6 and
  +        later:</strong></p>
  +
  +        <p>In Ant 1.6 <code>optional.jar</code> has been split into
  +        multiple jars, each one containing classes with the same
  +        dependencies on external libraries.  You can move the
  +        "offending" jar out of ANT_HOME/lib.  For the
  +        <code>&lt;junit&gt;</code> task it would be
  +        <code>ant-junit.jar</code> and for <code>&lt;style&gt;</code>
  +        it would be <code>ant-trax.jar</code>,
  +        <code>ant-xalan1.jar</code> or <code>ant-xslp.jar</code>
-
  +        depending on the processor you use.</p>
  +
           <p>If you use the option to break up <code>optional.jar</code>
  -        for <code>&lt;junit&gt;</code>, you still have to use a
  +        for <code>&lt;junit&gt;</code> or remove
  +        <code>ant-junit.jar</code>, you still have to use a
           <code>&lt;taskdef&gt;</code> with a nested
           <code>&lt;classpath&gt;</code> to define the junit task.</p>
         </answer>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message