Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 34855 invoked from network); 14 Apr 2004 14:48:25 -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:48:25 -0000 Received: (qmail 2761 invoked by uid 500); 14 Apr 2004 14:48:17 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 2614 invoked by uid 500); 14 Apr 2004 14:48:16 -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 2593 invoked from network); 14 Apr 2004 14:48:15 -0000 Received: from unknown (HELO dnsinet.rzf-nrw.de) (193.109.238.66) by daedalus.apache.org with SMTP; 14 Apr 2004 14:48:15 -0000 Received: from z011104.bk.fin.local (z011104.bk.fin.local [193.109.238.140]) by dnsinet.rzf-nrw.de (8.12.10/8.12.10) with ESMTP id i3EEmDZY012852 for ; Wed, 14 Apr 2004 16:48:13 +0200 Received: by z011104.bk.fin.local with Internet Mail Service (5.5.2657.72) id <2W4R7VGT>; Wed, 14 Apr 2004 16:47:22 +0200 Message-ID: <879A5AD5DD0ED511891F0003473A9B560E23EF9E@Z011004> From: Jan.Materne@rzf.fin-nrw.de To: dev@ant.apache.org Subject: RE: cvs commit: ant/docs faq.html Date: Wed, 14 Apr 2004 16:48:12 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C4222F.82EB6A10" 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 ------_=_NextPart_001_01C4222F.82EB6A10 Content-Type: text/plain; charset="iso-8859-1" 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 @@ > 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() >

> @@ -1407,6 +1420,21 @@ >

> > > + > + > + > + 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 > ------_=_NextPart_001_01C4222F.82EB6A10--