ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject RE: cvs commit: ant/docs faq.html
Date Wed, 14 Apr 2004 14:48:12 GMT
Ups, it seems that there were additional modifications outside
the propertycopy-via-macrodef :-)

But I think they can keep there.


Jan

> -----Original Message-----
> From: jhm@apache.org [mailto:jhm@apache.org]
> Sent: Wednesday, April 14, 2004 4:46 PM
> To: ant-cvs@apache.org
> Subject: cvs commit: ant/docs faq.html
> 
> 
> jhm         2004/04/14 07:46:05
> 
>   Modified:    xdocs    Tag: ANT_16_BRANCH faq.xml
>                docs     Tag: ANT_16_BRANCH faq.html
>   Log:
>   merge faq with head
>   
>   Revision  Changes    Path
>   No                   revision
>   No                   revision
>   1.38.2.11 +32 -4     ant/xdocs/faq.xml
>   
>   Index: faq.xml
>   ===================================================================
>   RCS file: /home/cvs/ant/xdocs/faq.xml,v
>   retrieving revision 1.38.2.10
>   retrieving revision 1.38.2.11
>   diff -u -r1.38.2.10 -r1.38.2.11
>   --- faq.xml	18 Feb 2004 16:05:19 -0000	1.38.2.10
>   +++ faq.xml	14 Apr 2004 14:46:05 -0000	1.38.2.11
>   @@ -181,10 +181,12 @@
>                <td>1.5.4</td>
>                <td>12 August 2003</td>
>              </tr>
>   +
>              <tr>
>                <td>1.6.0</td>
>                <td>18 December 2003</td>
>              </tr>
>   +
>              <tr>
>                <td>1.6.1</td>
>                <td>12 February 2004</td>
>   @@ -579,6 +581,17 @@
>    ]]></source>
>             <p>With AntContrib (external task library) you 
> can do <code>
>             &lt;propertycopy name="prop" 
> from="${anotherprop}"/&gt;</code>.</p>
>   +         <p>With Ant 1.6 you can simulate the AntContribs 
> &lt;propertycopy&gt;
>   +         and avoid the need of an external library:</p>
>   +        <source><![CDATA[
>   +<macrodef name="propertycopy">
>   +  <attribute name="name"/>
>   +  <attribute name="from"/>
>   +  <sequential>
>   +    <property name="@{name}" value="${@{from}}"/>
>   +  </sequential>
>   +</macrodef>
>   +]]></source>
>          </answer>
>        </faq>
>      </faqsection>
>   @@ -1369,7 +1382,7 @@
>            </p>
>            <p>
>              There was a number of valid reasons for this 
> change. But the backward
>   -          compatibility problems were not noticied until 
> after Ant 1.6.0 was
>   +          compatibility problems were not noticed until 
> after Ant 1.6.0 was
>              released.
>            </p>
>            <p>
>   @@ -1382,11 +1395,11 @@
>              If you want to do more processing on the task,
>              you need to use the techniques in 
> apache.tools.ant.taskdefs.Antlib#execute()
>              This does make use of one 1.6 method call 
> (UE#getRealObject()),
>   -          you need to use UE#getTask() instread - this will
>   +          you need to use UE#getTask() instead - this will
>              return null for non tasks (types like fileset id=x).
>            </p>
>            <p>
>   -          So.. interate over the tasks, if they are UEs, 
> convert them to
>   +          So.. iterate over the tasks, if they are UEs, 
> convert them to
>              tasks, using UE#maybeConfigure and UE#getTask()
>            </p>
>            <source><![CDATA[
>   @@ -1407,6 +1420,21 @@
>            </p>
>          </answer>
>        </faq>
>   +
>   +    <faq id="java.exception.stacktrace">
>   +      <question>
>   +        The program I run via &lt;java&gt; throws an 
> exception but I
>   +        can't seem to get the full stack trace.
>   +      </question>
>   +      <answer>
>   +        <p>This is a know bug that has been fixed after 
> the release of
>   +        Ant 1.6.1.</p>
>   +
>   +        <p>As a workaround, run your &lt;java&gt; task with
>   +        <code>fork="true"</code> and Ant will display the full
>   +        trace.</p>
>   +      </answer>
>   +    </faq>
>      </faqsection>
>    
>   -</document>
>   +</document>
>   \ No newline at end of file
>   
>   
>   
>   No                   revision
>   No                   revision
>   1.77.2.11 +32 -3     ant/docs/faq.html
>   
>   Index: faq.html
>   ===================================================================
>   RCS file: /home/cvs/ant/docs/faq.html,v
>   retrieving revision 1.77.2.10
>   retrieving revision 1.77.2.11
>   diff -u -r1.77.2.10 -r1.77.2.11
>   --- faq.html	18 Feb 2004 16:05:20 -0000	1.77.2.10
>   +++ faq.html	14 Apr 2004 14:46:05 -0000	1.77.2.11
>   @@ -339,6 +339,12 @@
>            - they worked in Ant 1.5?
>          
>          </a></li>
>   +                <li><a href="#java.exception.stacktrace">
>   +  
>   +        The program I run via &lt;java&gt; throws an 
> exception but I
>   +        can't seem to get the full stack trace.
>   +      
>   +      </a></li>
>                </ul>
>        
>          <h3 class="section">Answers</h3>
>   @@ -908,6 +914,17 @@
>    </pre>
>                            <p>With AntContrib (external task 
> library) you can do <code>
>             &lt;propertycopy name="prop" 
> from="${anotherprop}"/&gt;</code>.</p>
>   +                        <p>With Ant 1.6 you can simulate 
> the AntContribs &lt;propertycopy&gt;
>   +         and avoid the need of an external library:</p>
>   +                        <pre class="code">
>   +&lt;macrodef name=&quot;propertycopy&quot;&gt;
>   +  &lt;attribute name=&quot;name&quot;/&gt;
>   +  &lt;attribute name=&quot;from&quot;/&gt;
>   +  &lt;sequential&gt;
>   +    &lt;property name=&quot;@{name}&quot; 
> value=&quot;${@{from}}&quot;/&gt;
>   +  &lt;/sequential&gt;
>   +&lt;/macrodef&gt;
>   +</pre>
>                                    <p class="faq">
>          <a name="always-recompiles"></a>
>          Why does Ant always recompile all my Java files?
>   @@ -1554,7 +1571,7 @@
>            </p>
>                            <p>
>              There was a number of valid reasons for this 
> change. But the backward
>   -          compatibility problems were not noticied until 
> after Ant 1.6.0 was
>   +          compatibility problems were not noticed until 
> after Ant 1.6.0 was
>              released.
>            </p>
>                            <p>
>   @@ -1567,11 +1584,11 @@
>              If you want to do more processing on the task,
>              you need to use the techniques in 
> apache.tools.ant.taskdefs.Antlib#execute()
>              This does make use of one 1.6 method call 
> (UE#getRealObject()),
>   -          you need to use UE#getTask() instread - this will
>   +          you need to use UE#getTask() instead - this will
>              return null for non tasks (types like fileset id=x).
>            </p>
>                            <p>
>   -          So.. interate over the tasks, if they are UEs, 
> convert them to
>   +          So.. iterate over the tasks, if they are UEs, 
> convert them to
>              tasks, using UE#maybeConfigure and UE#getTask()
>            </p>
>                            <pre class="code">
>   @@ -1590,6 +1607,18 @@
>                            <p>
>              This approach should work for ant1.5 and ant1.6.
>            </p>
>   +                    <p class="faq">
>   +      <a name="java.exception.stacktrace"></a>
>   +      
>   +        The program I run via &lt;java&gt; throws an 
> exception but I
>   +        can't seem to get the full stack trace.
>   +      
>   +    </p>
>   +                  <p>This is a know bug that has been 
> fixed after the release of
>   +        Ant 1.6.1.</p>
>   +                        <p>As a workaround, run your 
> &lt;java&gt; task with
>   +        <code>fork="true"</code> and Ant will display the full
>   +        trace.</p>
>                        </div>
>      </div>
>    
>   
>   
>   
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
> For additional commands, e-mail: dev-help@ant.apache.org
> 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message