cvs commit: ant/xdocs faq.xml

2005-06-02 Thread antoine
antoine 2005/06/02 07:04:40

  Modified:docs faq.html
   xdocsfaq.xml
  Log:
  add 1.6.5 in ant history in HEAD
  
  Revision  ChangesPath
  1.123 +10 -0 ant/docs/faq.html
  
  Index: faq.html
  ===
  RCS file: /home/cvs/ant/docs/faq.html,v
  retrieving revision 1.122
  retrieving revision 1.123
  diff -u -r1.122 -r1.123
  --- faq.html  2 Jun 2005 14:02:25 -   1.122
  +++ faq.html  2 Jun 2005 14:04:39 -   1.123
  @@ -649,6 +649,16 @@
 19 May 2005
 /td
 /tr
  +  tr
  +  td colspan=1 rowspan=1
  +  valign=top align=left
  +  1.6.5
  +  /td
  +  td colspan=1 rowspan=1
  +  valign=top align=left
  +  2 June 2005
  +  /td
  +  /tr
 /table
   p class=faq
 a name=no-gnu-tar/a
  
  
  
  1.72  +5 -0  ant/xdocs/faq.xml
  
  Index: faq.xml
  ===
  RCS file: /home/cvs/ant/xdocs/faq.xml,v
  retrieving revision 1.71
  retrieving revision 1.72
  diff -u -r1.71 -r1.72
  --- faq.xml   19 May 2005 13:13:56 -  1.71
  +++ faq.xml   2 Jun 2005 14:04:40 -   1.72
  @@ -206,6 +206,11 @@
   td1.6.4/td
   td19 May 2005/td
 /tr
  +
  +  tr
  +td1.6.5/td
  +td2 June 2005/td
  +  /tr
   /table
 /answer
   /faq
  
  
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



cvs commit: ant/xdocs faq.xml

2005-05-10 Thread bodewig
bodewig 2005/05/10 00:39:37

  Modified:docs Tag: ANT_16_BRANCH faq.html
   xdocsTag: ANT_16_BRANCH faq.xml
  Log:
  Merge FAQ changes from HEAD
  
  Revision  ChangesPath
  No   revision
  No   revision
  1.77.2.24 +128 -33   ant/docs/faq.html
  
  Index: faq.html
  ===
  RCS file: /home/cvs/ant/docs/faq.html,v
  retrieving revision 1.77.2.23
  retrieving revision 1.77.2.24
  diff -u -r1.77.2.23 -r1.77.2.24
  --- faq.html  28 Apr 2005 13:12:32 -  1.77.2.23
  +++ faq.html  10 May 2005 07:39:37 -  1.77.2.24
  @@ -354,6 +354,14 @@
 lt;stylegt; or lt;junitgt; ignores my
 lt;classpathgt;
 /a/li
  +lia href=#delegating-classloader-1.5
  +  lt;stylegt; or lt;junitgt; ignores my
  +  lt;classpathgt; - Ant 1.5.x version
  +  /a/li
  +lia href=#delegating-classloader-1.6
  +  lt;stylegt; or lt;junitgt; ignores my
  +  lt;classpathgt; - Ant 1.6.x version
  +  /a/li
   lia href=#winxp-jdk14-ant14
 When running Ant 1.4 on Windows XP and JDK 1.4, I get
 various errors when trying to codelt;execgt;/code, fork
  @@ -1610,31 +1618,23 @@
   /p
 pThese tasks don't ignore your classpath setting, you
   are facing a common problem with delegating classloaders./p
  -pFirst of all let's state that Ant adds all
  -code.jar/code files from codeANT_HOME/lib/code to
  -codeCLASSPATH/code, therefore in
  -codeCLASSPATH/code shall mean either in your
  -codeCLASSPATH/code environment variable or
  -codeANT_HOME/lib/code for the rest of this
  -answer./p
  -pTechnically 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, codeCLASSPATH/code and
  -codeANT_HOME/lib/code are identical./p
   pThis 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
  -that doesn't work unless you put the external library into the
  -codeCLASSPATH/code./p
  -pThe root of the problem is that the class that 
needs the
  -external library is on the codeCLASSPATH/code./p
  +that doesn't work unless you put the external library
  +into the codeCLASSPATH/code or place it in
  +codeANT_HOME/lib/code./p
  +pSome background is necessary before we can discuss
  +solutions for a href=#delegating-classloader-1.5Ant
  +1.5.x/a and a href=#delegating-classloader-1.6Ant
  +1.6.x/a./p
   pWhen you specify a nested 
codelt;classpathgt;/code in
   Ant, Ant creates a new class loader that uses the path you
   have specified.  It then tries to load additional classes from
   this classloader./p
  -pIn most cases - for example the two cases above - 
Ant
  -doesn't load the external library directly, it is the loaded
  -class that does so./p
  +pIn most cases - for example using lt;stylegt; or
  +lt;junitgt; - Ant doesn't load the external library
  +directly, it is the loaded class that does so./p
   pIn the case of codelt;junitgt;/code it is 
the task
   implementation itself and in the case of
   codelt;stylegt;/code it is the implementation of the
  @@ -1654,16 +1654,37 @@
   class loader, does not itself have a parent but may serve as
   the parent of a codeClassLoader/code
   instance./blockquote
  -pThis means, Ant's class loader will consult the
  +pThe possible solutions depend on the version of 
Ant you
  +use, see the next sections./p
  +p class=faq
  +  a name=delegating-classloader-1.5/a
  +  lt;stylegt; or lt;junitgt; ignores my
  +  lt;classpathgt; - Ant 1.5.x version
  +/p
  +  pPlease read a href=#delegating-classloaderthe 
previous
  +entry/a before you go ahead./p
  +pFirst of all let's state that Ant's wrapper script
  +(codeant/code or codeant.bat/code) adds all
  +code.jar/code files from codeANT_HOME/lib/code to
  +codeCLASSPATH/code, therefore in
  +codeCLASSPATH/code shall mean either in your
  +codeCLASSPATH/code environment variable or
  +codeANT_HOME/lib/code for the rest of this
  +answer./p
  +pThe root of the problem is that the class that 
needs the
  +external library is on the 

cvs commit: ant/xdocs faq.xml

2005-02-18 Thread bodewig
bodewig 2005/02/18 00:11:51

  Modified:docs external.html faq.html
   xdocsfaq.xml
  Log:
  Uninstall the ant RPMs hint by Robert Koberg
  
  Revision  ChangesPath
  1.195 +1 -1  ant/docs/external.html
  
  Index: external.html
  ===
  RCS file: /home/cvs/ant/docs/external.html,v
  retrieving revision 1.194
  retrieving revision 1.195
  diff -u -r1.194 -r1.195
  --- external.html 2 Feb 2005 10:20:10 -   1.194
  +++ external.html 18 Feb 2005 08:11:50 -  1.195
  @@ -3755,7 +3755,7 @@
 /th
 td colspan=1 rowspan=1
 valign=top align=left
  -  a 
href=http://www.nurflugel.com/webstart/AntScriptVisualizer;http://www.nurflugel.com/webstart/AntScriptVisualizer/a
  +  a 
href=http://www.nurflugel.com/webstart/AntScriptVisualizer/;http://www.nurflugel.com/webstart/AntScriptVisualizer//a
 /td
 /tr
 tr
  
  
  
  1.116 +25 -0 ant/docs/faq.html
  
  Index: faq.html
  ===
  RCS file: /home/cvs/ant/docs/faq.html,v
  retrieving revision 1.115
  retrieving revision 1.116
  diff -u -r1.115 -r1.116
  --- faq.html  27 Jan 2005 12:40:49 -  1.115
  +++ faq.html  18 Feb 2005 08:11:50 -  1.116
  @@ -204,6 +204,10 @@
 I get checksum errors when I try to extract the
 codetar.gz/code distribution file. Why?
 /a/li
  +lia href=#RedHat_ES_3
  +  How do you get ant-1.6.x (or any version later than
  +  1.5.2) to work on on RedHat ES 3?
  +  /a/li
   /ul
   h4 class=tocHow do I .../h4
   ul
  @@ -632,6 +636,27 @@
   found a href=http://www.gnu.org/software/tar/tar.html;here/a,
   or use the zip archive instead (you can extract it using
   codejar xf/code)./p
  +p class=faq
  +  a name=RedHat_ES_3/a
  +  How do you get ant-1.6.x (or any version later than
  +  1.5.2) to work on on RedHat ES 3?
  +/p
  +  pRedhat ES 3.0 comes installed with ant 1.5.2. Even if 
you
  +have your PATH and ANT_HOME variables set correctly to a later
  +version of ant, you will always be forced to use the
  +preinstalled version./p
  +pTo use a later version of ant on this OS you 
could do the
  +following:/p
  +pre class=code
  +$ ant -version
  +Apache Ant version 1.5.2-23 compiled on November 12 2003
  +$ su -
  +# rpm -e ant ant-libs
  +# exit
  +$ hash -r
  +$ ant -version
  +Apache Ant version 1.6.2 compiled on July 16 2004
  +/pre
   p class=faq
 a name=implement-os-specific-configuration/a
 How do I realize os--specific configurations?
  
  
  
  1.68  +24 -0 ant/xdocs/faq.xml
  
  Index: faq.xml
  ===
  RCS file: /home/cvs/ant/xdocs/faq.xml,v
  retrieving revision 1.67
  retrieving revision 1.68
  diff -u -r1.67 -r1.68
  --- faq.xml   10 Jan 2005 08:37:07 -  1.67
  +++ faq.xml   18 Feb 2005 08:11:51 -  1.68
  @@ -225,6 +225,30 @@
   codejar xf/code)./p
 /answer
   /faq
  +
  +faq id=RedHat_ES_3
  +  questionHow do you get ant-1.6.x (or any version later than
  +  1.5.2) to work on on RedHat ES 3?/question
  +  answer
  +pRedhat ES 3.0 comes installed with ant 1.5.2. Even if you
  +have your PATH and ANT_HOME variables set correctly to a later
  +version of ant, you will always be forced to use the
  +preinstalled version./p
  +
  +pTo use a later version of ant on this OS you could do the
  +following:/p
  +
  +source![CDATA[
  +$ ant -version
  +Apache Ant version 1.5.2-23 compiled on November 12 2003
  +$ su -
  +# rpm -e ant ant-libs
  +# exit
  +$ hash -r
  +$ ant -version
  +Apache Ant version 1.6.2 compiled on July 16 2004
  +]]/source/answer
  +/faq
 /faqsection
   
 faqsection title=How do I ...
  
  
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



cvs commit: ant/xdocs faq.xml problems.xml

2004-09-21 Thread bodewig
bodewig 2004/09/21 05:07:11

  Modified:docs faq.html problems.html
   xdocsfaq.xml problems.xml
  Log:
  It is a good idea to look for a different version of Ant before reporting a 
bug
  
  Revision  ChangesPath
  1.109 +10 -0 ant/docs/faq.html
  
  Index: faq.html
  ===
  RCS file: /home/cvs/ant/docs/faq.html,v
  retrieving revision 1.108
  retrieving revision 1.109
  diff -u -r1.108 -r1.109
  --- faq.html  15 Sep 2004 22:58:05 -  1.108
  +++ faq.html  21 Sep 2004 12:07:11 -  1.109
  @@ -250,6 +250,9 @@
   /ul
   h4 class=tocIt doesn't work (as expected)/h4
   ul
  +lia href=#genral-advice
  +  General Advice
  +  /a/li
   lia href=#always-recompiles
 Why does Ant always recompile all my Java files?
 /a/li
  @@ -990,6 +993,13 @@
   lt;/macrodefgt;
   /pre
   p class=faq
  +  a name=genral-advice/a
  +  General Advice
  +/p
  +  pThere are many reasons why Ant doesn't behave as
  +expected, not all of them are due to Ant bugs.  See our a 
href=problems.htmlHaving Problems?/a page for hints that
  +may help pinning down the reasons for your problem./p
  +p class=faq
 a name=always-recompiles/a
 Why does Ant always recompile all my Java files?
   /p
  
  
  
  1.57  +22 -0 ant/docs/problems.html
  
  Index: problems.html
  ===
  RCS file: /home/cvs/ant/docs/problems.html,v
  retrieving revision 1.56
  retrieving revision 1.57
  diff -u -r1.56 -r1.57
  --- problems.html 16 Jun 2004 14:25:34 -  1.56
  +++ problems.html 21 Sep 2004 12:07:11 -  1.57
  @@ -184,6 +184,28 @@
  you in the right direction.
   /p
 h4 class=subsection
  +a name=Ensure that you are actually running the version of Ant 
that you think you do/a
  +Ensure that you are actually running the version of Ant that you 
think you do
  +  /h4
  +pMany tools include a version of Ant and some 
Operating
  +Systems even install it by default now, so you may have a
  +version of Ant installed that you haven't been aware of./p
  +pOne of the first things to do is to run
  +  br /br /
  +  font face=verdana size=-1ant -version/font
  +  br /br /
  +  and
  +  br /br /
  +  font face=verdana size=-1ant -diagnostics/font
  +  br /br /
  +  to be sure.  Also, we highly recommend that you run Ant with
  +  an empty CLASSPATH.  If any other version of Ant can be
  +  loaded from the CLASSPATH, many types of errors may happen
  +  because of incompatible classes being loaded./p
  +pSee a href=faq.htmlthe FAQ/a for a 
href=faq.html#NoClassDefFoundErrorsome/a a 
href=faq.html#InstantiationExceptionexamples/a, but many
  +other problems are a result of an old version of Ant on your
  +system as well./p
  +h4 class=subsection
   a name=Read the Manual/a
   Read the Manual
 /h4
  
  
  
  1.64  +11 -0 ant/xdocs/faq.xml
  
  Index: faq.xml
  ===
  RCS file: /home/cvs/ant/xdocs/faq.xml,v
  retrieving revision 1.63
  retrieving revision 1.64
  diff -u -r1.63 -r1.64
  --- faq.xml   15 Sep 2004 22:58:05 -  1.63
  +++ faq.xml   21 Sep 2004 12:07:11 -  1.64
  @@ -623,6 +623,17 @@
 /faqsection
   
 faqsection title=It doesnapos;t work (as expected)
  +faq id=genral-advice
  +  questionGeneral Advice/question
  +  answer
  +
  +pThere are many reasons why Ant doesnapos;t behave as
  +expected, not all of them are due to Ant bugs.  See our a
  +href=problems.htmlHaving Problems?/a page for hints that
  +may help pinning down the reasons for your problem./p
  +  /answer
  +/faq
  +
   faq id=always-recompiles
 questionWhy does Ant always recompile all my Java files?/question
 answer
  
  
  
  1.16  +26 -0 ant/xdocs/problems.xml
  
  Index: problems.xml
  ===
  RCS file: /home/cvs/ant/xdocs/problems.xml,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- problems.xml  16 Feb 2004 16:38:06 -  1.15
  +++ problems.xml  21 Sep 2004 12:07:11 -  1.16
  @@ -34,6 +34,32 @@
  you in the right direction.
   /p

  +  subsection name=Ensure that you are actually running the version of 
Ant 

cvs commit: ant/xdocs faq.xml problems.xml

2004-09-21 Thread bodewig
bodewig 2004/09/21 05:07:54

  Modified:docs Tag: ANT_16_BRANCH faq.html problems.html
   xdocsTag: ANT_16_BRANCH faq.xml problems.xml
  Log:
  merge
  
  Revision  ChangesPath
  No   revision
  No   revision
  1.77.2.18 +10 -0 ant/docs/faq.html
  
  Index: faq.html
  ===
  RCS file: /home/cvs/ant/docs/faq.html,v
  retrieving revision 1.77.2.17
  retrieving revision 1.77.2.18
  diff -u -r1.77.2.17 -r1.77.2.18
  --- faq.html  16 Jul 2004 07:25:04 -  1.77.2.17
  +++ faq.html  21 Sep 2004 12:07:53 -  1.77.2.18
  @@ -250,6 +250,9 @@
   /ul
   h4 class=tocIt doesn't work (as expected)/h4
   ul
  +lia href=#genral-advice
  +  General Advice
  +  /a/li
   lia href=#always-recompiles
 Why does Ant always recompile all my Java files?
 /a/li
  @@ -972,6 +975,13 @@
   lt;/macrodefgt;
   /pre
   p class=faq
  +  a name=genral-advice/a
  +  General Advice
  +/p
  +  pThere are many reasons why Ant doesn't behave as
  +expected, not all of them are due to Ant bugs.  See our a 
href=problems.htmlHaving Problems?/a page for hints that
  +may help pinning down the reasons for your problem./p
  +p class=faq
 a name=always-recompiles/a
 Why does Ant always recompile all my Java files?
   /p
  
  
  
  1.49.2.5  +22 -0 ant/docs/problems.html
  
  Index: problems.html
  ===
  RCS file: /home/cvs/ant/docs/problems.html,v
  retrieving revision 1.49.2.4
  retrieving revision 1.49.2.5
  diff -u -r1.49.2.4 -r1.49.2.5
  --- problems.html 29 Jun 2004 15:03:48 -  1.49.2.4
  +++ problems.html 21 Sep 2004 12:07:54 -  1.49.2.5
  @@ -184,6 +184,28 @@
  you in the right direction.
   /p
 h4 class=subsection
  +a name=Ensure that you are actually running the version of Ant 
that you think you do/a
  +Ensure that you are actually running the version of Ant that you 
think you do
  +  /h4
  +pMany tools include a version of Ant and some 
Operating
  +Systems even install it by default now, so you may have a
  +version of Ant installed that you haven't been aware of./p
  +pOne of the first things to do is to run
  +  br /br /
  +  font face=verdana size=-1ant -version/font
  +  br /br /
  +  and
  +  br /br /
  +  font face=verdana size=-1ant -diagnostics/font
  +  br /br /
  +  to be sure.  Also, we highly recommend that you run Ant with
  +  an empty CLASSPATH.  If any other version of Ant can be
  +  loaded from the CLASSPATH, many types of errors may happen
  +  because of incompatible classes being loaded./p
  +pSee a href=faq.htmlthe FAQ/a for a 
href=faq.html#NoClassDefFoundErrorsome/a a 
href=faq.html#InstantiationExceptionexamples/a, but many
  +other problems are a result of an old version of Ant on your
  +system as well./p
  +h4 class=subsection
   a name=Read the Manual/a
   Read the Manual
 /h4
  
  
  
  No   revision
  No   revision
  1.38.2.17 +11 -0 ant/xdocs/faq.xml
  
  Index: faq.xml
  ===
  RCS file: /home/cvs/ant/xdocs/faq.xml,v
  retrieving revision 1.38.2.16
  retrieving revision 1.38.2.17
  diff -u -r1.38.2.16 -r1.38.2.17
  --- faq.xml   16 Jul 2004 07:25:04 -  1.38.2.16
  +++ faq.xml   21 Sep 2004 12:07:54 -  1.38.2.17
  @@ -622,6 +622,17 @@
 /faqsection
   
 faqsection title=It doesnapos;t work (as expected)
  +faq id=genral-advice
  +  questionGeneral Advice/question
  +  answer
  +
  +pThere are many reasons why Ant doesnapos;t behave as
  +expected, not all of them are due to Ant bugs.  See our a
  +href=problems.htmlHaving Problems?/a page for hints that
  +may help pinning down the reasons for your problem./p
  +  /answer
  +/faq
  +
   faq id=always-recompiles
 questionWhy does Ant always recompile all my Java files?/question
 answer
  
  
  
  1.14.2.2  +26 -0 ant/xdocs/problems.xml
  
  Index: problems.xml
  ===
  RCS file: /home/cvs/ant/xdocs/problems.xml,v
  retrieving revision 1.14.2.1
  retrieving revision 1.14.2.2
  diff -u -r1.14.2.1 -r1.14.2.2
  --- problems.xml  16 Feb 2004 16:45:09 -  1.14.2.1
  +++ problems.xml  21 Sep 2004 12:07:54 

cvs commit: ant/xdocs faq.xml

2004-09-15 Thread conor
conor   2004/09/15 15:58:05

  Modified:docs faq.html
   xdocsfaq.xml
  Log:
  This is a FAQ by any measure.
  
  Revision  ChangesPath
  1.108 +34 -0 ant/docs/faq.html
  
  Index: faq.html
  ===
  RCS file: /home/cvs/ant/docs/faq.html,v
  retrieving revision 1.107
  retrieving revision 1.108
  diff -u -w -u -r1.107 -r1.108
  --- faq.html  10 Sep 2004 16:52:23 -  1.107
  +++ faq.html  15 Sep 2004 22:58:05 -  1.108
  @@ -294,6 +294,13 @@
   codejava.lang.InstantiationException: 
org.apache.tools.ant.Main/code
 
 /a/li
  +lia href=#mangled-manifest
  +  
  +Whenever I use the Ant jar or manifest related tasks, long lines in
  +my manifest are wrapped at 70 characters and the resulting jar does 
  +not work in my application server. Why does Ant do this?
  +  
  +  /a/li
   /ul
   h4 class=tocAnt and IDEs/Editors/h4
   ul
  @@ -1162,6 +1169,33 @@
   p
 One can check if this is the case by doing
 codeant --noconfig -version/code.
  +/p
  +p class=faq
  +  a name=mangled-manifest/a
  +  
  +Whenever I use the Ant jar or manifest related tasks, long lines in
  +my manifest are wrapped at 70 characters and the resulting jar does 
  +not work in my application server. Why does Ant do this?
  +  
  +/p
  +  p
  +  Ant implements the Java 
  +  a 
href=http://java.sun.com/j2se/1.4.2/docs/guide/jar/jar.html;Jar 
  +  file specification/a. Please refer to the notes section where it 
  +  discusses the maximum allowable length of a line and the concept of
  +  continuation characters.
  +/p
  +p
  +  If a jar file produced by Ant does not work in your appserver, and 
  +  that failure is due to the wrapped manifest, then you need
  +  to consult your appserver provider, as it is a bug in their 
  +  appserver. Far more likely, however, is a problem in your 
  +  specification of your classpath. It is not Ant's wrapping of your
  +  classpath that is the problem.
  +/p
  +p
  +  Do not raise a bug about this issue until you have checked to 
ensure 
  +  that the problem is not due to your classpath specification.  
   /p
   p class=faq
 a name=integration/a
  
  
  
  1.63  +32 -0 ant/xdocs/faq.xml
  
  Index: faq.xml
  ===
  RCS file: /home/cvs/ant/xdocs/faq.xml,v
  retrieving revision 1.62
  retrieving revision 1.63
  diff -u -w -u -r1.62 -r1.63
  --- faq.xml   10 Sep 2004 16:52:22 -  1.62
  +++ faq.xml   15 Sep 2004 22:58:05 -  1.63
  @@ -845,6 +845,38 @@
   /p
 /answer
   /faq
  +faq id=mangled-manifest
  +  question
  +Whenever I use the Ant jar or manifest related tasks, long lines in
  +my manifest are wrapped at 70 characters and the resulting jar does 
  +not work in my application server. Why does Ant do this?
  +  /question
  +  
  +  answer
  +p
  +  Ant implements the Java 
  +  a 
href=http://java.sun.com/j2se/1.4.2/docs/guide/jar/jar.html;Jar 
  +  file specification/a. Please refer to the notes section where it 
  +  discusses the maximum allowable length of a line and the concept of
  +  continuation characters.
  +/p
  +
  +p
  +  If a jar file produced by Ant does not work in your appserver, and 
  +  that failure is due to the wrapped manifest, then you need
  +  to consult your appserver provider, as it is a bug in their 
  +  appserver. Far more likely, however, is a problem in your 
  +  specification of your classpath. It is not Ant's wrapping of your
  +  classpath that is the problem.
  +/p
  +
  +p
  +  Do not raise a bug about this issue until you have checked to 
ensure 
  +  that the problem is not due to your classpath specification.  
  +/p
  +  /answer
  +/faq
  +  
 /faqsection
   
 faqsection title=Ant and IDEs/Editors
  
  
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



cvs commit: ant/xdocs faq.xml

2004-09-08 Thread peterreilly
peterreilly2004/09/08 02:59:14

  Modified:docs faq.html
   xdocsfaq.xml
  Log:
  Add the InstantiationException: org.apache.tools.ant.Main error to the FAQ
  
  Revision  ChangesPath
  1.105 +24 -4 ant/docs/faq.html
  
  Index: faq.html
  ===
  RCS file: /home/cvs/ant/docs/faq.html,v
  retrieving revision 1.104
  retrieving revision 1.105
  diff -u -r1.104 -r1.105
  --- faq.html  28 Jul 2004 07:41:43 -  1.104
  +++ faq.html  8 Sep 2004 09:59:13 -   1.105
  @@ -283,10 +283,15 @@
   codeweb-inf/code or JAR files with a lower-case
   codemeta-inf/code directory.
 /a/li
  -lia href=#NoClassDefFoundError
  +lia href=#InstantiationException
 I installed Ant 1.6.x and now get
   codeException in thread main java.lang.NoClassDefFoundError:
  - org/apache/tools/ant/launch/Launcher/code
  +/code
  +  
  +  /a/li
  +lia href=#NoClassDefFoundError
  +  I installed Ant 1.6.x and now get
  +codejava.lang.InstantiationException: 
org.apache.tools.ant.Main/code
 
 /a/li
   /ul
  @@ -1110,10 +1115,25 @@
   section, check the Allow all upper case files names box.  The 
META-INF and
   WEB-INF will look correct./p
   p class=faq
  -  a name=NoClassDefFoundError/a
  +  a name=InstantiationException/a
 I installed Ant 1.6.x and now get
   codeException in thread main java.lang.NoClassDefFoundError:
  - org/apache/tools/ant/launch/Launcher/code
  +/code
  +  
  +/p
  +  p
  +  The cause of this is that there is an old version of ant somewhere 
in the
  +  class path or configuration.
  +/p
  +p
  +  A version of this problem happens with jars that are in the 
classpath
  +  that include an embedded copy of ant classes.
  +  An example of this is some copies of weblogic.jar.
  +/p
  +p class=faq
  +  a name=NoClassDefFoundError/a
  +  I installed Ant 1.6.x and now get
  +codejava.lang.InstantiationException: 
org.apache.tools.ant.Main/code
 
   /p
 p
  
  
  
  1.60  +19 -2 ant/xdocs/faq.xml
  
  Index: faq.xml
  ===
  RCS file: /home/cvs/ant/xdocs/faq.xml,v
  retrieving revision 1.59
  retrieving revision 1.60
  diff -u -r1.59 -r1.60
  --- faq.xml   28 Jul 2004 07:41:44 -  1.59
  +++ faq.xml   8 Sep 2004 09:59:13 -   1.60
  @@ -793,10 +793,27 @@
 /answer
   /faq
   
  -faq id=NoClassDefFoundError
  +faq id=InstantiationException
 questionI installed Ant 1.6.x and now get
   codeException in thread main java.lang.NoClassDefFoundError:
  - org/apache/tools/ant/launch/Launcher/code
  +/code
  +  /question
  +  answer
  +p
  +  The cause of this is that there is an old version of ant somewhere 
in the
  +  class path or configuration.
  +/p
  +p
  +  A version of this problem happens with jars that are in the 
classpath
  +  that include an embedded copy of ant classes.
  +  An example of this is some copies of weblogic.jar.
  +/p
  +  /answer
  +/faq
  +
  +faq id=NoClassDefFoundError
  +  questionI installed Ant 1.6.x and now get
  +codejava.lang.InstantiationException: 
org.apache.tools.ant.Main/code
 /question
 answer
   p
  
  
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



cvs commit: ant/xdocs faq.xml

2004-09-08 Thread peterreilly
peterreilly2004/09/08 03:05:36

  Modified:docs faq.html
   xdocsfaq.xml
  Log:
  Add an example to InstantiationException
  
  Revision  ChangesPath
  1.106 +8 -0  ant/docs/faq.html
  
  Index: faq.html
  ===
  RCS file: /home/cvs/ant/docs/faq.html,v
  retrieving revision 1.105
  retrieving revision 1.106
  diff -u -r1.105 -r1.106
  --- faq.html  8 Sep 2004 09:59:13 -   1.105
  +++ faq.html  8 Sep 2004 10:05:35 -   1.106
  @@ -1130,6 +1130,14 @@
 that include an embedded copy of ant classes.
 An example of this is some copies of weblogic.jar.
   /p
  +p
  +One can check if this is the case by doing (on unix/sh):
  +codepre
  +unset CLASSPATH
  +ant -version
  +/pre
  +/code
  +/p
   p class=faq
 a name=NoClassDefFoundError/a
 I installed Ant 1.6.x and now get
  
  
  
  1.61  +8 -0  ant/xdocs/faq.xml
  
  Index: faq.xml
  ===
  RCS file: /home/cvs/ant/xdocs/faq.xml,v
  retrieving revision 1.60
  retrieving revision 1.61
  diff -u -r1.60 -r1.61
  --- faq.xml   8 Sep 2004 09:59:13 -   1.60
  +++ faq.xml   8 Sep 2004 10:05:36 -   1.61
  @@ -808,6 +808,14 @@
 that include an embedded copy of ant classes.
 An example of this is some copies of weblogic.jar.
   /p
  +p
  +One can check if this is the case by doing (on unix/sh):
  +codepre
  +unset CLASSPATH
  +ant -version
  +/pre
  +/code
  +/p
 /answer
   /faq
   
  
  
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



cvs commit: ant/xdocs faq.xml

2004-07-28 Thread bodewig
bodewig 2004/07/28 00:41:44

  Modified:docs faq.html
   xdocsfaq.xml
  Log:
  Can talk about 1.6.2 in present tense now
  
  Revision  ChangesPath
  1.104 +1 -1  ant/docs/faq.html
  
  Index: faq.html
  ===
  RCS file: /home/cvs/ant/docs/faq.html,v
  retrieving revision 1.103
  retrieving revision 1.104
  diff -u -r1.103 -r1.104
  --- faq.html  16 Jul 2004 09:30:51 -  1.103
  +++ faq.html  28 Jul 2004 07:41:43 -  1.104
  @@ -1736,7 +1736,7 @@
   XSLTC yet.  This means that you have to install a 
href=http://xml.apache.org/xalan-j/;Xalan-J 2/a in order
   to use this task with JDK 1.5./p
   pStarting with Ant 1.6.2 
codelt;junitreportgt;/code
  -will support JDK 1.5./p
  +supports JDK 1.5./p
   /div
 /div
   
  
  
  
  1.59  +1 -1  ant/xdocs/faq.xml
  
  Index: faq.xml
  ===
  RCS file: /home/cvs/ant/xdocs/faq.xml,v
  retrieving revision 1.58
  retrieving revision 1.59
  diff -u -r1.58 -r1.59
  --- faq.xml   16 Jul 2004 09:30:51 -  1.58
  +++ faq.xml   28 Jul 2004 07:41:44 -  1.59
  @@ -1541,7 +1541,7 @@
   to use this task with JDK 1.5./p
   
   pStarting with Ant 1.6.2 codelt;junitreportgt;/code
  -will support JDK 1.5./p
  +supports JDK 1.5./p
   
 /answer
   /faq
  
  
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



cvs commit: ant/xdocs faq.xml

2004-07-13 Thread peterreilly
peterreilly2004/07/13 04:54:07

  Modified:xdocsfaq.xml
  Log:
  opps: forgot to commit the faq.xml for the faq.html
  
  Revision  ChangesPath
  1.57  +29 -1 ant/xdocs/faq.xml
  
  Index: faq.xml
  ===
  RCS file: /home/cvs/ant/xdocs/faq.xml,v
  retrieving revision 1.56
  retrieving revision 1.57
  diff -u -r1.56 -r1.57
  --- faq.xml   25 Jun 2004 13:42:10 -  1.56
  +++ faq.xml   13 Jul 2004 11:54:07 -  1.57
  @@ -787,6 +787,34 @@
   WEB-INF will look correct./p
 /answer
   /faq
  +
  +faq id=NoClassDefFoundError
  +  questionI installed Ant 1.6.x and now get
  +codeException in thread main java.lang.NoClassDefFoundError:
  + org/apache/tools/ant/launch/Launcher/code
  +  /question
  +  answer
  +p
  +  The cause of this is that there is an old version of ant somewhere 
in the
  +  class path or configuration.
  +/p
  +p
  +  A version of this problem may be seen on some linux systems.
  +  Some linux systems (Fedora Core 2 for example), comes with a 
version
  +  of ant pre-installed. There is a configuration file called
  +  code/etc/ant.conf/code which if present, the ant shell
  +  script will 'dot' include. On Fedora Core 2, the /etc/ant.conf
  +  file resets the codeANT_HOME/code environment variable to
  +  code/usr/share/ant/code. This causes the problem that
  +  an old version of ant (1.5.x in this cause) will be used
  +  with a new version of the ant script file.
  +/p
  +p
  +  One can check if this is the case by doing
  +  codeant --noconfig -version/code.
  +/p
  +  /answer
  +/faq
 /faqsection
   
 faqsection title=Ant and IDEs/Editors
  @@ -1514,4 +1542,4 @@
   /faq
 /faqsection
   
  -/document
  \ No newline at end of file
  +/document
  
  
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



cvs commit: ant/xdocs faq.xml

2004-06-25 Thread bodewig
bodewig 2004/06/25 06:42:10

  Modified:.WHATSNEW build.xml
   docs faq.html
   docs/manual/OptionalTasks junitreport.html
   src/etc  junit-frames.xsl
   src/main/org/apache/tools/ant/taskdefs/optional/junit
Xalan1Executor.java Xalan2Executor.java
XalanExecutor.java
   xdocsfaq.xml
  Added:   src/etc  junit-frames-xalan1.xsl
  Log:
  Make junitreport work with JDK 1.5.
  
  PR: 27541
  
  Most of the work has been done by Stephane, I just provided the
  finishing touches.
  
  Revision  ChangesPath
  1.632 +14 -0 ant/WHATSNEW
  
  Index: WHATSNEW
  ===
  RCS file: /home/cvs/ant/WHATSNEW,v
  retrieving revision 1.631
  retrieving revision 1.632
  diff -u -r1.631 -r1.632
  --- WHATSNEW  24 Jun 2004 19:30:03 -  1.631
  +++ WHATSNEW  25 Jun 2004 13:42:07 -  1.632
  @@ -44,6 +44,17 @@
   * Nested elements for namespaced tasks and types may belong to the
 Ant default namespace as well as the task's or type's namespace.
   
  +* junitreport will very likely no longer work with Xalan-J 1.
  +
  +  Note that Xalan-J 1 has been deprecated for a very long time and we
  +  highly recommend that you upgrade.
  +
  +  If you really need to continue using Xalan-J 1, please copy the
  +  junit-frames-xalan1.xsl from the distributions etc directory as
  +  junit-frames.xsl into a new directory and use the tasks styledir
  +  attribute to point to.  This is the last version of the XSLT
  +  stylesheet that is expected to be compatible with Xalan-J 1.
  +
   Fixed bugs:
   ---
   
  @@ -244,6 +255,9 @@
   * apply has a new ignoremissing attribute (default true for BC)
 which will allow nonexistent files specified via filelists to
 be passed to the executable.  Bugzilla Report 29585.
  +
  +* junitreport now also works with Xalan XSLTC and/or JDK 1.5.
  +  Bugzilla Report 27541.
   
   Changes from Ant 1.6.0 to Ant 1.6.1
   =
  
  
  
  1.423 +1 -0  ant/build.xml
  
  Index: build.xml
  ===
  RCS file: /home/cvs/ant/build.xml,v
  retrieving revision 1.422
  retrieving revision 1.423
  diff -u -r1.422 -r1.423
  --- build.xml 2 Jun 2004 12:09:45 -   1.422
  +++ build.xml 25 Jun 2004 13:42:08 -  1.423
  @@ -1032,6 +1032,7 @@
   fileset dir=${etc.dir}
   include name=junit-frames.xsl/
   include name=junit-noframes.xsl/
  +include name=junit-frames-xalan1.xsl/
   include name=coverage-frames.xsl/
   include name=maudit-frames.xsl/
   include name=mmetrics-frames.xsl/
  
  
  
  1.101 +2 -2  ant/docs/faq.html
  
  Index: faq.html
  ===
  RCS file: /home/cvs/ant/docs/faq.html,v
  retrieving revision 1.100
  retrieving revision 1.101
  diff -u -r1.100 -r1.101
  --- faq.html  16 Jun 2004 14:25:33 -  1.100
  +++ faq.html  25 Jun 2004 13:42:08 -  1.101
  @@ -1693,8 +1693,8 @@
   extensions for its internal stylesheet, Ant doesn't support
   XSLTC yet.  This means that you have to install a 
href=http://xml.apache.org/xalan-j/;Xalan-J 2/a in order
   to use this task with JDK 1.5./p
  -pIf you want to follow progress on this, a 
href=http://issues.apache.org/bugzilla/show_bug.cgi?id=27541;here/a
  -is the relevant bug report./p
  +pStarting with Ant 1.6.2 
codelt;junitreportgt;/code
  +will support JDK 1.5./p
   /div
 /div
   
  
  
  
  1.14  +18 -14ant/docs/manual/OptionalTasks/junitreport.html
  
  Index: junitreport.html
  ===
  RCS file: /home/cvs/ant/docs/manual/OptionalTasks/junitreport.html,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- junitreport.html  2 Jun 2004 12:31:18 -   1.13
  +++ junitreport.html  25 Jun 2004 13:42:09 -  1.14
  @@ -14,21 +14,25 @@
   Library Dependencies/a for more information./p
   
   h3Requirements/h3
  -pThe task needs a href=http://xml.apache.org/xalan-j/;Xalan
  -2.x/a; although a
  +
  +pThe task needs Apache a
  +href=http://xml.apache.org/xalan-j/;Xalan 2.x or Xalan XSLTC/a
  +(JDK 1.4 contains a version of Xalan-J 2.x while JDK 1.5 ships with a
  +version of XSLTC).  Versions prior to Ant 1.6.2 worked with Apache a
   href=http://xml.apache.org/dist/xalan-j/old/xalan-j_1_2_2.zip;Xalan
  -1.2.2/a does work, but as Xalan1 is not supported, we do not
  -recommend this.  While JDK 1.4.x contains a version of Xalan-J 2, JDK
  -1.5 and later have a
  -href=http://java.sun.com/j2se/1.5.0/compatibility.html#4959783;moved
  -to 

cvs commit: ant/xdocs faq.xml

2004-06-02 Thread bodewig
bodewig 2004/06/02 05:31:18

  Modified:docs faq.html
   docs/manual/OptionalTasks junitreport.html
   src/main/org/apache/tools/ant/taskdefs/optional/junit
XalanExecutor.java
   xdocsfaq.xml
  Log:
  Document the junitreport/JDK 1.5 problem, PR: 27541
  
  Revision  ChangesPath
  1.99  +21 -0 ant/docs/faq.html
  
  Index: faq.html
  ===
  RCS file: /home/cvs/ant/docs/faq.html,v
  retrieving revision 1.98
  retrieving revision 1.99
  diff -u -r1.98 -r1.99
  --- faq.html  11 May 2004 16:37:02 -  1.98
  +++ faq.html  2 Jun 2004 12:31:17 -   1.99
  @@ -357,6 +357,12 @@
   codeNoClassDefFoundError/code if forked.
 
 /a/li
  +lia href=#xalan-jdk1.5
  +  
  +codelt;junitreportgt;/code doesn't work with JDK 1.5 but
  +worked fine with JDK 1.4.
  +  
  +  /a/li
   /ul
   
 h3 class=sectionAnswers/h3
  @@ -1674,6 +1680,21 @@
   lt;pathelement 
path=quot;${ant.home}/lib/xml-apis.jar:${ant.home}/lib/xercesImpl.jarquot;/gt;
   /pre
   pto your task's lt;classpathgt;./p
  +p class=faq
  +  a name=xalan-jdk1.5/a
  +  
  +codelt;junitreportgt;/code doesn't work with JDK 1.5 but
  +worked fine with JDK 1.4.
  +  
  +/p
  +  pWhile JDK 1.4.x contains a version of Xalan-J 2, JDK 1.5
  +(and later?) have a 
href=http://java.sun.com/j2se/1.5.0/compatibility.html#4959783;moved
  +to XSLTC/a.  Since this task uses Xalan's redirect
  +extensions for its internal stylesheet, Ant doesn't support
  +XSLTC yet.  This means that you have to install a 
href=http://xml.apache.org/xalan-j/;Xalan-J 2/a in order
  +to use this task with JDK 1.5./p
  +pIf you want to follow progress on this, a 
href=http://issues.apache.org/bugzilla/show_bug.cgi?id=27541;here/a
  +is the relevant bug report./p
   /div
 /div
   
  
  
  
  1.13  +11 -5 ant/docs/manual/OptionalTasks/junitreport.html
  
  Index: junitreport.html
  ===
  RCS file: /home/cvs/ant/docs/manual/OptionalTasks/junitreport.html,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- junitreport.html  9 Feb 2004 21:50:08 -   1.12
  +++ junitreport.html  2 Jun 2004 12:31:18 -   1.13
  @@ -14,11 +14,17 @@
   Library Dependencies/a for more information./p
   
   h3Requirements/h3
  -pThe task needs a href=http://xml.apache.org/xalan-j/;Xalan 2.x/a;
  -although
  -a href=http://xml.apache.org/dist/xalan-j/old/xalan-j_1_2_2.zip;Xalan 
1.2.2/a
  -does work, but as Xalan1 is not supported, we do not recommend this.
  -/p
  +pThe task needs a href=http://xml.apache.org/xalan-j/;Xalan
  +2.x/a; although a
  +href=http://xml.apache.org/dist/xalan-j/old/xalan-j_1_2_2.zip;Xalan
  +1.2.2/a does work, but as Xalan1 is not supported, we do not
  +recommend this.  While JDK 1.4.x contains a version of Xalan-J 2, JDK
  +1.5 and later have a
  +href=http://java.sun.com/j2se/1.5.0/compatibility.html#4959783;moved
  +to XSLTC/a.  Since this task uses Xalan's redirect extensions for
  +its internal stylesheet, Ant doesn't support XSLTC yet.  This means
  +that you have to install Xalan-J 2 in order to use this task with JDK
  +1.5./p
   p
   If you do you use Xalan 1.2.2 you will need a compatible (older) version of 
Xerces.
   as well as BSF(bsf.jar). Again, using Xalan 2 is simpler and supported.
  
  
  
  1.15  +12 -2 
ant/src/main/org/apache/tools/ant/taskdefs/optional/junit/XalanExecutor.java
  
  Index: XalanExecutor.java
  ===
  RCS file: 
/home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/optional/junit/XalanExecutor.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- XalanExecutor.java9 Feb 2004 21:05:32 -   1.14
  +++ XalanExecutor.java2 Jun 2004 12:31:18 -   1.15
  @@ -27,6 +27,7 @@
   import java.lang.reflect.Field;
   import org.apache.tools.ant.BuildException;
   import org.apache.tools.ant.Project;
  +import org.apache.tools.ant.util.JavaEnvUtils;
   
   /**
* Command class that encapsulate specific behavior for each
  @@ -86,8 +87,17 @@
   xalan1missing.printStackTrace(new PrintWriter(swr));
   caller.task.log(Didn't find Xalan1., Project.MSG_DEBUG);
   caller.task.log(swr.toString(), Project.MSG_DEBUG);
  -throw new BuildException(Could not find xalan2 nor xalan1 
  -+ in the classpath. Check 
http://xml.apache.org/xalan-j;);
  +String msg = Could not find xalan2 nor xalan1 
  +   

cvs commit: ant/xdocs faq.xml

2004-06-02 Thread bodewig
bodewig 2004/06/02 05:33:21

  Modified:docs Tag: ANT_16_BRANCH faq.html
   docs/manual/OptionalTasks Tag: ANT_16_BRANCH
junitreport.html
   src/main/org/apache/tools/ant/taskdefs/optional/junit Tag:
ANT_16_BRANCH XalanExecutor.java
   xdocsTag: ANT_16_BRANCH faq.xml
  Log:
  merge
  
  Revision  ChangesPath
  No   revision
  No   revision
  1.77.2.13 +21 -0 ant/docs/faq.html
  
  Index: faq.html
  ===
  RCS file: /home/cvs/ant/docs/faq.html,v
  retrieving revision 1.77.2.12
  retrieving revision 1.77.2.13
  diff -u -r1.77.2.12 -r1.77.2.13
  --- faq.html  20 Apr 2004 07:29:35 -  1.77.2.12
  +++ faq.html  2 Jun 2004 12:33:21 -   1.77.2.13
  @@ -351,6 +351,12 @@
   codeNoClassDefFoundError/code if forked.
 
 /a/li
  +lia href=#xalan-jdk1.5
  +  
  +codelt;junitreportgt;/code doesn't work with JDK 1.5 but
  +worked fine with JDK 1.4.
  +  
  +  /a/li
   /ul
   
 h3 class=sectionAnswers/h3
  @@ -1650,6 +1656,21 @@
   lt;pathelement 
path=quot;${ant.home}/lib/xml-apis.jar:${ant.home}/lib/xercesImpl.jarquot;/gt;
   /pre
   pto your task's lt;classpathgt;./p
  +p class=faq
  +  a name=xalan-jdk1.5/a
  +  
  +codelt;junitreportgt;/code doesn't work with JDK 1.5 but
  +worked fine with JDK 1.4.
  +  
  +/p
  +  pWhile JDK 1.4.x contains a version of Xalan-J 2, JDK 1.5
  +(and later?) have a 
href=http://java.sun.com/j2se/1.5.0/compatibility.html#4959783;moved
  +to XSLTC/a.  Since this task uses Xalan's redirect
  +extensions for its internal stylesheet, Ant doesn't support
  +XSLTC yet.  This means that you have to install a 
href=http://xml.apache.org/xalan-j/;Xalan-J 2/a in order
  +to use this task with JDK 1.5./p
  +pIf you want to follow progress on this, a 
href=http://issues.apache.org/bugzilla/show_bug.cgi?id=27541;here/a
  +is the relevant bug report./p
   /div
 /div
   
  
  
  
  No   revision
  No   revision
  1.11.2.3  +11 -5 ant/docs/manual/OptionalTasks/junitreport.html
  
  Index: junitreport.html
  ===
  RCS file: /home/cvs/ant/docs/manual/OptionalTasks/junitreport.html,v
  retrieving revision 1.11.2.2
  retrieving revision 1.11.2.3
  diff -u -r1.11.2.2 -r1.11.2.3
  --- junitreport.html  9 Feb 2004 22:12:11 -   1.11.2.2
  +++ junitreport.html  2 Jun 2004 12:33:21 -   1.11.2.3
  @@ -15,11 +15,17 @@
   Library Dependencies/a for more information./p
   
   h3Requirements/h3
  -pThe task needs a href=http://xml.apache.org/xalan-j/;Xalan 2.x/a;
  -although
  -a href=http://xml.apache.org/dist/xalan-j/old/xalan-j_1_2_2.zip;Xalan 
1.2.2/a
  -does work, but as Xalan1 is not supported, we do not recommend this.
  -/p
  +pThe task needs a href=http://xml.apache.org/xalan-j/;Xalan
  +2.x/a; although a
  +href=http://xml.apache.org/dist/xalan-j/old/xalan-j_1_2_2.zip;Xalan
  +1.2.2/a does work, but as Xalan1 is not supported, we do not
  +recommend this.  While JDK 1.4.x contains a version of Xalan-J 2, JDK
  +1.5 and later have a
  +href=http://java.sun.com/j2se/1.5.0/compatibility.html#4959783;moved
  +to XSLTC/a.  Since this task uses Xalan's redirect extensions for
  +its internal stylesheet, Ant doesn't support XSLTC yet.  This means
  +that you have to install Xalan-J 2 in order to use this task with JDK
  +1.5./p
   p
   If you do you use Xalan 1.2.2 you will need a compatible (older) version of 
Xerces.
   as well as BSF(bsf.jar). Again, using Xalan 2 is simpler and supported.
  
  
  
  No   revision
  No   revision
  1.11.2.4  +12 -2 
ant/src/main/org/apache/tools/ant/taskdefs/optional/junit/XalanExecutor.java
  
  Index: XalanExecutor.java
  ===
  RCS file: 
/home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/optional/junit/XalanExecutor.java,v
  retrieving revision 1.11.2.3
  retrieving revision 1.11.2.4
  diff -u -r1.11.2.3 -r1.11.2.4
  --- XalanExecutor.java9 Feb 2004 22:12:34 -   1.11.2.3
  +++ XalanExecutor.java2 Jun 2004 12:33:21 -   1.11.2.4
  @@ -27,6 +27,7 @@
   import java.lang.reflect.Field;
   import org.apache.tools.ant.BuildException;
   import org.apache.tools.ant.Project;
  +import org.apache.tools.ant.util.JavaEnvUtils;
   
   /**
* Command class that encapsulate specific behavior for each
  @@ -86,8 +87,17 @@
   xalan1missing.printStackTrace(new PrintWriter(swr));
   caller.task.log(Didn't find Xalan1., 

cvs commit: ant/xdocs faq.xml

2004-04-20 Thread bodewig
bodewig 2004/04/20 00:27:21

  Modified:docs faq.html
   docs/manual/OptionalTasks junit.html
   xdocsfaq.xml
  Log:
  Document yet another classloading quirk within junit, PR: 24646
  
  Revision  ChangesPath
  1.97  +31 -0 ant/docs/faq.html
  
  Index: faq.html
  ===
  RCS file: /home/cvs/ant/docs/faq.html,v
  retrieving revision 1.96
  retrieving revision 1.97
  diff -u -r1.96 -r1.97
  --- faq.html  14 Apr 2004 06:40:08 -  1.96
  +++ faq.html  20 Apr 2004 07:27:20 -  1.97
  @@ -348,6 +348,12 @@
   can't seem to get the full stack trace.
 
 /a/li
  +lia href=#junit-no-runtime-xml
  +  
  +Using format=xml, lt;junitgt; fails with a
  +codeNoClassDefFoundError/code if forked.
  +  
  +  /a/li
   /ul
   
 h3 class=sectionAnswers/h3
  @@ -1622,6 +1628,31 @@
   pAs a workaround, run your lt;javagt; task with
   codefork=true/code and Ant will display the full
   trace./p
  +p class=faq
  +  a name=junit-no-runtime-xml/a
  +  
  +Using format=xml, lt;junitgt; fails with a
  +codeNoClassDefFoundError/code if forked.
  +  
  +/p
  +  pThe XML formatter needs the a 
href=http://www.w3.org/DOM/;DOM classes/a to work.  If you
  +are using JDK 1.4 or later they are included with your Java
  +Runtime and this problem won't occur.  If you are running JDK
  +1.3 or earlier, the DOM classes have to be on your
  +lt;junitgt; task's lt;classpathgt;./p
  +pPrior to Ant 1.6.0 Ant would include the DOM 
classes from
  +the XML parser that is used by Ant itself if you set the
  +includeAntRuntime attribute to true (the default).  With Ant
  +1.6.0 this has been changed as this behavior made it
  +impossible to use a different XML parser in your tests./p
  +pThis means that you have to take care of the DOM 
classes
  +explicitly starting with Ant 1.6.0.  If you don't need to set
  +up a different XML parser for your tests, the easiest solution
  +is to add/p
  +pre class=code
  +lt;pathelement 
path=quot;${ant.home}/lib/xml-apis.jar:${ant.home}/lib/xercesImpl.jarquot;/gt;
  +/pre
  +pto your task's lt;classpathgt;./p
   /div
 /div
   
  
  
  
  1.34  +11 -1 ant/docs/manual/OptionalTasks/junit.html
  
  Index: junit.html
  ===
  RCS file: /home/cvs/ant/docs/manual/OptionalTasks/junit.html,v
  retrieving revision 1.33
  retrieving revision 1.34
  diff -u -r1.33 -r1.34
  --- junit.html6 Apr 2004 14:09:25 -   1.33
  +++ junit.html20 Apr 2004 07:27:21 -  1.34
  @@ -132,7 +132,11 @@
 tr
   td valign=topincludeantruntime/td
   td valign=topImplicitly add the Ant classes required to run
  -  the tests and JUnit to the classpath in forked mode./td
  +  the tests and JUnit to the classpath in forked mode.
  +  bNote:/b Please read the a
  +  href=../../faq.html#junit-no-runtime-xmlAnt FAQ/a if you
  +  want to set this to codefalse/code and use the XML formatter
  +  at the same time./td
   td align=center valign=topNo; default is codetrue/code./td
 /tr
 tr
  @@ -290,6 +294,12 @@
   pIf you use the XML formatter, it may not include the same output
   that your tests have written as some characters are illegal in XML
   documents and will be dropped./p
  +
  +pbNote:/b Please read the a
  +href=../../faq.html#junit-no-runtime-xmlAnt FAQ/a if you want to
  +set the fork attribute to codetrue/code, the includeAntRuntime
  +attribute to codefalse/code and use the XML formatter at the same
  +time./p
   
   table border=1 cellpadding=2 cellspacing=0
   tr
  
  
  
  1.53  +34 -0 ant/xdocs/faq.xml
  
  Index: faq.xml
  ===
  RCS file: /home/cvs/ant/xdocs/faq.xml,v
  retrieving revision 1.52
  retrieving revision 1.53
  diff -u -r1.52 -r1.53
  --- faq.xml   14 Apr 2004 06:40:08 -  1.52
  +++ faq.xml   20 Apr 2004 07:27:21 -  1.53
  @@ -1435,6 +1435,40 @@
   trace./p
 /answer
   /faq
  +
  +faq id=junit-no-runtime-xml
  +  question
  +Using format=quot;xmlquot;, lt;junitgt; fails with a
  +codeNoClassDefFoundError/code if forked.
  +  /question
  +  answer
  +
  +pThe XML formatter needs the a
  +href=http://www.w3.org/DOM/;DOM classes/a to work.  If you
  +are using JDK 1.4 or later they are included with your Java
  +Runtime and this problem won't occur.  If you are running JDK
  +1.3 or 

cvs commit: ant/xdocs faq.xml

2004-04-20 Thread bodewig
bodewig 2004/04/20 00:29:36

  Modified:docs Tag: ANT_16_BRANCH faq.html
   docs/manual/OptionalTasks Tag: ANT_16_BRANCH junit.html
   xdocsTag: ANT_16_BRANCH faq.xml
  Log:
  merge
  
  Revision  ChangesPath
  No   revision
  No   revision
  1.77.2.12 +31 -0 ant/docs/faq.html
  
  Index: faq.html
  ===
  RCS file: /home/cvs/ant/docs/faq.html,v
  retrieving revision 1.77.2.11
  retrieving revision 1.77.2.12
  diff -u -r1.77.2.11 -r1.77.2.12
  --- faq.html  14 Apr 2004 14:46:05 -  1.77.2.11
  +++ faq.html  20 Apr 2004 07:29:35 -  1.77.2.12
  @@ -345,6 +345,12 @@
   can't seem to get the full stack trace.
 
 /a/li
  +lia href=#junit-no-runtime-xml
  +  
  +Using format=xml, lt;junitgt; fails with a
  +codeNoClassDefFoundError/code if forked.
  +  
  +  /a/li
   /ul
   
 h3 class=sectionAnswers/h3
  @@ -1619,6 +1625,31 @@
   pAs a workaround, run your lt;javagt; task with
   codefork=true/code and Ant will display the full
   trace./p
  +p class=faq
  +  a name=junit-no-runtime-xml/a
  +  
  +Using format=xml, lt;junitgt; fails with a
  +codeNoClassDefFoundError/code if forked.
  +  
  +/p
  +  pThe XML formatter needs the a 
href=http://www.w3.org/DOM/;DOM classes/a to work.  If you
  +are using JDK 1.4 or later they are included with your Java
  +Runtime and this problem won't occur.  If you are running JDK
  +1.3 or earlier, the DOM classes have to be on your
  +lt;junitgt; task's lt;classpathgt;./p
  +pPrior to Ant 1.6.0 Ant would include the DOM 
classes from
  +the XML parser that is used by Ant itself if you set the
  +includeAntRuntime attribute to true (the default).  With Ant
  +1.6.0 this has been changed as this behavior made it
  +impossible to use a different XML parser in your tests./p
  +pThis means that you have to take care of the DOM 
classes
  +explicitly starting with Ant 1.6.0.  If you don't need to set
  +up a different XML parser for your tests, the easiest solution
  +is to add/p
  +pre class=code
  +lt;pathelement 
path=quot;${ant.home}/lib/xml-apis.jar:${ant.home}/lib/xercesImpl.jarquot;/gt;
  +/pre
  +pto your task's lt;classpathgt;./p
   /div
 /div
   
  
  
  
  No   revision
  No   revision
  1.30.2.4  +11 -1 ant/docs/manual/OptionalTasks/junit.html
  
  Index: junit.html
  ===
  RCS file: /home/cvs/ant/docs/manual/OptionalTasks/junit.html,v
  retrieving revision 1.30.2.3
  retrieving revision 1.30.2.4
  diff -u -r1.30.2.3 -r1.30.2.4
  --- junit.html9 Feb 2004 22:12:11 -   1.30.2.3
  +++ junit.html20 Apr 2004 07:29:36 -  1.30.2.4
  @@ -133,7 +133,11 @@
 tr
   td valign=topincludeantruntime/td
   td valign=topImplicitly add the Ant classes required to run
  -  the tests and JUnit to the classpath in forked mode./td
  +  the tests and JUnit to the classpath in forked mode.
  +  bNote:/b Please read the a
  +  href=../../faq.html#junit-no-runtime-xmlAnt FAQ/a if you
  +  want to set this to codefalse/code and use the XML formatter
  +  at the same time./td
   td align=center valign=topNo; default is codetrue/code./td
 /tr
 tr
  @@ -282,6 +286,12 @@
   pIf you use the XML formatter, it may not include the same output
   that your tests have written as some characters are illegal in XML
   documents and will be dropped./p
  +
  +pbNote:/b Please read the a
  +href=../../faq.html#junit-no-runtime-xmlAnt FAQ/a if you want to
  +set the fork attribute to codetrue/code, the includeAntRuntime
  +attribute to codefalse/code and use the XML formatter at the same
  +time./p
   
   table border=1 cellpadding=2 cellspacing=0
   tr
  
  
  
  No   revision
  No   revision
  1.38.2.12 +34 -0 ant/xdocs/faq.xml
  
  Index: faq.xml
  ===
  RCS file: /home/cvs/ant/xdocs/faq.xml,v
  retrieving revision 1.38.2.11
  retrieving revision 1.38.2.12
  diff -u -r1.38.2.11 -r1.38.2.12
  --- faq.xml   14 Apr 2004 14:46:05 -  1.38.2.11
  +++ faq.xml   20 Apr 2004 07:29:36 -  1.38.2.12
  @@ -1435,6 +1435,40 @@
   trace./p
 /answer
   /faq
  +
  +faq id=junit-no-runtime-xml
  +  question
  +Using format=quot;xmlquot;, lt;junitgt; fails with a
  +codeNoClassDefFoundError/code if forked.
  +  /question
  +  answer
  +
 

cvs commit: ant/xdocs faq.xml

2004-03-15 Thread bodewig
bodewig 2004/03/15 03:23:48

  Modified:.WHATSNEW
   docs faq.html
   src/main/org/apache/tools/ant/taskdefs Java.java
   xdocsfaq.xml
  Log:
  Don't swallow the stack trace if a Java program throws an exception.
  
  Revision  ChangesPath
  1.572 +3 -0  ant/WHATSNEW
  
  Index: WHATSNEW
  ===
  RCS file: /home/cvs/ant/WHATSNEW,v
  retrieving revision 1.571
  retrieving revision 1.572
  diff -u -r1.571 -r1.572
  --- WHATSNEW  12 Mar 2004 09:00:30 -  1.571
  +++ WHATSNEW  15 Mar 2004 11:23:47 -  1.572
  @@ -84,6 +84,9 @@
   
   * NPE when running commons listener. Bugzilla Report 27373.
   
  +* java swallowed the stack trace of exceptions thrown by the
  +  executed program if run in the same VM.
  +
   Other changes:
   --
   
  
  
  
  1.95  +18 -0 ant/docs/faq.html
  
  Index: faq.html
  ===
  RCS file: /home/cvs/ant/docs/faq.html,v
  retrieving revision 1.94
  retrieving revision 1.95
  diff -u -r1.94 -r1.95
  --- faq.html  29 Feb 2004 08:43:54 -  1.94
  +++ faq.html  15 Mar 2004 11:23:48 -  1.95
  @@ -342,6 +342,12 @@
   - they worked in Ant 1.5?
 
 /a/li
  +lia href=#java.exception.stacktrace
  +  
  +The program I run via lt;javagt; throws an exception but I
  +can't seem to get the full stack trace.
  +  
  +  /a/li
   /ul
   
 h3 class=sectionAnswers/h3
  @@ -1593,6 +1599,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;javagt; throws an exception but I
  +can't seem to get the full stack trace.
  +  
  +/p
  +  pThis is a know bug that has been fixed after the 
release of
  +Ant 1.6.1./p
  +pAs a workaround, run your lt;javagt; task with
  +codefork=true/code and Ant will display the full
  +trace./p
   /div
 /div
   
  
  
  
  1.87  +14 -2 ant/src/main/org/apache/tools/ant/taskdefs/Java.java
  
  Index: Java.java
  ===
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/Java.java,v
  retrieving revision 1.86
  retrieving revision 1.87
  diff -u -r1.86 -r1.87
  --- Java.java 9 Mar 2004 16:48:05 -   1.86
  +++ Java.java 15 Mar 2004 11:23:48 -  1.87
  @@ -19,6 +19,8 @@
   
   import java.io.File;
   import java.io.IOException;
  +import java.io.PrintWriter;
  +import java.io.StringWriter;
   import java.util.Vector;
   import org.apache.tools.ant.BuildException;
   import org.apache.tools.ant.ExitException;
  @@ -169,14 +171,14 @@
   if (failOnError) {
   throw e;
   } else {
  -log(e.getMessage(), Project.MSG_ERR);
  +log(e);
   return 0;
   }
   } catch (Throwable t) {
   if (failOnError) {
   throw new BuildException(t);
   } else {
  -log(t.getMessage(), Project.MSG_ERR);
  +log(t);
   return 0;
   }
   }
  @@ -792,4 +794,14 @@
   return new ExecuteWatchdog(timeout.longValue());
   }
   
  +/**
  + * @since 1.6.2
  + */
  +private void log(Throwable t) {
  +StringWriter sw = new StringWriter();
  +PrintWriter w = new PrintWriter(sw);
  +t.printStackTrace(w);
  +w.close();
  +log(sw.toString(), Project.MSG_ERR);
  +}
   }
  
  
  
  1.51  +15 -0 ant/xdocs/faq.xml
  
  Index: faq.xml
  ===
  RCS file: /home/cvs/ant/xdocs/faq.xml,v
  retrieving revision 1.50
  retrieving revision 1.51
  diff -u -r1.50 -r1.51
  --- faq.xml   19 Feb 2004 12:45:03 -  1.50
  +++ faq.xml   15 Mar 2004 11:23:48 -  1.51
  @@ -1409,6 +1409,21 @@
   /p
 /answer
   /faq
  +
  +faq id=java.exception.stacktrace
  +  question
  +The program I run via lt;javagt; throws an exception but I
  +can't seem to get the full stack trace.
  +  /question
  +  answer
  +pThis is a know bug that has been fixed after the release of
  +Ant 1.6.1./p
  +
  +pAs a workaround, run your lt;javagt; task with
  +codefork=true/code and Ant will display the full
  +trace./p
  +  /answer
  +/faq
 /faqsection
   
   /document
  
  
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional 

cvs commit: ant/xdocs faq.xml

2004-02-19 Thread bodewig
bodewig 2004/02/19 04:45:03

  Modified:docs faq.html
   xdocsfaq.xml
  Log:
  typos
  
  Revision  ChangesPath
  1.93  +3 -3  ant/docs/faq.html
  
  Index: faq.html
  ===
  RCS file: /home/cvs/ant/docs/faq.html,v
  retrieving revision 1.92
  retrieving revision 1.93
  diff -u -r1.92 -r1.93
  --- faq.html  18 Feb 2004 16:01:14 -  1.92
  +++ faq.html  19 Feb 2004 12:45:03 -  1.93
  @@ -1557,7 +1557,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
  @@ -1570,11 +1570,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
  
  
  
  1.50  +3 -3  ant/xdocs/faq.xml
  
  Index: faq.xml
  ===
  RCS file: /home/cvs/ant/xdocs/faq.xml,v
  retrieving revision 1.49
  retrieving revision 1.50
  diff -u -r1.49 -r1.50
  --- faq.xml   18 Feb 2004 16:01:14 -  1.49
  +++ faq.xml   19 Feb 2004 12:45:03 -  1.50
  @@ -1371,7 +1371,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
  @@ -1384,11 +1384,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[
  
  
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



cvs commit: ant/xdocs faq.xml

2004-01-08 Thread peterreilly
peterreilly2004/01/08 09:01:27

  Modified:docs faq.html
   xdocsfaq.xml
  Log:
  Typeo in faq.xml
  Obtained from: Yuji Yamano
  
  Revision  ChangesPath
  1.90  +1 -1  ant/docs/faq.html
  
  Index: faq.html
  ===
  RCS file: /home/cvs/ant/docs/faq.html,v
  retrieving revision 1.89
  retrieving revision 1.90
  diff -u -r1.89 -r1.90
  --- faq.html  7 Jan 2004 07:27:59 -   1.89
  +++ faq.html  8 Jan 2004 17:01:27 -   1.90
  @@ -1166,7 +1166,7 @@
   ...
 lt;/targetgt;
   
  -  lt;import file=quot;../common.xmlquot;/gt;
  +  lt;import file=quot;./common.xmlquot;/gt;
   
 ...
   
  
  
  
  1.46  +2 -2  ant/xdocs/faq.xml
  
  Index: faq.xml
  ===
  RCS file: /home/cvs/ant/xdocs/faq.xml,v
  retrieving revision 1.45
  retrieving revision 1.46
  diff -u -r1.45 -r1.46
  --- faq.xml   18 Dec 2003 21:47:05 -  1.45
  +++ faq.xml   8 Jan 2004 17:01:27 -   1.46
  @@ -901,7 +901,7 @@
   ...
 /target
   
  -  import file=../common.xml/
  +  import file=./common.xml/
   
 ...
   
  @@ -1341,4 +1341,4 @@
   
 /faqsection
   
  -/document
  \ No newline at end of file
  +/document
  
  
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



cvs commit: ant/xdocs faq.xml

2003-10-13 Thread bodewig
bodewig 2003/10/13 06:18:08

  Modified:docs faq.html
   xdocsfaq.xml
  Log:
  Mention import in the FAQ
  
  Revision  ChangesPath
  1.81  +22 -0 ant/docs/faq.html
  
  Index: faq.html
  ===
  RCS file: /home/cvs/ant/docs/faq.html,v
  retrieving revision 1.80
  retrieving revision 1.81
  diff -u -r1.80 -r1.81
  --- faq.html  12 Oct 2003 19:39:52 -  1.80
  +++ faq.html  13 Oct 2003 13:18:08 -  1.81
  @@ -1109,6 +1109,28 @@
  lt;!ENTITY include SYSTEM quot;file:./header.xmlquot;gt;
   ]gt;
   /pre
  +pStarting with Ant 1.6, there is a new
  +codelt;importgt;/code task that can (also) be used to
  +include build file fragments.  Unlike the snippets used with
  +entity includes, the referenced files have to be complete Ant
  +build files, though./p
  +pThe example above would become:/p
  +pre class=code
  +lt;?xml version=quot;1.0quot;?gt;
  +lt;project name=quot;testquot; default=quot;testquot; 
basedir=quot;.quot;gt;
  +
  +  lt;target name=quot;setupquot;gt;
  +...
  +  lt;/targetgt;
  +
  +  lt;import file=quot;../common.xmlquot;/gt;
  +
  +  ...
  +
  +lt;/projectgt;
  +/pre
  +pUnlike entity includes, 
codelt;importgt;/code will
  +let you use Ant properties in the file name./p
   p class=faq
 a name=mail-logger/a
 How do I send an email with the result of my build
  
  
  
  1.40  +25 -0 ant/xdocs/faq.xml
  
  Index: faq.xml
  ===
  RCS file: /home/cvs/ant/xdocs/faq.xml,v
  retrieving revision 1.39
  retrieving revision 1.40
  diff -u -r1.39 -r1.40
  --- faq.xml   7 Oct 2003 14:28:25 -   1.39
  +++ faq.xml   13 Oct 2003 13:18:08 -  1.40
  @@ -845,6 +845,31 @@
  !ENTITY include SYSTEM file:./header.xml
   ]
   ]]/source
  +
  +pStarting with Ant 1.6, there is a new
  +codelt;importgt;/code task that can (also) be used to
  +include build file fragments.  Unlike the snippets used with
  +entity includes, the referenced files have to be complete Ant
  +build files, though./p
  +
  +pThe example above would become:/p
  +source![CDATA[
  +?xml version=1.0?
  +project name=test default=test basedir=.
  +
  +  target name=setup
  +...
  +  /target
  +
  +  import file=../common.xml/
  +
  +  ...
  +
  +/project
  +]]/source
  +
  +pUnlike entity includes, codelt;importgt;/code will
  +let you use Ant properties in the file name./p
 /answer
   /faq
   
  
  
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



cvs commit: ant/xdocs faq.xml

2003-10-13 Thread bodewig
bodewig 2003/10/13 06:20:01

  Modified:docs Tag: ANT_16_BRANCH faq.html
   xdocsTag: ANT_16_BRANCH faq.xml
  Log:
  Merge from HEAD
  
  Revision  ChangesPath
  No   revision
  No   revision
  1.77.2.2  +22 -0 ant/docs/faq.html
  
  Index: faq.html
  ===
  RCS file: /home/cvs/ant/docs/faq.html,v
  retrieving revision 1.77.2.1
  retrieving revision 1.77.2.2
  diff -u -r1.77.2.1 -r1.77.2.2
  --- faq.html  7 Oct 2003 14:29:30 -   1.77.2.1
  +++ faq.html  13 Oct 2003 13:20:01 -  1.77.2.2
  @@ -1103,6 +1103,28 @@
  lt;!ENTITY include SYSTEM quot;file:./header.xmlquot;gt;
   ]gt;
   /pre
  +pStarting with Ant 1.6, there is a new
  +codelt;importgt;/code task that can (also) be used to
  +include build file fragments.  Unlike the snippets used with
  +entity includes, the referenced files have to be complete Ant
  +build files, though./p
  +pThe example above would become:/p
  +pre class=code
  +lt;?xml version=quot;1.0quot;?gt;
  +lt;project name=quot;testquot; default=quot;testquot; 
basedir=quot;.quot;gt;
  +
  +  lt;target name=quot;setupquot;gt;
  +...
  +  lt;/targetgt;
  +
  +  lt;import file=quot;../common.xmlquot;/gt;
  +
  +  ...
  +
  +lt;/projectgt;
  +/pre
  +pUnlike entity includes, 
codelt;importgt;/code will
  +let you use Ant properties in the file name./p
   p class=faq
 a name=mail-logger/a
 How do I send an email with the result of my build
  
  
  
  No   revision
  No   revision
  1.38.2.2  +25 -0 ant/xdocs/faq.xml
  
  Index: faq.xml
  ===
  RCS file: /home/cvs/ant/xdocs/faq.xml,v
  retrieving revision 1.38.2.1
  retrieving revision 1.38.2.2
  diff -u -r1.38.2.1 -r1.38.2.2
  --- faq.xml   7 Oct 2003 14:29:30 -   1.38.2.1
  +++ faq.xml   13 Oct 2003 13:20:01 -  1.38.2.2
  @@ -845,6 +845,31 @@
  !ENTITY include SYSTEM file:./header.xml
   ]
   ]]/source
  +
  +pStarting with Ant 1.6, there is a new
  +codelt;importgt;/code task that can (also) be used to
  +include build file fragments.  Unlike the snippets used with
  +entity includes, the referenced files have to be complete Ant
  +build files, though./p
  +
  +pThe example above would become:/p
  +source![CDATA[
  +?xml version=1.0?
  +project name=test default=test basedir=.
  +
  +  target name=setup
  +...
  +  /target
  +
  +  import file=../common.xml/
  +
  +  ...
  +
  +/project
  +]]/source
  +
  +pUnlike entity includes, codelt;importgt;/code will
  +let you use Ant properties in the file name./p
 /answer
   /faq
   
  
  
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



cvs commit: ant/xdocs faq.xml

2003-10-13 Thread bodewig
bodewig 2003/10/13 06:42:16

  Modified:docs faq.html
   xdocsfaq.xml
  Log:
  Answered that jar M question once too often
  
  Revision  ChangesPath
  1.82  +17 -0 ant/docs/faq.html
  
  Index: faq.html
  ===
  RCS file: /home/cvs/ant/docs/faq.html,v
  retrieving revision 1.81
  retrieving revision 1.82
  diff -u -r1.81 -r1.82
  --- faq.html  13 Oct 2003 13:18:08 -  1.81
  +++ faq.html  13 Oct 2003 13:42:16 -  1.82
  @@ -239,6 +239,10 @@
 How can I include national characters like German
   umlauts in my build file?
 /a/li
  +lia href=#encoding
  +  How do I use codejar/code's codeM/code switch?
  +  I don't want a MANIFEST.
  +  /a/li
   /ul
   h4 class=tocIt doesn't work (as expected)/h4
   ul
  @@ -852,6 +856,19 @@
   pre class=code
   lt;?xml version=quot;1.0quot; encoding=quot;ISO-8859-1quot; ?gt;
   /pre
  +p class=faq
  +  a name=encoding/a
  +  How do I use codejar/code's codeM/code switch?
  +  I don't want a MANIFEST.
  +/p
  +  pA JAR archive is a ZIP file, so if you don't want a
  +MANIFEST you can simply use codelt;zipgt;/code./p
  +pIf your filenames contain national characters you 
should
  +know that Sun's codejar/code utility like Ant's
  +codelt;jargt;/code uses UFT8 to encode their names while
  +codelt;zipgt;/code uses your platforms default encoding.
  +Use the encoding attribute of codelt;zipgt;/code if
  +necessary./p
   p class=faq
 a name=always-recompiles/a
 Why does Ant always recompile all my Java files?
  
  
  
  1.41  +23 -6 ant/xdocs/faq.xml
  
  Index: faq.xml
  ===
  RCS file: /home/cvs/ant/xdocs/faq.xml,v
  retrieving revision 1.40
  retrieving revision 1.41
  diff -u -r1.40 -r1.41
  --- faq.xml   13 Oct 2003 13:18:08 -  1.40
  +++ faq.xml   13 Oct 2003 13:42:16 -  1.41
  @@ -199,7 +199,7 @@
   
 faqsection title=How do I ...
   faq id=adding-external-tasks
  -  questionHow do I add an external task that I've written to the
  +  questionHow do I add an external task that Iapos;ve written to the
 page quot;External Tools and Taskquot;?/question
 answer
   
  @@ -215,7 +215,7 @@
 lia URL: entry linking to the main page of the tool/task/li
 lia Contact: entry containing the email address or the URL
 of a webpage for the person or list to contact for issues
  -  related to the tool/task.  strongNote that we'll add a
  +  related to the tool/task.  strongNote that weapos;ll add a
 link on the page, so any email address added there is not
 obfuscated and can (and probably will) be abused by robots
 harvesting websites for addresses to spam./strong/li
  @@ -513,7 +513,7 @@
   declaration/a./p  
   
   pBy default the parser assumes you are using the UTF-8
  -encoding instead of your platform's default.  For most Western
  +encoding instead of your platformapos;s default.  For most Western
   European countries you should set the encoding to
   codeISO-8859-1/code.  To do so, make the very first line
   of you build file read like/p
  @@ -523,6 +523,23 @@
   ]]/source
 /answer
   /faq
  +
  +faq if=use-zip-instead-of-jar
  +  questionHow do I use codejar/codeapos;s codeM/code switch?
  +  I donapos;t want a MANIFEST./question
  +
  +  answer
  +pA JAR archive is a ZIP file, so if you donapos;t want a
  +MANIFEST you can simply use codelt;zipgt;/code./p
  +
  +pIf your filenames contain national characters you should
  +know that Sunapos;s codejar/code utility like Antapos;s
  +codelt;jargt;/code uses UFT8 to encode their names while
  +codelt;zipgt;/code uses your platforms default encoding.
  +Use the encoding attribute of codelt;zipgt;/code if
  +necessary./p
  +  /answer
  +/faq
 /faqsection
   
 faqsection title=It doesnapos;t work (as expected)
  @@ -662,12 +679,12 @@
 answer
   
   pWhen codeant/code loads properties from an external
  -file it dosn't touch the value of properties, trailing blanks
  +file it dosnapos;t touch the value of properties, trailing blanks
   will not be trimmed for example./p
   
   pIf the value represents a file path, like a jar needed to
   compile, the task which requires the value, javac for example
  -would fail to compile since it can't find the file due to
  +would fail to compile since it canapos;t find the file 

cvs commit: ant/xdocs faq.xml

2003-10-13 Thread bodewig
bodewig 2003/10/13 06:42:54

  Modified:docs Tag: ANT_16_BRANCH faq.html
   xdocsTag: ANT_16_BRANCH faq.xml
  Log:
  Merge from HEAD
  
  Revision  ChangesPath
  No   revision
  No   revision
  1.77.2.3  +17 -0 ant/docs/faq.html
  
  Index: faq.html
  ===
  RCS file: /home/cvs/ant/docs/faq.html,v
  retrieving revision 1.77.2.2
  retrieving revision 1.77.2.3
  diff -u -r1.77.2.2 -r1.77.2.3
  --- faq.html  13 Oct 2003 13:20:01 -  1.77.2.2
  +++ faq.html  13 Oct 2003 13:42:53 -  1.77.2.3
  @@ -233,6 +233,10 @@
 How can I include national characters like German
   umlauts in my build file?
 /a/li
  +lia href=#encoding
  +  How do I use codejar/code's codeM/code switch?
  +  I don't want a MANIFEST.
  +  /a/li
   /ul
   h4 class=tocIt doesn't work (as expected)/h4
   ul
  @@ -846,6 +850,19 @@
   pre class=code
   lt;?xml version=quot;1.0quot; encoding=quot;ISO-8859-1quot; ?gt;
   /pre
  +p class=faq
  +  a name=encoding/a
  +  How do I use codejar/code's codeM/code switch?
  +  I don't want a MANIFEST.
  +/p
  +  pA JAR archive is a ZIP file, so if you don't want a
  +MANIFEST you can simply use codelt;zipgt;/code./p
  +pIf your filenames contain national characters you 
should
  +know that Sun's codejar/code utility like Ant's
  +codelt;jargt;/code uses UFT8 to encode their names while
  +codelt;zipgt;/code uses your platforms default encoding.
  +Use the encoding attribute of codelt;zipgt;/code if
  +necessary./p
   p class=faq
 a name=always-recompiles/a
 Why does Ant always recompile all my Java files?
  
  
  
  No   revision
  No   revision
  1.38.2.3  +23 -6 ant/xdocs/faq.xml
  
  Index: faq.xml
  ===
  RCS file: /home/cvs/ant/xdocs/faq.xml,v
  retrieving revision 1.38.2.2
  retrieving revision 1.38.2.3
  diff -u -r1.38.2.2 -r1.38.2.3
  --- faq.xml   13 Oct 2003 13:20:01 -  1.38.2.2
  +++ faq.xml   13 Oct 2003 13:42:54 -  1.38.2.3
  @@ -199,7 +199,7 @@
   
 faqsection title=How do I ...
   faq id=adding-external-tasks
  -  questionHow do I add an external task that I've written to the
  +  questionHow do I add an external task that Iapos;ve written to the
 page quot;External Tools and Taskquot;?/question
 answer
   
  @@ -215,7 +215,7 @@
 lia URL: entry linking to the main page of the tool/task/li
 lia Contact: entry containing the email address or the URL
 of a webpage for the person or list to contact for issues
  -  related to the tool/task.  strongNote that we'll add a
  +  related to the tool/task.  strongNote that weapos;ll add a
 link on the page, so any email address added there is not
 obfuscated and can (and probably will) be abused by robots
 harvesting websites for addresses to spam./strong/li
  @@ -513,7 +513,7 @@
   declaration/a./p  
   
   pBy default the parser assumes you are using the UTF-8
  -encoding instead of your platform's default.  For most Western
  +encoding instead of your platformapos;s default.  For most Western
   European countries you should set the encoding to
   codeISO-8859-1/code.  To do so, make the very first line
   of you build file read like/p
  @@ -523,6 +523,23 @@
   ]]/source
 /answer
   /faq
  +
  +faq if=use-zip-instead-of-jar
  +  questionHow do I use codejar/codeapos;s codeM/code switch?
  +  I donapos;t want a MANIFEST./question
  +
  +  answer
  +pA JAR archive is a ZIP file, so if you donapos;t want a
  +MANIFEST you can simply use codelt;zipgt;/code./p
  +
  +pIf your filenames contain national characters you should
  +know that Sunapos;s codejar/code utility like Antapos;s
  +codelt;jargt;/code uses UFT8 to encode their names while
  +codelt;zipgt;/code uses your platforms default encoding.
  +Use the encoding attribute of codelt;zipgt;/code if
  +necessary./p
  +  /answer
  +/faq
 /faqsection
   
 faqsection title=It doesnapos;t work (as expected)
  @@ -662,12 +679,12 @@
 answer
   
   pWhen codeant/code loads properties from an external
  -file it dosn't touch the value of properties, trailing blanks
  +file it dosnapos;t touch the value of properties, trailing blanks
   will not be trimmed for example./p
   
   pIf the value represents a file path, like a jar needed to
   compile, 

cvs commit: ant/xdocs faq.xml

2003-10-13 Thread bodewig
bodewig 2003/10/13 06:45:47

  Modified:docs Tag: ANT_16_BRANCH faq.html
   xdocsTag: ANT_16_BRANCH faq.xml
  Log:
  Merge from HEAD
  
  Revision  ChangesPath
  No   revision
  No   revision
  1.77.2.4  +3 -3  ant/docs/faq.html
  
  Index: faq.html
  ===
  RCS file: /home/cvs/ant/docs/faq.html,v
  retrieving revision 1.77.2.3
  retrieving revision 1.77.2.4
  diff -u -r1.77.2.3 -r1.77.2.4
  --- faq.html  13 Oct 2003 13:42:53 -  1.77.2.3
  +++ faq.html  13 Oct 2003 13:45:47 -  1.77.2.4
  @@ -233,7 +233,7 @@
 How can I include national characters like German
   umlauts in my build file?
 /a/li
  -lia href=#encoding
  +lia href=#use-zip-instead-of-jar
 How do I use codejar/code's codeM/code switch?
 I don't want a MANIFEST.
 /a/li
  @@ -851,13 +851,13 @@
   lt;?xml version=quot;1.0quot; encoding=quot;ISO-8859-1quot; ?gt;
   /pre
   p class=faq
  -  a name=encoding/a
  +  a name=use-zip-instead-of-jar/a
 How do I use codejar/code's codeM/code switch?
 I don't want a MANIFEST.
   /p
 pA JAR archive is a ZIP file, so if you don't want a
   MANIFEST you can simply use codelt;zipgt;/code./p
  -pIf your filenames contain national characters you 
should
  +pIf your file names contain national characters 
you should
   know that Sun's codejar/code utility like Ant's
   codelt;jargt;/code uses UFT8 to encode their names while
   codelt;zipgt;/code uses your platforms default encoding.
  
  
  
  No   revision
  No   revision
  1.38.2.4  +2 -2  ant/xdocs/faq.xml
  
  Index: faq.xml
  ===
  RCS file: /home/cvs/ant/xdocs/faq.xml,v
  retrieving revision 1.38.2.3
  retrieving revision 1.38.2.4
  diff -u -r1.38.2.3 -r1.38.2.4
  --- faq.xml   13 Oct 2003 13:42:54 -  1.38.2.3
  +++ faq.xml   13 Oct 2003 13:45:47 -  1.38.2.4
  @@ -524,7 +524,7 @@
 /answer
   /faq
   
  -faq if=use-zip-instead-of-jar
  +faq id=use-zip-instead-of-jar
 questionHow do I use codejar/codeapos;s codeM/code switch?
 I donapos;t want a MANIFEST./question
   
  @@ -532,7 +532,7 @@
   pA JAR archive is a ZIP file, so if you donapos;t want a
   MANIFEST you can simply use codelt;zipgt;/code./p
   
  -pIf your filenames contain national characters you should
  +pIf your file names contain national characters you should
   know that Sunapos;s codejar/code utility like Antapos;s
   codelt;jargt;/code uses UFT8 to encode their names while
   codelt;zipgt;/code uses your platforms default encoding.
  
  
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



cvs commit: ant/xdocs faq.xml

2003-10-07 Thread bodewig
bodewig 2003/10/07 07:29:30

  Modified:docs Tag: ANT_16_BRANCH faq.html
   xdocsTag: ANT_16_BRANCH faq.xml
  Log:
  Update the delegating-classloader FAQ
  
  Revision  ChangesPath
  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 -  1.77
  +++ faq.html  7 Oct 2003 14:29:30 -   1.77.2.1
  @@ -1315,6 +1315,10 @@
   codeCLASSPATH/code environment variable or
   codeANT_HOME/lib/code for the rest of this
   answer./p
  +pTechnically 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, codeCLASSPATH/code and
  +codeANT_HOME/lib/code are identical./p
   pThis 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 @@
 liremove the class that loads the external library from
 the codeCLASSPATH/code./li
   /ol
  +pstrongUsing The Second Option with Ant 1.5.4 and
  +Earlier:/strong/p
   pThe easiest way to do this is to remove
   codeoptional.jar/code from codeANT_HOME/lib/code.  If
   you do so, you will have to codelt;taskdefgt;/code all
  @@ -1393,8 +1399,20 @@
   directory, in the codelt;stylegt;/code case it is one of
   the code*Liaison/code classes in
   codeorg/apache/tools/ant/taskdefs/optional/code./p
  +pstrongUsing The Second Option with Ant 1.6 and
  +later:/strong/p
  +pIn Ant 1.6 codeoptional.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
  +codelt;junitgt;/code task it would be
  +codeant-junit.jar/code and for codelt;stylegt;/code
  +it would be codeant-trax.jar/code,
  +codeant-xalan1.jar/code or codeant-xslp.jar/code -
  +depending on the processor you use./p
   pIf you use the option to break up 
codeoptional.jar/code
  -for codelt;junitgt;/code, you still have to use a
  +for codelt;junitgt;/code or remove
  +codeant-junit.jar/code, you still have to use a
   codelt;taskdefgt;/code with a nested
   codelt;classpathgt;/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 -  1.38
  +++ faq.xml   7 Oct 2003 14:29:30 -   1.38.2.1
  @@ -1090,6 +1090,11 @@
   codeANT_HOME/lib/codequot; for the rest of this
   answer./p
   
  +pTechnically the sentence above isnapos;t true for Ant 1.6
  +and later anymore, but the result is the same.  For the sake
  +of this discussion, codeCLASSPATH/code and
  +codeANT_HOME/lib/code are identical./p
  +
   pThis 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 codeCLASSPATH/code./li
   /ol
   
  +pstrongUsing The Second Option with Ant 1.5.4 and
  +Earlier:/strong/p
  +
   pThe easiest way to do this is to remove
   codeoptional.jar/code from codeANT_HOME/lib/code.  If
   you do so, you will have to codelt;taskdefgt;/code all
  @@ -1183,8 +1191,22 @@
   the code*Liaison/code classes in
   codeorg/apache/tools/ant/taskdefs/optional/code./p
   
  +pstrongUsing The Second Option with Ant 1.6 and
  +later:/strong/p
  +
  +pIn Ant 1.6 codeoptional.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
  +codelt;junitgt;/code task it would be
  +codeant-junit.jar/code and for codelt;stylegt;/code
  +it would be codeant-trax.jar/code,
  +

cvs commit: ant/xdocs faq.xml

2003-08-20 Thread antoine
antoine 2003/08/20 09:07:48

  Modified:docs faq.html
   xdocsfaq.xml
  Log:
  Added information about how to configure Winzip to see better what is
  in a war file
  Submitted by: Neil Pitman (neil dot pitman at sympatico dot ca)
  
  Revision  ChangesPath
  1.77  +4 -0  ant/docs/faq.html
  
  Index: faq.html
  ===
  RCS file: /home/cvs/ant/docs/faq.html,v
  retrieving revision 1.76
  retrieving revision 1.77
  diff -u -r1.76 -r1.77
  --- faq.html  14 Aug 2003 16:16:20 -  1.76
  +++ faq.html  20 Aug 2003 16:07:48 -  1.77
  @@ -974,6 +974,10 @@
   all lower-case for you./p
   pIf you extract (or just check) the archive with 
jar, you
   will see that the names have the correct case./p
  +pWith WinZIP (version 8.1 at least), this can be 
corrected in the
  +configuration.  In the Options/Configuration menu, in the View tab, 
General
  +section, check the Allow all upper case files names box.  The 
META-INF and
  +WEB-INF will look correct./p
   p class=faq
 a name=integration/a
 Is Ant supported by my IDE/Editor?
  
  
  
  1.38  +5 -0  ant/xdocs/faq.xml
  
  Index: faq.xml
  ===
  RCS file: /home/cvs/ant/xdocs/faq.xml,v
  retrieving revision 1.37
  retrieving revision 1.38
  diff -u -r1.37 -r1.38
  --- faq.xml   14 Aug 2003 16:16:21 -  1.37
  +++ faq.xml   20 Aug 2003 16:07:48 -  1.38
  @@ -688,6 +688,11 @@
   
   pIf you extract (or just check) the archive with jar, you
   will see that the names have the correct case./p
  +
  +pWith WinZIP (version 8.1 at least), this can be corrected in the
  +configuration.  In the Options/Configuration menu, in the View tab, 
General
  +section, check the Allow all upper case files names box.  The 
META-INF and
  +WEB-INF will look correct./p
 /answer
   /faq
 /faqsection
  
  
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



cvs commit: ant/xdocs faq.xml

2003-08-14 Thread bodewig
bodewig 2003/08/14 09:16:21

  Modified:docs faq.html
   xdocsfaq.xml
  Log:
  Avoid useless use of cat award by using a real world example.
  
  Revision  ChangesPath
  1.76  +10 -9 ant/docs/faq.html
  
  Index: faq.html
  ===
  RCS file: /home/cvs/ant/docs/faq.html,v
  retrieving revision 1.75
  retrieving revision 1.76
  diff -u -r1.75 -r1.76
  --- faq.html  13 Aug 2003 06:11:58 -  1.75
  +++ faq.html  14 Aug 2003 16:16:20 -  1.76
  @@ -673,26 +673,27 @@
 How do I redirect standard input or standard output
   in the codelt;execgt;/code task?
   /p
  -  pSay you want to redirect the standard input stream of 
the
  -codecat/code command to read from a file, something
  +  pSay you want to redirect the standard output stream of 
the
  +codem4/code command to write to a file, something
   like:/p
   pre class=code
  -shell-promptgt; cat lt; foo
  +shell-promptgt; m4 foo.m4 gt; foo
   /pre
   pand try to translate it into/p
   pre class=code
  -lt;exec executable=quot;catquot;gt;
  -  lt;arg value=quot;amp;lt;quot; /gt;
  -  lt;arg value=quot;fooquot; /gt;
  +lt;exec executable=quot;m4quot;gt;
  +  lt;arg value=quot;foo.m4quot;/gt;
  +  lt;arg value=quot;amp;gt;quot;/gt;
  +  lt;arg value=quot;fooquot;/gt;
   lt;/execgt;
   /pre
  -pThis will not do what you expect.  The input 
redirection is
  +pThis will not do what you expect.  The output 
redirection is
   performed by your shell, not the command itself, so this
   should read:/p
   pre class=code
   lt;exec executable=quot;/bin/shquot;gt;
 lt;arg value=quot;-cquot; /gt;
  -  lt;arg value=quot;cat amp;lt; fooquot; /gt;
  +  lt;arg value=quot;m4 foo.m4 amp;gt; fooquot; /gt;
   lt;/execgt;
   /pre
   pNote that you must use the codevalue/code 
attribute of
  @@ -701,7 +702,7 @@
   you can use:/p
   pre class=code
   lt;exec executable=quot;/bin/shquot;gt;
  -  lt;arg line='-c quot;cat amp;lt; fooquot;'/gt;
  +  lt;arg line='-c quot;m4 foo.m4 amp;gt; fooquot;'/gt;
   lt;/execgt;
   /pre
   pNote the double-quotes nested inside the 
single-quotes./p
  
  
  
  1.37  +10 -9 ant/xdocs/faq.xml
  
  Index: faq.xml
  ===
  RCS file: /home/cvs/ant/xdocs/faq.xml,v
  retrieving revision 1.36
  retrieving revision 1.37
  diff -u -r1.36 -r1.37
  --- faq.xml   13 Aug 2003 06:11:58 -  1.36
  +++ faq.xml   14 Aug 2003 16:16:21 -  1.37
  @@ -313,31 +313,32 @@
 questionHow do I redirect standard input or standard output
   in the codelt;execgt;/code task?/question
 answer
  -pSay you want to redirect the standard input stream of the
  -codecat/code command to read from a file, something
  +pSay you want to redirect the standard output stream of the
  +codem4/code command to write to a file, something
   like:/p
   
   source![CDATA[
  -shell-prompt cat  foo
  +shell-prompt m4 foo.m4  foo
   ]]/source
   
   pand try to translate it into/p
   
   source![CDATA[
  -exec executable=cat
  -  arg value=lt; /
  -  arg value=foo /
  +exec executable=m4
  +  arg value=foo.m4/
  +  arg value=gt;/
  +  arg value=foo/
   /exec
   ]]/source
   
  -pThis will not do what you expect.  The input redirection is
  +pThis will not do what you expect.  The output redirection is
   performed by your shell, not the command itself, so this
   should read:/p
   
   source![CDATA[
   exec executable=/bin/sh
 arg value=-c /
  -  arg value=cat lt; foo /
  +  arg value=m4 foo.m4 gt; foo /
   /exec
   ]]/source
   
  @@ -347,7 +348,7 @@
   you can use:/p
   source![CDATA[
   exec executable=/bin/sh
  -  arg line='-c cat lt; foo'/
  +  arg line='-c m4 foo.m4 gt; foo'/
   /exec
   ]]/source
   
  
  
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



cvs commit: ant/xdocs faq.xml

2003-04-14 Thread umagesh
umagesh 2003/04/14 12:28:14

  Modified:docs faq.html
   xdocsfaq.xml
  Log:
  Update Release history.
  
  Revision  ChangesPath
  1.69  +10 -0 ant/docs/faq.html
  
  Index: faq.html
  ===
  RCS file: /home/cvs/ant/docs/faq.html,v
  retrieving revision 1.68
  retrieving revision 1.69
  diff -u -r1.68 -r1.69
  --- faq.html  9 Apr 2003 01:44:48 -   1.68
  +++ faq.html  14 Apr 2003 19:28:12 -  1.69
  @@ -496,6 +496,16 @@
 3 March 2003
 /td
 /tr
  +  tr
  +  td colspan=1 rowspan=1
  +  valign=top align=left
  +  1.5.3
  +  /td
  +  td colspan=1 rowspan=1
  +  valign=top align=left
  +  9 April 2003
  +  /td
  +  /tr
   /table
   p class=faq
 a name=no-gnu-tar/a
  
  
  
  1.35  +5 -0  ant/xdocs/faq.xml
  
  Index: faq.xml
  ===
  RCS file: /home/cvs/ant/xdocs/faq.xml,v
  retrieving revision 1.34
  retrieving revision 1.35
  diff -u -r1.34 -r1.35
  --- faq.xml   8 Apr 2003 13:04:24 -   1.34
  +++ faq.xml   14 Apr 2003 19:28:14 -  1.35
  @@ -156,6 +156,11 @@
   td1.5.2/td
   td3 March 2003/td
 /tr
  +
  +  tr
  +td1.5.3/td
  +td9 April 2003/td
  +  /tr
   /table
 /answer
   /faq
  
  
  


cvs commit: ant/xdocs faq.xml

2003-04-08 Thread bodewig
bodewig 2003/04/08 06:04:24

  Modified:docs faq.html
   xdocsfaq.xml
  Log:
  FAQ about the broken zip task in 1.5.2
  
  Revision  ChangesPath
  1.67  +19 -1 ant/docs/faq.html
  
  Index: faq.html
  ===
  RCS file: /home/cvs/ant/docs/faq.html,v
  retrieving revision 1.66
  retrieving revision 1.67
  diff -u -r1.66 -r1.67
  --- faq.html  4 Apr 2003 04:21:02 -   1.66
  +++ faq.html  8 Apr 2003 13:04:23 -   1.67
  @@ -318,6 +318,9 @@
 for Cygwin if codeANT_HOME/code is set to a Windows style
 path.
 /a/li
  +lia href=#1.5.2-zip-broken
  +  codelt;zipgt;/code is broken in Ant 1.5.2.
  +  /a/li
   /ul
   
 h3 class=sectionAnswers/h3
  @@ -1389,9 +1392,24 @@
   /p
 pThis problem has been reported only hours after Ant 1.5 
has
   been released, see a 
href=http://issues.apache.org/bugzilla/show_bug.cgi?id=10664;Bug
  -10664/a and all it's duplicates./p
  +10664/a and all its duplicates./p
   pA fixed version of the wrapper script can be 
found a href=http://ant.apache.org/old-releases/v1.5/errata/;here/a.
   Simply replace your script with this version./p
  +p class=faq
  +  a name=1.5.2-zip-broken/a
  +  codelt;zipgt;/code is broken in Ant 1.5.2.
  +/p
  +  pYes, it is./p
  +pThe problem reported by most people - see a 
href=http://issues.apache.org/bugzilla/show_bug.cgi?id=17648;Bug
  +17648/a and all its duplicates - is that Ant creates
  +archives that a partially unreadable by WinZIP.  Luckily
  +codejar/code deals with the archives and so the generated
  +jars/wars/ears will most likely work for you anyway./p
  +pThere are additional problems, see bugs a 
href=http://issues.apache.org/bugzilla/show_bug.cgi?id=17780;Bug
  +17780/a, a 
href=http://issues.apache.org/bugzilla/show_bug.cgi?id=17871;Bug
  +17871/a and a 
href=http://issues.apache.org/bugzilla/show_bug.cgi?id=18403;Bug
  +18403/a.  All of them are supposed to be fixed with Ant
  +1.5.3 (and only 18403 should exist in 1.5.3beta1)./p
   /div
   
   p class=copyright
  
  
  
  1.34  +26 -1 ant/xdocs/faq.xml
  
  Index: faq.xml
  ===
  RCS file: /home/cvs/ant/xdocs/faq.xml,v
  retrieving revision 1.33
  retrieving revision 1.34
  diff -u -r1.33 -r1.34
  --- faq.xml   3 Mar 2003 15:24:14 -   1.33
  +++ faq.xml   8 Apr 2003 13:04:24 -   1.34
  @@ -1204,13 +1204,38 @@
   pThis problem has been reported only hours after Ant 1.5 has
   been released, see a
   href=http://issues.apache.org/bugzilla/show_bug.cgi?id=10664;Bug
  -10664/a and all it's duplicates./p
  +10664/a and all its duplicates./p
   
   pA fixed version of the wrapper script can be found a
   href=http://ant.apache.org/old-releases/v1.5/errata/;here/a.
   Simply replace your script with this version./p
 /answer
   /faq
  +
  +faq id=1.5.2-zip-broken
  +  questioncodelt;zipgt;/code is broken in Ant 1.5.2./question
  +  answer
  +
  +pYes, it is./p
  +
  +pThe problem reported by most people - see a
  +href=http://issues.apache.org/bugzilla/show_bug.cgi?id=17648;Bug
  +17648/a and all its duplicates - is that Ant creates
  +archives that a partially unreadable by WinZIP.  Luckily
  +codejar/code deals with the archives and so the generated
  +jars/wars/ears will most likely work for you anyway./p
  +
  +pThere are additional problems, see bugs a
  +href=http://issues.apache.org/bugzilla/show_bug.cgi?id=17780;Bug
  +17780/a, a
  +href=http://issues.apache.org/bugzilla/show_bug.cgi?id=17871;Bug
  +17871/a and a
  +href=http://issues.apache.org/bugzilla/show_bug.cgi?id=18403;Bug
  +18403/a.  All of them are supposed to be fixed with Ant
  +1.5.3 (and only 18403 should exist in 1.5.3beta1)./p
  +  /answer
  +/faq
  +
 /faqsection
   
   /document
  
  
  


cvs commit: ant/xdocs faq.xml

2003-04-08 Thread bodewig
bodewig 2003/04/08 06:05:06

  Modified:docs Tag: ANT_15_BRANCH faq.html
   xdocsTag: ANT_15_BRANCH faq.xml
  Log:
  sync with HEAD
  
  Revision  ChangesPath
  No   revision
  
  
  No   revision
  
  
  1.30.2.9  +26 -1 ant/docs/faq.html
  
  Index: faq.html
  ===
  RCS file: /home/cvs/ant/docs/faq.html,v
  retrieving revision 1.30.2.8
  retrieving revision 1.30.2.9
  diff -u -r1.30.2.8 -r1.30.2.9
  --- faq.html  7 Mar 2003 12:36:18 -   1.30.2.8
  +++ faq.html  8 Apr 2003 13:05:06 -   1.30.2.9
  @@ -423,6 +423,9 @@
 for Cygwin if codeANT_HOME/code is set to a Windows style
 path.
 /a/li
  +lia href=#1.5.2-zip-broken
  +  codelt;zipgt;/code is broken in Ant 1.5.2.
  +  /a/li
   /ul
   
 table border=0 cellspacing=0 cellpadding=2 width=100%
  @@ -1724,9 +1727,31 @@
 /table
 pThis problem has been reported only hours after Ant 1.5 
has
   been released, see a 
href=http://issues.apache.org/bugzilla/show_bug.cgi?id=10664;Bug
  -10664/a and all it's duplicates./p
  +10664/a and all its duplicates./p
   pA fixed version of the wrapper script can be 
found a href=http://ant.apache.org/old-releases/v1.5/errata/;here/a.
   Simply replace your script with this version./p
  +br/
  +  a name=1.5.2-zip-broken/a
  +  table border=0 cellspacing=0 cellpadding=2 width=100%
  +trtd bgcolor=#4C6C8F
  +  font color=#ff face=arial,helvetica,sanserif
  +strong
  +  codelt;zipgt;/code is broken in Ant 1.5.2.
  +/strong
  +  /font
  +/td/tr
  +  /table
  +  pYes, it is./p
  +pThe problem reported by most people - see a 
href=http://issues.apache.org/bugzilla/show_bug.cgi?id=17648;Bug
  +17648/a and all its duplicates - is that Ant creates
  +archives that a partially unreadable by WinZIP.  Luckily
  +codejar/code deals with the archives and so the generated
  +jars/wars/ears will most likely work for you anyway./p
  +pThere are additional problems, see bugs a 
href=http://issues.apache.org/bugzilla/show_bug.cgi?id=17780;Bug
  +17780/a, a 
href=http://issues.apache.org/bugzilla/show_bug.cgi?id=17871;Bug
  +17871/a and a 
href=http://issues.apache.org/bugzilla/show_bug.cgi?id=18403;Bug
  +18403/a.  All of them are supposed to be fixed with Ant
  +1.5.3 (and only 18403 should exist in 1.5.3beta1)./p
 
   /div
   /tdtd width=10img width=10 height=4 alt= 
src=./images/spacer.gif/td
  
  
  
  No   revision
  
  
  No   revision
  
  
  1.17.2.9  +26 -1 ant/xdocs/faq.xml
  
  Index: faq.xml
  ===
  RCS file: /home/cvs/ant/xdocs/faq.xml,v
  retrieving revision 1.17.2.8
  retrieving revision 1.17.2.9
  diff -u -r1.17.2.8 -r1.17.2.9
  --- faq.xml   7 Mar 2003 12:36:19 -   1.17.2.8
  +++ faq.xml   8 Apr 2003 13:05:06 -   1.17.2.9
  @@ -1204,13 +1204,38 @@
   pThis problem has been reported only hours after Ant 1.5 has
   been released, see a
   href=http://issues.apache.org/bugzilla/show_bug.cgi?id=10664;Bug
  -10664/a and all it's duplicates./p
  +10664/a and all its duplicates./p
   
   pA fixed version of the wrapper script can be found a
   href=http://ant.apache.org/old-releases/v1.5/errata/;here/a.
   Simply replace your script with this version./p
 /answer
   /faq
  +
  +faq id=1.5.2-zip-broken
  +  questioncodelt;zipgt;/code is broken in Ant 1.5.2./question
  +  answer
  +
  +pYes, it is./p
  +
  +pThe problem reported by most people - see a
  +href=http://issues.apache.org/bugzilla/show_bug.cgi?id=17648;Bug
  +17648/a and all its duplicates - is that Ant creates
  +archives that a partially unreadable by WinZIP.  Luckily
  +codejar/code deals with the archives and so the generated
  +jars/wars/ears will most likely work for you anyway./p
  +
  +pThere are additional problems, see bugs a
  +href=http://issues.apache.org/bugzilla/show_bug.cgi?id=17780;Bug
  +17780/a, a
  +href=http://issues.apache.org/bugzilla/show_bug.cgi?id=17871;Bug
  +17871/a and a
  +href=http://issues.apache.org/bugzilla/show_bug.cgi?id=18403;Bug
  +18403/a.  All of them are supposed to be fixed with Ant
  +1.5.3 (and only 18403 should exist in 1.5.3beta1)./p
  +  /answer
  +/faq
  +
 /faqsection
   
   /document