DO NOT REPLY [Bug 24668] New: - SQL task's onError='stop' behaviour doesn't match docs

2003-11-13 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24668

SQL task's onError='stop' behaviour doesn't match docs

   Summary: SQL task's onError='stop' behaviour doesn't match docs
   Product: Ant
   Version: 1.5.4
  Platform: All
OS/Version: All
Status: NEW
  Severity: Normal
  Priority: Other
 Component: Core tasks
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


In the docs, it seems that the 'stop' setting will not continue with addtional 
transactions in the 
event of an error, but it will allow the script to continue.  Only the 'abort' 
setting should fail the 
task.

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



DO NOT REPLY [Bug 24673] New: - On Netscape (7), Ant task list is empty

2003-11-13 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24673

On Netscape (7), Ant task list is empty

   Summary: On Netscape (7), Ant task list is empty
   Product: Ant
   Version: 1.5.4
  Platform: Other
   URL: http://ant.apache.org/manual/anttaskslist.html
OS/Version: Other
Status: NEW
  Severity: Normal
  Priority: Other
 Component: Documentation
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


I've been using the online documentation constantly over the past few weeks and
and it always worked fine.  Yesterday, I clicked on the 'Ant Tasks' link in the
left-hand frame and got back a blank screen.  The HTML returned was:



Whatever happened to cause this happened over the past few days.  I'm using
Netscape 7.  When I tried this link with IE, it worked fine.  So, it seems to be
a  problem only on Netscape, but until yesterday, it always worked fine on 
Netscape.

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



DO NOT REPLY [Bug 24677] New: - Static member values lost without given CLASSPATH environment

2003-11-13 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24677

Static member values lost without given CLASSPATH environment 

   Summary: Static member values lost without given CLASSPATH
environment
   Product: Ant
   Version: 1.5.4
  Platform: PC
OS/Version: BeOS
Status: NEW
  Severity: Normal
  Priority: Other
 Component: Core
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


We wrote two own tasks (Task1 and Task2), which references another class 
(CounterHelper) with a static int member ( counter ).

Task1's and Task2's execute methods create an instance of CounterHelper
and increment it's static member counter. After this the value of
counter is sent to stdout. 

###

package staticant;

import org.apache.tools.ant.Task;

public class Task1 extends Task {

  public void execute(){

CounterHelper ch = new CounterHelper();
ch.incCounter();
System.out.println("Task1: "+ ch.getCounter());
  }
}


package staticant;

import org.apache.tools.ant.Task;

public class Task2 extends Task {

  public void execute(){

CounterHelper ch = new CounterHelper();
ch.incCounter();
System.out.println("Task2: "+ ch.getCounter());

  }
}


package staticant;

public class CounterHelper {

  protected static int counter = 0;

  public CounterHelper() {
  }

  public int getCounter() {
return counter;
  }

  public void incCounter() {
   counter++;
  }


  public void setCounter(int counter) {
this.counter = counter;
  }

}

###

We also created a suitable build.xml file like that:

###












 





###

We expected that during execution of target "main" CounterHelper.counter
is set to value 1 and during execution of target "main2" CounterHelper.counter
is then set to value 2.

But we got following result:


###

Buildfile: build.xml

main:
  [mytask1] Task1: 1

main2:
  [mytask2] Task2: 1

BUILD SUCCESSFUL
Total time: 4 seconds

###




After some terrible nights of "try and error" :)
we found, that the result depends on setting (or unsetting) of the
CLASSPATH environment variable to our target task classes.

In the "Feadback and Troubleshooting" section we also read:

"Ant does not need the CLASSPATH variable defined to anything to work."

So we learned, that don't setting the CLASSPATH brings the result above and
setting the CLASSPATH like

export CLASSPATH=:classes //points to our target task classes

we got the following expected result:

Buildfile: build.xml

main:
  [mytask1] Task1: 1

main2:
  [mytask2] Task2: 2

BUILD SUCCESSFUL
Total time: 4 seconds


We tested this using ant version 1.5.1, 1.5.4 on Linux or using JBuilder on 
Windows got the same behaviour.


What's going wrong?

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



DO NOT REPLY [Bug 24677] - Static member values lost without given CLASSPATH environment

2003-11-13 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24677

Static member values lost without given CLASSPATH environment

[EMAIL PROTECTED] changed:

   What|Removed |Added

 OS/Version|BeOS|Linux
Summary|Static member values lost   |Static member values lost
   |without given CLASSPATH |without given CLASSPATH
   |environment |environment

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



DO NOT REPLY [Bug 24677] - Static member values lost without given CLASSPATH environment

2003-11-13 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24677

Static member values lost without given CLASSPATH environment





--- Additional Comments From [EMAIL PROTECTED]  2003-11-13 08:51 ---
Created an attachment (id=9087)
Example: Task1

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



DO NOT REPLY [Bug 24677] - Static member values lost without given CLASSPATH environment

2003-11-13 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24677

Static member values lost without given CLASSPATH environment





--- Additional Comments From [EMAIL PROTECTED]  2003-11-13 08:52 ---
Created an attachment (id=9088)
Example: Task2

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



DO NOT REPLY [Bug 24677] - Static member values lost without given CLASSPATH environment

2003-11-13 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24677

Static member values lost without given CLASSPATH environment





--- Additional Comments From [EMAIL PROTECTED]  2003-11-13 08:52 ---
Created an attachment (id=9089)
Example: CounterHelper

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



DO NOT REPLY [Bug 24677] - Static member values lost without given CLASSPATH environment

2003-11-13 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24677

Static member values lost without given CLASSPATH environment





--- Additional Comments From [EMAIL PROTECTED]  2003-11-13 08:52 ---
Created an attachment (id=9090)
Example: build file

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



Re: cvs commit: ant build.sh build.bat

2003-11-13 Thread peter reilly
%~dp0 is used in ant.bat line 11.
ant.bat does however contain a lot of checking...
Peter

On Wednesday 12 November 2003 22:33, Conor MacNeill wrote:
> On Tue, 11 Nov 2003 03:51 am, [EMAIL PROTECTED] wrote:
> > antoine 2003/11/10 08:51:18
> >
> >   Modified:.Tag: ANT_16_BRANCH build.sh build.bat
> >   Log:
> >   Merge from HEAD
> >   Allow ModifiedSelectorTest to pass when started from build.sh or
> > build.bat PR: 24481
> >   Submitted by: Florian.G. Haas (f dot g dot haas at gmx dot net)
> >
> >   1.38.2.3  +1 -1  ant/build.bat
> >
> >   Index: build.bat
> >   ===
> >   RCS file: /home/cvs/ant/build.bat,v
> >   retrieving revision 1.38.2.2
> >   retrieving revision 1.38.2.3
> >   diff -u -r1.38.2.2 -r1.38.2.3
> >   --- build.bat 25 Sep 2003 07:44:27 -  1.38.2.2
> >   +++ build.bat 10 Nov 2003 16:51:17 -  1.38.2.3
> >   @@ -4,7 +4,7 @@
> >REM   reserved.
> >
> >set REAL_ANT_HOME=%ANT_HOME%
> >   -set ANT_HOME=bootstrap
> >   +set ANT_HOME=%~dp0\bootstrap
> >if exist bootstrap\lib\ant.jar if exist bootstrap\bin\ant.bat if exist
> > bootstrap\bin\lcp.bat if exist bootstrap\bin\antRun.bat goto runAnt call
> > bootstrap.bat
> >if exist bootstrap\lib\ant.jar if exist bootstrap\bin\ant.bat if exist
> > bootstrap\bin\lcp.bat if exist bootstrap\bin\antRun.bat goto runAnt
>
> I'm pretty sure the %~dp0 option is not available on Win 98/ME etc.
>
> Conor
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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



DO NOT REPLY [Bug 24677] - Static member values lost without given CLASSPATH environment

2003-11-13 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24677

Static member values lost without given CLASSPATH environment

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||INVALID



--- Additional Comments From [EMAIL PROTECTED]  2003-11-13 09:07 ---
This is not a bug.
The two definitions use different classloaders, so the classes
in each are different.

Ant can be told to use the same classloader by using the loaderref
attribute of the taskdef task.




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



Ant project status report

2003-11-13 Thread Conor MacNeill
Status Report for the Ant project

o Ant 1.5.4

Ant 1.5.4 was released on August 12th, 2003

This was a minor maintenance release of the Ant 1.5 branch. 
It addressed just two particular problems - the change to 
the javah entry point in the latest Sun JDK release and the 
Visual Age tasks. The latter, being only compatible with JDK 
1.1, were included to give users of this task a working release 
prior to the Ant 1.6 release which depends on JDK 1.2+

o Ant 1.6 Beta

Two betas of Ant 1.6 have been released to date. Beta 1 was released
on 30th Septamber, 2003 followed by Beta 2 on October 17. Ant 1.6 
has been well received as it provides a number of new features for 
simplifying and reusing build components. A short summary of the new 
features is

* Delayed Task construction, Top levels tasks

* Antlib - a packaging of ant components into a library

* namespace support

* macrodef task for composing ant tasks into larger, reusable tasks

* scriptdef for building tasks from scripting languages

* presetdef for defining tasks based on a specific configuration for
  another ant task

* input management and redirection for exec and java tasks

A bucketload of other fixes and changes as described here 
http://cvs.apache.org/dist/ant/v1.6beta2/

The betas have generated a lot of interesting discussion on the dev list
in particular about the operation of macrodef and namespaces. A third
beta will definitely be produced.

o Legal Issues

None. The PMC has received a request from Peter Donald through Stefan 
Bodewig for the removal of the Myrmidon codebase. The PMC will consider 
and I expect will go ahead and remove this module from CVS.

o PMC meeting

the PMC will shortly hold a virtual meeting to consider a few 
maintenance issues. These include the composition of the PMC, moving
inactive PMC members and committers to emeritus status, etc.

As previously noted, Diane Holt has indicated that she will no longer
be able to act as a PMC member. We thank her for her many contributions
to Ant over the years.

o Community

The dev list has been very active following the 1.6 beta. The discussion 
has been cooperative and healthy. Likewise the user list continues to 
be very active.

Conor

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



DO NOT REPLY [Bug 24673] - On Netscape (7), Ant task list is empty

2003-11-13 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24673

On Netscape (7), Ant task list is empty





--- Additional Comments From [EMAIL PROTECTED]  2003-11-13 09:44 ---
This is most likely a temporary glitch - maybe a problem with
a cache somewhere in the chain of machines from the
browser to the server.
In any case the link works for mozilla, konquoror and lynx
on linux.
Can you try again?

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



AW: cvs commit: ant build.sh build.bat

2003-11-13 Thread Antoine Lévy-Lambert
Hi Peter, Conor

%~dp0 is not supported on old Windows.
this is true.
I will check how to make this work on Win98, ...
Cheers,
Antoine

-Ursprüngliche Nachricht-
Von: peter reilly [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 13. November 2003 09:54
An: Ant Developers List
Betreff: Re: cvs commit: ant build.sh build.bat


%~dp0 is used in ant.bat line 11.
ant.bat does however contain a lot of checking...
Peter



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



RE: cvs commit: ant build.sh build.bat

2003-11-13 Thread Conor MacNeill
> From: Antoine Lévy-Lambert [mailto:[EMAIL PROTECTED]
> Sent: Thursday, 13 November 2003 8:48 PM
> To: Ant Developers List
> Subject: AW: cvs commit: ant build.sh build.bat
>
>
> Hi Peter, Conor
>
> %~dp0 is not supported on old Windows.
> this is true.
> I will check how to make this work on Win98, ...
> Cheers,
> Antoine
>

well, we should decide whether building Ant on Win98 is important. Being
able to run it there is important but building it could be considered less
so. An option, therefore would be to drop Win98 build support.

Conor


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



DO NOT REPLY [Bug 24680] New: - [PATCH] set threadContextLoader for xslt task

2003-11-13 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24680

[PATCH] set threadContextLoader for xslt task

   Summary: [PATCH] set threadContextLoader for xslt task
   Product: Ant
   Version: 1.6Beta
  Platform: All
OS/Version: Other
Status: NEW
  Severity: Enhancement
  Priority: Other
 Component: Core tasks
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


This patch sets and resets the threadContextLoader for the xslt taskdef. At
least xalan uses the threadcontextloader when looking for extension classes.

The testcase is designed to work with jdk1.4.0 and the included xalan 
transformer.

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



DO NOT REPLY [Bug 24680] - [PATCH] set threadContextLoader for xslt task

2003-11-13 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24680

[PATCH] set threadContextLoader for xslt task





--- Additional Comments From [EMAIL PROTECTED]  2003-11-13 11:42 ---
Created an attachment (id=9091)
The unified diff patch

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



DO NOT REPLY [Bug 24680] - [PATCH] set threadContextLoader for xslt task

2003-11-13 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24680

[PATCH] set threadContextLoader for xslt task





--- Additional Comments From [EMAIL PROTECTED]  2003-11-13 11:42 ---
Created an attachment (id=9092)
The testcase as a zip file. Use build.xml to run the test.

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



Notice - discontinuing Myrmidon codebase

2003-11-13 Thread Conor MacNeill
This is a notice that the Ant PMC intends to discontinue and archive 
the Myrmidon codebase. 

For those of you who are not familiar with it, Myrmidon was a 
development effort led by Peter Donald as a potential implementation 
of Ant2, a succesor to Ant. The development of the codebase has 
now ceased and Peter has indicated that the codebase can be removed.

If anyone wishes to access the code from CVS, it will be available 
for at least another week. Thereafter, a tarball of the CVS module 
will be made and the module removed from CVS. A tarball of the 
latest HEAD version can also be made. 

If there are any issues with this, please let me know.

Conor




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



DO NOT REPLY [Bug 24641] - java.util. ZipException while using jar task in ant 1.4.1 build

2003-11-13 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24641

java.util. ZipException while using jar task in ant 1.4.1 build





--- Additional Comments From [EMAIL PROTECTED]  2003-11-13 16:21 ---
Received back in email from aparna:

Posting here for other developers to comment on.

(Please use bugzilla to track these correspondences)
---
Hi,
 
Thanks for the response. Yes, I understand, this jar ZipException is 
eliminated/fixed in the latest versions of ant as i see their release docs on 
ant.apache.org site; But, for some reasons my project is making use of ant 
1.4.1 only, with whcih i'm encountering java.util.ZipException.
 
Literally, therez no problem in the jar process wiht 1.4.1, the jar is being 
created succesfully, but, its throwing a warning like. The build process is 
definitely happening outputting me the jar, but this particular message is seen 
on the console;
 
My Build script on 1.4.1 is simply: 
 
 

 
 
 
  
   
---

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



Re: Brent Rector on Msbuild vs Ant

2003-11-13 Thread Gus Heck

now, they dont have to care what I say, but we do have the option of 
pulling all .NET support from ant1.6...we will just have to see if 
that matters to them. It'll be an interesting test of conflict of the 
tactical 'get .net developers today' over the strategic 'own the 
developers forever'.

I think they would cheer if we took out .net support. It would give them 
another selling point for msbuild. The thing they hate most is 
competition. Leave it in and they will be more annoyed :).

-Gus

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


Re: cvs commit: ant build.sh build.bat

2003-11-13 Thread Erik Hatcher
On Thursday, November 13, 2003, at 06:06  AM, Conor MacNeill wrote:
well, we should decide whether building Ant on Win98 is important. 
Being
able to run it there is important but building it could be considered 
less
so. An option, therefore would be to drop Win98 build support.
+1 on dropping Win98 build support.
Erik
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


DO NOT REPLY [Bug 24685] New: - Copy task does not deal with filterfile correctly

2003-11-13 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24685

Copy task does not deal with filterfile correctly

   Summary: Copy task does not deal with filterfile correctly
   Product: Ant
   Version: 1.6Beta
  Platform: All
OS/Version: Other
Status: NEW
  Severity: Major
  Priority: Other
 Component: Core tasks
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


During an upgrade from 1.5.4 to try out 1.6beta is was found that the
filtersfile in a FilterSet within the copy task does not work.

An example of this is as follows:


   
   
  
   


In this case, the values in the config file are not replacing those in the
properties files.

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



Re: cvs commit: ant build.sh build.bat

2003-11-13 Thread Steve Loughran
Conor MacNeill wrote:
From: Antoine Lévy-Lambert [mailto:[EMAIL PROTECTED]
Sent: Thursday, 13 November 2003 8:48 PM
To: Ant Developers List
Subject: AW: cvs commit: ant build.sh build.bat
Hi Peter, Conor
%~dp0 is not supported on old Windows.
this is true.
I will check how to make this work on Win98, ...
Cheers,
Antoine

well, we should decide whether building Ant on Win98 is important. Being
able to run it there is important but building it could be considered less
so. An option, therefore would be to drop Win98 build support.

I would go for this, especially if we provide workaround (like an env 
variable people can set to force the value into place)


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


DO NOT REPLY [Bug 24641] - java.util. ZipException while using jar task in ant 1.4.1 build

2003-11-13 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24641

java.util. ZipException while using jar task in ant 1.4.1 build





--- Additional Comments From [EMAIL PROTECTED]  2003-11-13 18:04 ---
Arpana, 

we dont maintain old versions of the system. It is too much effort. If you
really want to fix this, and you do not want to upgrade to Ant1.5.4 or later,
then you are going to have to track down and fix the bug yourself.

I would strongly advise upgrading: we have found and fixed many more bugs since
Ant1.4 shipped -in what 2001-, and you are likely to run in to them again.

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



cvs commit: ant/src/main/org/apache/tools/ant/taskdefs MacroInstance.java

2003-11-13 Thread peterreilly
peterreilly2003/11/13 10:12:24

  Modified:src/main/org/apache/tools/ant/taskdefs MacroInstance.java
  Log:
  MacroInstance: if owningtarget not set, use a default
  MacroInstance: if id is as an attribute, check if this is in the
 macros attribute list and if not ignore
  
  Revision  ChangesPath
  1.9   +11 -1 
ant/src/main/org/apache/tools/ant/taskdefs/MacroInstance.java
  
  Index: MacroInstance.java
  ===
  RCS file: 
/home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/MacroInstance.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- MacroInstance.java6 Nov 2003 14:57:10 -   1.8
  +++ MacroInstance.java13 Nov 2003 18:12:24 -  1.9
  @@ -68,6 +68,7 @@
   import org.apache.tools.ant.DynamicConfigurator;
   import org.apache.tools.ant.ProjectHelper;
   import org.apache.tools.ant.RuntimeConfigurable;
  +import org.apache.tools.ant.Target;
   import org.apache.tools.ant.Task;
   import org.apache.tools.ant.TaskContainer;
   import org.apache.tools.ant.UnknownElement;
  @@ -187,7 +188,13 @@
   ret.setQName(ue.getQName());
   ret.setTaskName(ue.getTaskName());
   ret.setLocation(ue.getLocation());
  -ret.setOwningTarget(getOwningTarget());
  +if (getOwningTarget() == null) {
  +Target t = new Target();
  +t.setProject(getProject());
  +ret.setOwningTarget(t);
  +} else {
  +ret.setOwningTarget(getOwningTarget());
  +}
   RuntimeConfigurable rc = new RuntimeConfigurable(
   ret, ue.getTaskName());
   rc.setPolyType(ue.getWrapper().getPolyType());
  @@ -255,6 +262,9 @@
   }
   localProperties.put(attribute.getName(), value);
   copyKeys.remove(attribute.getName());
  +}
  +if (copyKeys.contains("id")) {
  +copyKeys.remove("id");
   }
   if (copyKeys.size() != 0) {
   throw new BuildException(
  
  
  

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



cvs commit: ant/src/main/org/apache/tools/ant/taskdefs MacroInstance.java

2003-11-13 Thread peterreilly
peterreilly2003/11/13 10:34:47

  Modified:src/main/org/apache/tools/ant/taskdefs Tag: ANT_16_BRANCH
MacroInstance.java
  Log:
  sync with HEAD
  
  Revision  ChangesPath
  No   revision
  No   revision
  1.5.2.4   +11 -1 
ant/src/main/org/apache/tools/ant/taskdefs/MacroInstance.java
  
  Index: MacroInstance.java
  ===
  RCS file: 
/home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/MacroInstance.java,v
  retrieving revision 1.5.2.3
  retrieving revision 1.5.2.4
  diff -u -r1.5.2.3 -r1.5.2.4
  --- MacroInstance.java6 Nov 2003 15:01:21 -   1.5.2.3
  +++ MacroInstance.java13 Nov 2003 18:34:46 -  1.5.2.4
  @@ -68,6 +68,7 @@
   import org.apache.tools.ant.DynamicConfigurator;
   import org.apache.tools.ant.ProjectHelper;
   import org.apache.tools.ant.RuntimeConfigurable;
  +import org.apache.tools.ant.Target;
   import org.apache.tools.ant.Task;
   import org.apache.tools.ant.TaskContainer;
   import org.apache.tools.ant.UnknownElement;
  @@ -187,7 +188,13 @@
   ret.setQName(ue.getQName());
   ret.setTaskName(ue.getTaskName());
   ret.setLocation(ue.getLocation());
  -ret.setOwningTarget(getOwningTarget());
  +if (getOwningTarget() == null) {
  +Target t = new Target();
  +t.setProject(getProject());
  +ret.setOwningTarget(t);
  +} else {
  +ret.setOwningTarget(getOwningTarget());
  +}
   RuntimeConfigurable rc = new RuntimeConfigurable(
   ret, ue.getTaskName());
   rc.setPolyType(ue.getWrapper().getPolyType());
  @@ -255,6 +262,9 @@
   }
   localProperties.put(attribute.getName(), value);
   copyKeys.remove(attribute.getName());
  +}
  +if (copyKeys.contains("id")) {
  +copyKeys.remove("id");
   }
   if (copyKeys.size() != 0) {
   throw new BuildException(
  
  
  

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



DO NOT REPLY [Bug 24231] - command-line option to signify no more options

2003-11-13 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24231

command-line option to signify no more options





--- Additional Comments From [EMAIL PROTECTED]  2003-11-13 21:57 ---
Because you haven't tested the patch or apparently reviewed it in any great 
detail, you haven't seen that I have not broken backward compatibility.  If Bug 
22020 eliminates the utility of -.* target names, so be it.  But my patch does 
not impact it; in truth it doesn't even force the end of command-line 
processing.  Ultimately this option only allows the explicit specification that 
an optional parameter to a command-line option has been omitted; it just so 
happens that the only such example is -find/-s.  Because there is, AGAIN, no 
impact to -.* named targets, I have AGAIN removed the dependency on Bug 22020.

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



DO NOT REPLY [Bug 24694] New: - JAVA_HOME should be exported

2003-11-13 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24694

JAVA_HOME should be exported

   Summary: JAVA_HOME should be exported
   Product: Ant
   Version: 1.5.4
  Platform: Macintosh
OS/Version: MacOS X
Status: NEW
  Severity: Enhancement
  Priority: Other
 Component: Wrapper scripts
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


The new ant wrapper shell script automatically determines what the JAVA_HOME 
variable should be 
set to, but it should also export the variable so the entire ant build process 
can have access to it.  
For instance, I use ant to build my java files, create my native JNI headers 
using javah, and then to 
compile the native code by exec-ing a shell script which I populate from the 
ant buildl.xml.  Within 
this script I need to know where JAVA_HOME is so I can include the jni.h file 
in my C compilation 
path.  Previous to your new wrapper script, I had my own, which exported 
JAVA_HOME and all 
worked wonderfully.

I have made the following one line change to your script and would suggest 
something similar:

case "`uname`" in
  CYGWIN*) cygwin=true ;;
  Darwin*) darwin=true
   if [ -z "$JAVA_HOME" ] ; then
 JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home
 export JAVA_HOME
   fi
   ;;
esac

Thanks for listening, and keep up the excellent work!  Ant is great!

Cheers,

Levi

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