Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 33352 invoked from network); 14 Apr 2004 14:46:15 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 14 Apr 2004 14:46:15 -0000 Received: (qmail 96207 invoked by uid 500); 14 Apr 2004 14:46:01 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 96163 invoked by uid 500); 14 Apr 2004 14:46:01 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 96118 invoked by uid 500); 14 Apr 2004 14:46:01 -0000 Received: (qmail 96101 invoked from network); 14 Apr 2004 14:46:00 -0000 Received: from unknown (HELO minotaur.apache.org) (209.237.227.194) by daedalus.apache.org with SMTP; 14 Apr 2004 14:46:00 -0000 Received: (qmail 33168 invoked by uid 1694); 14 Apr 2004 14:46:05 -0000 Date: 14 Apr 2004 14:46:05 -0000 Message-ID: <20040414144605.33167.qmail@minotaur.apache.org> From: jhm@apache.org To: ant-cvs@apache.org Subject: cvs commit: ant/docs faq.html X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N 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 @@ 1.5.4 12 August 2003 + 1.6.0 18 December 2003 + 1.6.1 12 February 2004 @@ -579,6 +581,17 @@ ]]>

With AntContrib (external task library) you can do <propertycopy name="prop" from="${anotherprop}"/>.

+

With Ant 1.6 you can simulate the AntContribs <propertycopy> + and avoid the need of an external library:

+ + + + + + + +]]> @@ -1369,7 +1382,7 @@

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.

@@ -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).

- 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()

+ + + + The program I run via <java> throws an exception but I + can't seem to get the full stack trace. + + +

This is a know bug that has been fixed after the release of + Ant 1.6.1.

+ +

As a workaround, run your <java> task with + fork="true" and Ant will display the full + trace.

+
+
- + \ 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? +
  • + + The program I run via <java> throws an exception but I + can't seem to get the full stack trace. + +
  • Answers

    @@ -908,6 +914,17 @@

    With AntContrib (external task library) you can do <propertycopy name="prop" from="${anotherprop}"/>.

    +

    With Ant 1.6 you can simulate the AntContribs <propertycopy> + and avoid the need of an external library:

    +
      +<macrodef name="propertycopy">
      +  <attribute name="name"/>
      +  <attribute name="from"/>
      +  <sequential>
      +    <property name="@{name}" value="${@{from}}"/>
      +  </sequential>
      +</macrodef>
      +

    Why does Ant always recompile all my Java files? @@ -1554,7 +1571,7 @@

    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.

    @@ -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).

    - 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()

      @@ -1590,6 +1607,18 @@
                               

    This approach should work for ant1.5 and ant1.6.

    +

    + + + The program I run via <java> throws an exception but I + can't seem to get the full stack trace. + +

    +

    This is a know bug that has been fixed after the release of + Ant 1.6.1.

    +

    As a workaround, run your <java> task with + fork="true" and Ant will display the full + trace.

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