DO NOT REPLY [Bug 34510] - ant.bat missing runAntNoClasspath label for goto

2005-04-19 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=34510.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=34510


[EMAIL PROTECTED] changed:

   What|Removed |Added

 CC||[EMAIL PROTECTED]
 AssignedTo|[EMAIL PROTECTED]  |[EMAIL PROTECTED]
   Target Milestone|--- |1.6.3




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.
You are on the CC list for the bug, or are watching someone who is.

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



cvs commit: ant/src/script ant.bat

2005-04-19 Thread antoine
antoine 2005/04/18 22:10:46

  Modified:.WHATSNEW
   src/script ant.bat
  Log:
  ant.bat was missing runAntNoClasspath label for goto
  PR: 34510
  
  Revision  ChangesPath
  1.807 +3 -0  ant/WHATSNEW
  
  Index: WHATSNEW
  ===
  RCS file: /home/cvs/ant/WHATSNEW,v
  retrieving revision 1.806
  retrieving revision 1.807
  diff -u -r1.806 -r1.807
  --- WHATSNEW  18 Apr 2005 20:09:08 -  1.806
  +++ WHATSNEW  19 Apr 2005 05:10:46 -  1.807
  @@ -371,6 +371,9 @@
   * Jar task was not including manifest files when duplicate=preserve was
 chosen. Bugzilla 32802.
   
  +* ant.bat was missing runAntNoClasspath label for goto.
  +  Bugzilla 34510
  +
   * Classpath was treated in the same way as -lib options. Bugzilla 28046.
   
   * Manual page for cvsversion contained incorrect attributes and did not
  
  
  
  1.40  +5 -1  ant/src/script/ant.bat
  
  Index: ant.bat
  ===
  RCS file: /home/cvs/ant/src/script/ant.bat,v
  retrieving revision 1.39
  retrieving revision 1.40
  diff -u -r1.39 -r1.40
  --- ant.bat   5 Oct 2004 08:37:00 -   1.39
  +++ ant.bat   19 Apr 2005 05:10:46 -  1.40
  @@ -1,6 +1,6 @@
   @echo off
   
  -REM  Copyright 2001,2004 The Apache Software Foundation
  +REM  Copyright 2001,2004-2005 The Apache Software Foundation
   REM
   REM  Licensed under the Apache License, Version 2.0 (the License);
   REM  you may not use this file except in compliance with the License.
  @@ -94,6 +94,10 @@
   %_JAVACMD% %ANT_OPTS% -classpath %ANT_HOME%\lib\ant-launcher.jar 
-Dant.home=%ANT_HOME% org.apache.tools.ant.launch.Launcher %ANT_ARGS% 
%ANT_CMD_LINE_ARGS%
   goto end
   
  +:runAntNoClasspath
  +%_JAVACMD% %ANT_OPTS% -classpath %ANT_HOME%\lib\ant-launcher.jar 
-Dant.home=%ANT_HOME% org.apache.tools.ant.launch.Launcher %ANT_ARGS% 
%ANT_CMD_LINE_ARGS%
  +goto end
  +
   :runAntWithClasspath
   %_JAVACMD% %ANT_OPTS% -classpath %ANT_HOME%\lib\ant-launcher.jar 
-Dant.home=%ANT_HOME% org.apache.tools.ant.launch.Launcher %ANT_ARGS% -cp 
%CLASSPATH% %ANT_CMD_LINE_ARGS%
   goto end
  
  
  

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



cvs commit: ant/src/script ant.bat

2005-04-19 Thread antoine
antoine 2005/04/18 22:19:11

  Modified:.Tag: ANT_16_BRANCH WHATSNEW
   src/script Tag: ANT_16_BRANCH ant.bat
  Log:
  Merge
  PR: 34510
  
  Revision  ChangesPath
  No   revision
  No   revision
  1.503.2.217 +3 -0  ant/WHATSNEW
  
  Index: WHATSNEW
  ===
  RCS file: /home/cvs/ant/WHATSNEW,v
  retrieving revision 1.503.2.216
  retrieving revision 1.503.2.217
  diff -u -r1.503.2.216 -r1.503.2.217
  --- WHATSNEW  18 Apr 2005 20:26:08 -  1.503.2.216
  +++ WHATSNEW  19 Apr 2005 05:19:11 -  1.503.2.217
  @@ -19,6 +19,9 @@
   * make sure that Zip and its derivates call the createEmptyZip method when
there are no resources to zip/jar/...
   
  +* ant.bat was missing runAntNoClasspath label for goto.
  +  Bugzilla 34510.
  +
   
   Changes from Ant 1.6.2 to Ant 1.6.3beta1
   
  
  
  
  No   revision
  No   revision
  1.32.2.9  +4 -0  ant/src/script/ant.bat
  
  Index: ant.bat
  ===
  RCS file: /home/cvs/ant/src/script/ant.bat,v
  retrieving revision 1.32.2.8
  retrieving revision 1.32.2.9
  diff -u -r1.32.2.8 -r1.32.2.9
  --- ant.bat   10 Mar 2005 14:10:47 -  1.32.2.8
  +++ ant.bat   19 Apr 2005 05:19:11 -  1.32.2.9
  @@ -94,6 +94,10 @@
   %_JAVACMD% %ANT_OPTS% -classpath %ANT_HOME%\lib\ant-launcher.jar 
-Dant.home=%ANT_HOME% org.apache.tools.ant.launch.Launcher %ANT_ARGS% 
%ANT_CMD_LINE_ARGS%
   goto end
   
  +:runAntNoClasspath
  +%_JAVACMD% %ANT_OPTS% -classpath %ANT_HOME%\lib\ant-launcher.jar 
-Dant.home=%ANT_HOME% org.apache.tools.ant.launch.Launcher %ANT_ARGS% 
%ANT_CMD_LINE_ARGS%
  +goto end
  +
   :runAntWithClasspath
   %_JAVACMD% %ANT_OPTS% -classpath %ANT_HOME%\lib\ant-launcher.jar 
-Dant.home=%ANT_HOME% org.apache.tools.ant.launch.Launcher %ANT_ARGS% -cp 
%CLASSPATH% %ANT_CMD_LINE_ARGS%
   goto end
  
  
  

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



DO NOT REPLY [Bug 34510] - ant.bat missing runAntNoClasspath label for goto

2005-04-19 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=34510.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=34510


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED




--- Additional Comments From [EMAIL PROTECTED]  2005-04-19 07:20 ---
thanks for reporting the bug.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.

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



cvs commit: ant WHATSNEW

2005-04-19 Thread antoine
antoine 2005/04/18 22:22:45

  Modified:.WHATSNEW
  Log:
  Added missing dot at end of paragraph
  
  Revision  ChangesPath
  1.808 +1 -1  ant/WHATSNEW
  
  Index: WHATSNEW
  ===
  RCS file: /home/cvs/ant/WHATSNEW,v
  retrieving revision 1.807
  retrieving revision 1.808
  diff -u -r1.807 -r1.808
  --- WHATSNEW  19 Apr 2005 05:10:46 -  1.807
  +++ WHATSNEW  19 Apr 2005 05:22:45 -  1.808
  @@ -372,7 +372,7 @@
 chosen. Bugzilla 32802.
   
   * ant.bat was missing runAntNoClasspath label for goto.
  -  Bugzilla 34510
  +  Bugzilla 34510.
   
   * Classpath was treated in the same way as -lib options. Bugzilla 28046.
   
  
  
  

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



DO NOT REPLY [Bug 34500] - Allowing files from multiple directories be grouped into a single set or container like a Fileset

2005-04-19 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=34500.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=34500





--- Additional Comments From [EMAIL PROTECTED]  2005-04-19 09:49 ---
(In reply to comment #2)
 Could you use multiple filelist/s or fileset/s instead?

Not really, I need to group together a number of jar files that can be found 
on a number of different drives.  This collection of jars then needs to be 
used in the classpath for compilation and copied to a directory for packing 
into a .ear file.

Because there are so many of these jars and many possible locations, it is not 
really appropriate to have multiple filesets.  Also the location of the jars 
frequently changes depending on which version are being used i.e. released, 
beta etc.

Thanks,
Stefan



-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



Re: cvs commit: ant WHATSNEW

2005-04-19 Thread Peter Reilly
Opps, thanks Antoine!
Peter
[EMAIL PROTECTED] wrote:
antoine 2005/04/18 22:22:45
 Modified:.WHATSNEW
 Log:
 Added missing dot at end of paragraph
 
 Revision  ChangesPath
 1.808 +1 -1  ant/WHATSNEW
 
 Index: WHATSNEW
 ===
 RCS file: /home/cvs/ant/WHATSNEW,v
 retrieving revision 1.807
 retrieving revision 1.808
 diff -u -r1.807 -r1.808
 --- WHATSNEW	19 Apr 2005 05:10:46 -	1.807
 +++ WHATSNEW	19 Apr 2005 05:22:45 -	1.808
 @@ -372,7 +372,7 @@
chosen. Bugzilla 32802.
  
  * ant.bat was missing runAntNoClasspath label for goto.
 -  Bugzilla 34510
 +  Bugzilla 34510.
  
  * Classpath was treated in the same way as -lib options. Bugzilla 28046.
  
 
 
 

-
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]


Re: cvs commit: ant WHATSNEW

2005-04-19 Thread Antoine Levy-Lambert
Peter Reilly wrote:
Opps, thanks Antoine!
Peter
You welcome Peter  :-)
Antoine
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


DO NOT REPLY [Bug 34500] - Allowing files from multiple directories be grouped into a single set or container like a Fileset

2005-04-19 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=34500.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=34500





--- Additional Comments From [EMAIL PROTECTED]  2005-04-19 11:38 ---
Short term, I'd suggest NTFS mount points as a workaround: mount your secondary
drives under the main one, so they do all have a common root.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 34516] New: - Java ant task crashes JVM if not forked

2005-04-19 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=34516.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=34516

   Summary: Java ant task crashes JVM if not forked
   Product: Ant
   Version: 1.6.2
  Platform: PC
   URL: http://www.ispras.ru/~barancev/bugreport.zip
OS/Version: Windows XP
Status: NEW
  Severity: normal
  Priority: P2
 Component: Core tasks
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


The problem:

If unit test .\src\GoogleHelperTest.java is running under ant junit task 
(http://ant.apache.org) or executed via classworlds 
(http://classworlds.codehaus.org) mechanizm (in all cases used custom class 
loader) JVM crashes. GoogleHelperTest uses JNI from .\dll\jacob.dll 
(http://danadler.com/jacob). 

Where the problem? I don't know! It could be in dll or in custom classloader
or in JVM.

For more info look at bugreport.txt in 
http://www.ispras.ru/~barancev/bugreport.zip

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 34516] - Java ant task crashes JVM if not forked

2005-04-19 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=34516.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=34516





--- Additional Comments From [EMAIL PROTECTED]  2005-04-19 12:48 ---
Sergey,

I dont think this is something we can handle. JNI code means that native
libraries are loading, and if there is something wrong there, then the JVM is
formally toast. Note also that JNI libs are outside what classloaders get up to;
if a DLL is loaded in one classloader, that is the only lib instance that is
loaded into that process, for the duration of that JVM. If tests are loading and
unloading things, I can imagine stuff getting confused.

My recommendation is fork, dont worry about the possible performance hit. That
way you can also be sure that different tests run with new DLLs loaded. There is
also some JVM system property you can set to point to the library location; no
need to copy the library into the PATH.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



svn commit: r161881 - in ant/antlibs/common: ./ branches/ tags/ trunk/ trunk/LICENSE trunk/NOTICE trunk/build.xml

2005-04-19 Thread bodewig
Author: bodewig
Date: Tue Apr 19 05:42:13 2005
New Revision: 161881

URL: http://svn.apache.org/viewcvs?view=revrev=161881
Log:
Provide a basic build infrastructure for antlibs

Added:
ant/antlibs/common/
ant/antlibs/common/branches/
ant/antlibs/common/tags/
ant/antlibs/common/trunk/
ant/antlibs/common/trunk/LICENSE   (with props)
ant/antlibs/common/trunk/NOTICE   (with props)
ant/antlibs/common/trunk/build.xml   (with props)

Added: ant/antlibs/common/trunk/LICENSE
URL: 
http://svn.apache.org/viewcvs/ant/antlibs/common/trunk/LICENSE?view=autorev=161881
==
--- ant/antlibs/common/trunk/LICENSE (added)
+++ ant/antlibs/common/trunk/LICENSE Tue Apr 19 05:42:13 2005
@@ -0,0 +1,203 @@
+/*
+ * Apache License
+ *   Version 2.0, January 2004
+ *http://www.apache.org/licenses/
+ *
+ *   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+ *
+ *   1. Definitions.
+ *
+ *  License shall mean the terms and conditions for use, reproduction,
+ *  and distribution as defined by Sections 1 through 9 of this document.
+ *
+ *  Licensor shall mean the copyright owner or entity authorized by
+ *  the copyright owner that is granting the License.
+ *
+ *  Legal Entity shall mean the union of the acting entity and all
+ *  other entities that control, are controlled by, or are under common
+ *  control with that entity. For the purposes of this definition,
+ *  control means (i) the power, direct or indirect, to cause the
+ *  direction or management of such entity, whether by contract or
+ *  otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ *  outstanding shares, or (iii) beneficial ownership of such entity.
+ *
+ *  You (or Your) shall mean an individual or Legal Entity
+ *  exercising permissions granted by this License.
+ *
+ *  Source form shall mean the preferred form for making modifications,
+ *  including but not limited to software source code, documentation
+ *  source, and configuration files.
+ *
+ *  Object form shall mean any form resulting from mechanical
+ *  transformation or translation of a Source form, including but
+ *  not limited to compiled object code, generated documentation,
+ *  and conversions to other media types.
+ *
+ *  Work shall mean the work of authorship, whether in Source or
+ *  Object form, made available under the License, as indicated by a
+ *  copyright notice that is included in or attached to the work
+ *  (an example is provided in the Appendix below).
+ *
+ *  Derivative Works shall mean any work, whether in Source or Object
+ *  form, that is based on (or derived from) the Work and for which the
+ *  editorial revisions, annotations, elaborations, or other modifications
+ *  represent, as a whole, an original work of authorship. For the purposes
+ *  of this License, Derivative Works shall not include works that remain
+ *  separable from, or merely link (or bind by name) to the interfaces of,
+ *  the Work and Derivative Works thereof.
+ *
+ *  Contribution shall mean any work of authorship, including
+ *  the original version of the Work and any modifications or additions
+ *  to that Work or Derivative Works thereof, that is intentionally
+ *  submitted to Licensor for inclusion in the Work by the copyright owner
+ *  or by an individual or Legal Entity authorized to submit on behalf of
+ *  the copyright owner. For the purposes of this definition, submitted
+ *  means any form of electronic, verbal, or written communication sent
+ *  to the Licensor or its representatives, including but not limited to
+ *  communication on electronic mailing lists, source code control systems,
+ *  and issue tracking systems that are managed by, or on behalf of, the
+ *  Licensor for the purpose of discussing and improving the Work, but
+ *  excluding communication that is conspicuously marked or otherwise
+ *  designated in writing by the copyright owner as Not a Contribution.
+ *
+ *  Contributor shall mean Licensor and any individual or Legal Entity
+ *  on behalf of whom a Contribution has been received by Licensor and
+ *  subsequently incorporated within the Work.
+ *
+ *   2. Grant of Copyright License. Subject to the terms and conditions of
+ *  this License, each Contributor hereby grants to You a perpetual,
+ *  worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ *  copyright license to reproduce, prepare Derivative Works of,
+ *  publicly display, publicly perform, sublicense, and distribute the
+ *  Work and such Derivative Works in Source or Object form.
+ *
+ *   3. Grant of Patent License. Subject to the terms and conditions of
+ *  this License, 

svn commit: r161884 - ant/antlibs/common/trunk/build.xml

2005-04-19 Thread bodewig
Author: bodewig
Date: Tue Apr 19 06:18:27 2005
New Revision: 161884

URL: http://svn.apache.org/viewcvs?view=revrev=161884
Log:
Give build file a name

Modified:
ant/antlibs/common/trunk/build.xml

Modified: ant/antlibs/common/trunk/build.xml
URL: 
http://svn.apache.org/viewcvs/ant/antlibs/common/trunk/build.xml?view=diffr1=161883r2=161884
==
--- ant/antlibs/common/trunk/build.xml (original)
+++ ant/antlibs/common/trunk/build.xml Tue Apr 19 06:18:27 2005
@@ -14,7 +14,7 @@
   See the License for the specific language governing permissions and
   limitations under the License.
 --
-project
+project name=common
 
   target name=setup
 property name=build value=build/



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



svn commit: r161885 - in ant/sandbox/antlibs: antunit/trunk/ antunit/trunk/build.xml dotnet/branches/Ant_1.6.2_compatible/ dotnet/branches/Ant_1.6.2_compatible/build.xml dotnet/trunk/ dotnet/trunk/bui

2005-04-19 Thread bodewig
Author: bodewig
Date: Tue Apr 19 06:24:52 2005
New Revision: 161885

URL: http://svn.apache.org/viewcvs?view=revrev=161885
Log:
Make sandboxes build

Modified:
ant/sandbox/antlibs/antunit/trunk/   (props changed)
ant/sandbox/antlibs/antunit/trunk/build.xml
ant/sandbox/antlibs/dotnet/branches/Ant_1.6.2_compatible/   (props changed)
ant/sandbox/antlibs/dotnet/branches/Ant_1.6.2_compatible/build.xml
ant/sandbox/antlibs/dotnet/trunk/   (props changed)
ant/sandbox/antlibs/dotnet/trunk/build.xml
ant/sandbox/antlibs/svn/trunk/   (props changed)
ant/sandbox/antlibs/svn/trunk/build.xml

Propchange: ant/sandbox/antlibs/antunit/trunk/
--
--- svn:externals (added)
+++ svn:externals Tue Apr 19 06:24:52 2005
@@ -0,0 +1 @@
+common  http://svn.apache.org/repos/asf/ant/antlibs/common/trunk

Modified: ant/sandbox/antlibs/antunit/trunk/build.xml
URL: 
http://svn.apache.org/viewcvs/ant/sandbox/antlibs/antunit/trunk/build.xml?view=diffr1=161884r2=161885
==
--- ant/sandbox/antlibs/antunit/trunk/build.xml (original)
+++ ant/sandbox/antlibs/antunit/trunk/build.xml Tue Apr 19 06:24:52 2005
@@ -14,80 +14,10 @@
   See the License for the specific language governing permissions and
   limitations under the License.
 --
-project default=compile
+project default=compile name=antunit
 
-  target name=setup
-property name=build value=build/
-property name=build.classes value=${build}/classes/
-property name=build.testclasses value=${build}/test-classes/
-property name=build.lib value=${build}/lib/
-property name=jarname value=${build.lib}/ant-antunit.jar/
-mkdir dir=${build.classes}/
-mkdir dir=${build.testclasses}/
-mkdir dir=${build.lib}/
-  /target
+  !-- easy way to override properties --
+  property file=build.properties/
 
-  target name=compile depends=setup
-javac 
-  srcdir=src/main
-  destdir=${build.classes}
-  debug=true
-  /
-  /target
-
-  target name=antlib depends=compile
-copy todir=${build.classes}
-  fileset dir=src/main includes=**/antlib.xml/
-/copy
-jar 
-  destfile=${jarname}
-  basedir=${build.classes}
-  /
-  /target
-
-  target name=setup-for-tests depends=setup
-ant 
-  antfile=../../../build.xml 
-  target=test-jar 
-  inheritall=false
-  /
-  /target
-
-  target name=compile-tests depends=setup-for-tests, antlib
-javac 
-  srcdir=src/testcases
-  destdir=${build.testclasses}
-  debug=true
-  
-  classpath
-pathelement location=${jarname}/
-pathelement location=../../../build/lib/ant-testutil.jar/
-  /classpath
-/javac
-  /target
-
-  target name=test depends=compile-tests
-junit
-  printsummary=false
-  haltonfailure=false
-  failureproperty=tests.failed
-  filtertrace=false
-  fork=true
-  forkmode=once
-  
-  classpath
-pathelement location=${jarname}/
-pathelement location=../../../build/lib/ant-testutil.jar/
-pathelement location=${build.testclasses}/
-  /classpath
-
-  batchtest
-fileset dir=src/testcases/
-  /batchtest
-
-  formatter type=plain usefile=false/
-/junit
-
-fail if=tests.failedAt least one test has failed./fail
-  /target
+  import file=common/build.xml/
 /project

Propchange: ant/sandbox/antlibs/dotnet/branches/Ant_1.6.2_compatible/
--
--- svn:externals (added)
+++ svn:externals Tue Apr 19 06:24:52 2005
@@ -0,0 +1 @@
+common  http://svn.apache.org/repos/asf/ant/antlibs/common/trunk

Modified: ant/sandbox/antlibs/dotnet/branches/Ant_1.6.2_compatible/build.xml
URL: 
http://svn.apache.org/viewcvs/ant/sandbox/antlibs/dotnet/branches/Ant_1.6.2_compatible/build.xml?view=diffr1=161884r2=161885
==
--- ant/sandbox/antlibs/dotnet/branches/Ant_1.6.2_compatible/build.xml 
(original)
+++ ant/sandbox/antlibs/dotnet/branches/Ant_1.6.2_compatible/build.xml Tue Apr 
19 06:24:52 2005
@@ -1,6 +1,6 @@
 ?xml version=1.0?
 !--
- Copyright  2003-2004 The Apache Software Foundation
+ Copyright  2003-2005 The Apache Software Foundation
  
   Licensed under the Apache License, Version 2.0 (the License);
   you may not use this file except in compliance with the License.
@@ -14,56 +14,28 @@
   See the License for the specific language governing permissions and
   limitations under the License.
 --
-project default=compile
+project default=compile name=dotnet
 
-  target name=setup
-property name=build value=build/
-property name=build.classes value=${build}/classes/
-property name=build.testclasses value=${build}/test-classes/
-property name=build.lib value=${build}/lib/
-property name=jarname 

DO NOT REPLY [Bug 34516] - Java ant task crashes JVM if not forked

2005-04-19 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=34516.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=34516





--- Additional Comments From [EMAIL PROTECTED]  2005-04-19 15:42 ---
FYI, the JVM system property to set is java.library.path. If jocab.dll has 
only system dll dependencies, locating it using java.library.path is enough. 
You need to resort to os-specific Path/LD_LIBRARY_PATH to resolve dependencies 
of the JNI dlls/sos only; And as Steve said, System.loadLibrary() 'transcends' 
classloaders and is global for the whole VM. So just fork it ;-) --DD

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



svn commit: r161895 - in ant/sandbox/antlibs/svn/trunk/src: etc/testcases/ testcases/org/apache/tools/ant/taskdefs/svn/

2005-04-19 Thread bodewig
Author: bodewig
Date: Tue Apr 19 07:17:59 2005
New Revision: 161895

URL: http://svn.apache.org/viewcvs?view=revrev=161895
Log:
Use Ant's repo for most of the test now

Modified:
ant/sandbox/antlibs/svn/trunk/src/etc/testcases/abstractsvntask.xml
ant/sandbox/antlibs/svn/trunk/src/etc/testcases/changelog.xml
ant/sandbox/antlibs/svn/trunk/src/etc/testcases/revisiondiff.xml

ant/sandbox/antlibs/svn/trunk/src/testcases/org/apache/tools/ant/taskdefs/svn/AbstractSvnTaskTest.java

ant/sandbox/antlibs/svn/trunk/src/testcases/org/apache/tools/ant/taskdefs/svn/SvnChangeLogTaskTest.java

ant/sandbox/antlibs/svn/trunk/src/testcases/org/apache/tools/ant/taskdefs/svn/SvnRevisionDiffTest.java

Modified: ant/sandbox/antlibs/svn/trunk/src/etc/testcases/abstractsvntask.xml
URL: 
http://svn.apache.org/viewcvs/ant/sandbox/antlibs/svn/trunk/src/etc/testcases/abstractsvntask.xml?view=diffr1=161894r2=161895
==
--- ant/sandbox/antlibs/svn/trunk/src/etc/testcases/abstractsvntask.xml 
(original)
+++ ant/sandbox/antlibs/svn/trunk/src/etc/testcases/abstractsvntask.xml Tue Apr 
19 07:17:59 2005
@@ -20,42 +20,42 @@
  default=all xmlns:svn=antlib:org.apache.tools.ant.taskdefs.svn
 
   property name=tmpdir value=tmpdir/
-  property name=tpfdir value=${tmpdir}/tpf/
-  property name=file value=ebcdic.h/
+  property name=trunkdir value=${tmpdir}/trunk/
+  property name=file value=build.xml/
 
   target name=setup
 mkdir dir=${tmpdir}/
 svn:svn
-  svnURL=http://svn.apache.org/repos/asf/httpd/httpd/trunk/os/tpf/;
+  svnURL=http://svn.apache.org/repos/asf/ant/antlibs/common/trunk/;
   dest=${tmpdir}/
   /target
 
   target name=all depends=setup
-svn:svn failonerror=true subcommand=status ${file} dest=${tpfdir}/
-svn:svn failonerror=true dest=${tpfdir}
+svn:svn failonerror=true subcommand=status ${file} 
dest=${trunkdir}/
+svn:svn failonerror=true dest=${trunkdir}
   commandline
 argument value=up/
 argument value=-r/
-argument value=83750/
+argument value=161881/
 argument value=${file}/
   /commandline
 /svn:svn
-svn:svn failonerror=true subcommand=status ${file} dest=${tpfdir}/
-svn:svn failonerror=true dest=${tpfdir}
+svn:svn failonerror=true subcommand=status ${file} 
dest=${trunkdir}/
+svn:svn failonerror=true dest=${trunkdir}
   commandline
 argument line=up -r HEAD ${file} /
   /commandline
 /svn:svn
-svn:svn failonerror=true subcommand=status ${file} dest=${tpfdir}/
+svn:svn failonerror=true subcommand=status ${file} 
dest=${trunkdir}/
   /target
 
   target name=revision-attribute
 mkdir dir=${tmpdir} /
 svn:svn
-  svnURL=http://svn.apache.org/repos/asf/httpd/httpd/trunk/os/tpf;
+  svnURL=http://svn.apache.org/repos/asf/ant/antlibs/common/trunk/;
   dest=${tmpdir}
   quiet=false
-  revision=83750/
+  revision=161881/
   /target
 
   target name=cleanup

Modified: ant/sandbox/antlibs/svn/trunk/src/etc/testcases/changelog.xml
URL: 
http://svn.apache.org/viewcvs/ant/sandbox/antlibs/svn/trunk/src/etc/testcases/changelog.xml?view=diffr1=161894r2=161895
==
--- ant/sandbox/antlibs/svn/trunk/src/etc/testcases/changelog.xml (original)
+++ ant/sandbox/antlibs/svn/trunk/src/etc/testcases/changelog.xml Tue Apr 19 
07:17:59 2005
@@ -25,7 +25,7 @@
   target name=setup
 mkdir dir=${tmpdir}/
 svn:svn
-  svnURL=http://svn.apache.org/repos/asf/jakarta/bcel/trunk;
+  svnURL=http://svn.apache.org/repos/asf/ant/sandbox/antlibs/svn/trunk;
   dest=${tmpdir}/
   /target
 
@@ -36,30 +36,30 @@
 
   target name=start depends=setup
 svn:changelog failonerror=true dest=${trunkdir}
-  destfile=${tmpdir}/log.xml start=153000/
+  destfile=${tmpdir}/log.xml start=161500/
   /target
 
   target name=startDate depends=setup
 svn:changelog failonerror=true dest=${trunkdir}
-  destfile=${tmpdir}/log.xml start={2005-02-10}/
+  destfile=${tmpdir}/log.xml start={2005-04-18}/
   /target
 
   target name=end depends=setup
 svn:changelog failonerror=true dest=${trunkdir}
-  destfile=${tmpdir}/log.xml end=153000/
+  destfile=${tmpdir}/log.xml end=161500/
   /target
 
   target name=endDate depends=setup
 svn:changelog failonerror=true dest=${trunkdir}
-  destfile=${tmpdir}/log.xml end={2005-02-10}/
+  destfile=${tmpdir}/log.xml end={2005-04-18}/
   /target
 
   target name=report depends=start
 style in=${tmpdir}/log.xml 
   out=${tmpdir}/log.html 
   style=src/etc/changelog.xsl
-  param name=title expression=Jakarta BCEL ChangeLog/
-  param name=repo expression=http://svn.apache.org/repos/asf/
+  param name=title expression=Ant SVN Antlib ChangeLog/
+  param name=repo 
expression=http://svn.apache.org/repos/ant/sandbox/antlibs/svn/
 

[Ant Wiki] Update of Ant17/Planning by SteveLoughran

2005-04-19 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on Ant Wiki for change 
notification.

The following page has been changed by SteveLoughran:
http://wiki.apache.org/ant/Ant17/Planning

The comment on the change is:
added idea of java1.5 distro; moved some others around.

--
  These are the features that hold the build; fallbacks to be listed. To add 
something here you must be prepared to implement it, or know someone who is. 
Everything needs a name.
  
   * SVN support by exec [stefan]
-  * Security on libraries, document task. [stevel]
+  * libraries: maven2, security. [stevel]
   * Local variables in macrodef
   * Fix for key IDE bugs (see eclipse, netbeans bugzillas) [all]
   * flatten in libraries to WAR/EAR somehow (related to libraries) [stevel?]
   * classloader to allow adding of jars to the current classloader (would 
solve a ''lot'' of problems at the cost of some issues) 
http://issues.apache.org/bugzilla/show_bug.cgi?id=28228 [peter]
-  * tests for apt, make sure the task works properly. 
+  * tests for apt, make sure the task works properly; force fork=true.
  
  
  == ''Want'' Features ==
@@ -48, +48 @@

   * Java1.5 environment fetching. Ideally as part of a rework of 
Execute.getProcessEnv()
   * Doc improvements.
   * propertyfile in java tasks for loading properties straight from a file.
-  * reduce number of outstanding bugzilla ''bugs'' by fixing them.
+  * reduce number of outstanding bugzilla ''bugs'' by fixing them or declaring 
WONTFIX/Invalid.
   * reduce number of outstanding bugzilla ''enhancements'' by implementing 
some, or closing them off.
   * include fetch.xml in redist package
   * add FileCollections (for arbitrary groups of files) and retrofit to 
appropriate tasks (mbenson)
@@ -65, +65 @@

   * libraries: multi repository support a la maven.
   * security hardening. locking down...or giving the opportunity to lock 
down; e.g. secure class loading, working with digital certs, etc... Rated as 
'like' because of the difficulty.
   * Look at all SCM tasks and pull in pending patches for new features. Find 
people to test them.
+  * Lightweight Java1.5 distro without Xerces. 
+ 
+ === ''Like'' Features Implemented ===
+ 
   * rename junit.jar to junit-3.8.1 in SCM, for libraries integration. As 
this is only in lib/optional, effects should be minimal (i.e. rename wont be 
visible to end users) [done].
-  * issigned to do signature checking (identify signatory). Code could be 
shared w/ librarie's isSigned policy
  
  
  == Bugs to Fix ==
@@ -78, +81 @@

  == WONTFIX ==
  
  Definitely not in this release. Pull stuff down here when scrubbed from the 
previous lists.
+  * issigned to do signature checking (identify signatory). fundamentally 
impossible.
  

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



[Ant Wiki] Update of Ant17/Planning by MattBenson

2005-04-19 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on Ant Wiki for change 
notification.

The following page has been changed by MattBenson:
http://wiki.apache.org/ant/Ant17/Planning

The comment on the change is:
s/FileCollections/ResourceCollections

--
   * reduce number of outstanding bugzilla ''bugs'' by fixing them or declaring 
WONTFIX/Invalid.
   * reduce number of outstanding bugzilla ''enhancements'' by implementing 
some, or closing them off.
   * include fetch.xml in redist package
-  * add FileCollections (for arbitrary groups of files) and retrofit to 
appropriate tasks (mbenson)
+  * add ResourceCollections (for arbitrary groups of file-like Resources) and 
retrofit to appropriate tasks (mbenson)
  
  === ''Want'' Features Implemented ===
  

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



[Ant Wiki] Update of AntNewbies by SteveLoughran

2005-04-19 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on Ant Wiki for change 
notification.

The following page has been changed by SteveLoughran:
http://wiki.apache.org/ant/AntNewbies

The comment on the change is:
point user at manual.

--
  I have downloaded ant, and now I am trying to install it using the directions 
on the apache page. I am typing 'build install' in the command prompt (I am on 
windows XP) but I get this error :::  'build' is not recognized as an internal 
or external command,
  operable program or batch file.
  
+ 
+ '''Answer #10''' Clearly then, build is not a valid command. Consult the 
section Running Ant in the documentation to get an up to date list of which 
commands Ant actually provides. or examine ANT_HOME/bin.
+ 

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



RE: ResourceCollections

2005-04-19 Thread Matt Benson
--- Jose Alberto Fernandez [EMAIL PROTECTED]
wrote:
  From: Matt Benson [mailto:[EMAIL PROTECTED] 
  
  --- Jose Alberto Fernandez
 [EMAIL PROTECTED]
  wrote:
  
   All this discussion about roles brings me back
 to
   the
   proposal/implementation
   of Roles that I made a long time ago and that
 was
   rejected.
  

After thinking about this further, this would be okay
for inline usage of duplicate names but is still
inferior to using Antlibs for scoping in that types
can stand alone at the project level (with id
normally) in the latter scheme, and referenced later. 
A small distinction perhaps, but I like to be able to
declare things I intend to reuse at a high level
rather than naming them during their first use.

-Matt



__ 
Do you Yahoo!? 
Plan great trips with Yahoo! Travel: Now over 17,000 guides!
http://travel.yahoo.com/p-travelguide

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



DO NOT REPLY [Bug 34516] - Java ant task crashes JVM if not forked

2005-04-19 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=34516.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=34516





--- Additional Comments From [EMAIL PROTECTED]  2005-04-19 17:00 ---
I should add that if ever Java gets Open Sourced, replacing ::LoadLibrary with
::LoadLibraryEx( LOAD_WITH_ALTERED_SEARCH_PATH) in the C/C++ bit would be enough
to fix up the DLL loading to load  downward dependencies 

http://msdn.microsoft.com/library/en-us/dllproc/base/loadlibraryex.asp

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



Re: Ant roles

2005-04-19 Thread Stefan Bodewig
On Fri, 15 Apr 2005, Peter Reilly [EMAIL PROTECTED] wrote:

 I do not like roles

I'm not sure we are really talking about roles at all here.

What Matt and DD and I and others who've spoken up mostly want are two
things:

(1) Be able to use istrue via add(Condition).  I had to extend
ConditionBase to make AssertTask accept Ant's built-in conditions,
this is cumbersome.

(2) resolve naming conflicts we'd get when we have multiple
definitions of the same name.

DDs idea to have antlib individual descriptors for conditions,
selectors and so on that the user can use simple works here.  You can
still use the existing tasks without any namespaces and you can
explicitly load conditions into a namespace if you want to (or have to
to resolve conflicts).  This really would already be enough for me.

What brought the term roles was that DD didn't have a better term
for the collections of things that are together in one such antlib
descriptor.

And then we'd really like something shorter, sweeter than

project xmlns:c=myconditions
  typedef resource=org/apache/tools/ant/types/selectors/typedefs.xml
   uri=myconditions/

  ...
  condition
c:istrue ...

Something where loading of the descriptor gets triggered by the
namespace URI, but this is optional, at least for me.

Stefan

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



Re: Ant roles

2005-04-19 Thread Matt Benson

--- Stefan Bodewig [EMAIL PROTECTED] wrote:
 On Fri, 15 Apr 2005, Peter Reilly
 [EMAIL PROTECTED] wrote:
 
  I do not like roles
 
 I'm not sure we are really talking about roles at
 all here.
 
 What Matt and DD and I and others who've spoken up
 mostly want are two
 things:
 
 (1) Be able to use istrue via add(Condition).  I
 had to extend
 ConditionBase to make AssertTask accept Ant's
 built-in conditions,
 this is cumbersome.
 
 (2) resolve naming conflicts we'd get when we have
 multiple
 definitions of the same name.
 
 DDs idea to have antlib individual descriptors for
 conditions,
 selectors and so on that the user can use simple
 works here.  You can
 still use the existing tasks without any namespaces
 and you can
 explicitly load conditions into a namespace if you
 want to (or have to
 to resolve conflicts).  This really would already be
 enough for me.
 
 What brought the term roles was that DD didn't
 have a better term
 for the collections of things that are together in
 one such antlib
 descriptor.

I think we already have 1. and 2. if we want to use
antlibs, and assuming we can place additional
resources where we like.

 
 And then we'd really like something shorter, sweeter
 than
 
 project xmlns:c=myconditions
   typedef

resource=org/apache/tools/ant/types/selectors/typedefs.xml
uri=myconditions/
 
   ...
   condition
 c:istrue ...
 
 Something where loading of the descriptor gets
 triggered by the
 namespace URI, but this is optional, at least for
 me.

If we have consent to add resources, then yes, the
above is optional, but for me only barely so.  Peter's
concerns of cumbersome-ness would be realized IMHO by
forcing such long declarations.  It almost seems
integral that if we are going to essentially bundle
antlibs in the core, then those should be
distinguished by a custom means of access, and that as
terse as possible.

Nag, nag, nag... but I'm very frustrated by this
stalemate.

-Matt

 
 Stefan
 

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



__ 
Do you Yahoo!? 
Plan great trips with Yahoo! Travel: Now over 17,000 guides!
http://travel.yahoo.com/p-travelguide

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



RE: Ant roles

2005-04-19 Thread Dominique Devienne
 From: Matt Benson [mailto:[EMAIL PROTECTED]
 
 I think we already have 1. and 2. if we want to use
 antlibs, and assuming we can place additional
 resources where we like.

You mean that we can easily achieve 1. and 2. by
defining a few XML files (and modify some code for 2.), no?

AFAIK, we currently have neither.

 Nag, nag, nag... but I'm very frustrated by this stalemate.

Note yet a stalemate. Lets maybe attach a patch in Bugzilla or
do an experimental check in to HEAD, and see if we get any -1?

--DD

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



BuildException wrapping in macrodef

2005-04-19 Thread Stefan Bodewig
Hi,

using

project xmlns:au=antlib:org.apache.ant.antlib.antunit
  au:assertEquals expected=bar actual=baz/
/project

I get

/tmp/au.xml:2: The following error occurred while executing this line:
jar:file:/home/bodewig/ASF/jakarta/ant/sandbox/antlibs/antunit/trunk/build/lib/ant-antunit.jar!/org/apache/ant/antlib/antunit/antlib.xml:40:
 Expected 'bar' but was 'baz'

what I really want is

/tmp/au.xml:2:  Expected 'bar' but was 'baz'

The reason for this is that assertEquals is a macrodef and
MacroInstance unconditionally wraps any BuildExecption into a new one
adding the macro definition's location.

For tasks provided in antlibs, the user probably doesn't care whether
it is a macrodef or a plain task.

Would anybody object if I added an attribute to macrodef that you
could use to turn off the wrapping (default would certainly be with
wrapping)?

Another side effect of this is that an ExitStatusException thrown by
fail nested into macrodef gets turned into a plain BuildException
again.

Stefan

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



Antlib package names

2005-04-19 Thread Stefan Bodewig
Hi,

for the svn tasks I've used org.apache.tools.ant.taskdefs.svn, for the
newer antunit I've used org.apache.ant.antlibs.antunit.

I'd like to drop the tools for antlibs and I think antlibs should be
somewhere in the package names, so I'd turn the former into
org.apache.ant.antlibs.svn.

Any other ideas, preferences?

Stefan

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



AW: BuildException wrapping in macrodef

2005-04-19 Thread Jan . Materne
No - loaded from an AntLib a macro should behave as a usual task.
So it doesnt matter in what language the task was written :-)

Jan


 -Ursprüngliche Nachricht-
 Von: Stefan Bodewig [mailto:[EMAIL PROTECTED]
 Gesendet am: Dienstag, 19. April 2005 17:38
 An: [EMAIL PROTECTED]
 Betreff: BuildException wrapping in macrodef
 
 Hi,
 
 using
 
 project xmlns:au=antlib:org.apache.ant.antlib.antunit
   au:assertEquals expected=bar actual=baz/
 /project
 
 I get
 
 /tmp/au.xml:2: The following error occurred while executing this line:
 jar:file:/home/bodewig/ASF/jakarta/ant/sandbox/antlibs/antunit
 /trunk/build/lib/ant-antunit.jar!/org/apache/ant/antlib/antuni
 t/antlib.xml:40: Expected 'bar' but was 'baz'
 
 what I really want is
 
 /tmp/au.xml:2:  Expected 'bar' but was 'baz'
 
 The reason for this is that assertEquals is a macrodef and
 MacroInstance unconditionally wraps any BuildExecption into a new one
 adding the macro definition's location.
 
 For tasks provided in antlibs, the user probably doesn't care whether
 it is a macrodef or a plain task.
 
 Would anybody object if I added an attribute to macrodef that you
 could use to turn off the wrapping (default would certainly be with
 wrapping)?
 
 Another side effect of this is that an ExitStatusException thrown by
 fail nested into macrodef gets turned into a plain BuildException
 again.
 
 Stefan
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


Re: Ant roles

2005-04-19 Thread Stefan Bodewig
On Tue, 19 Apr 2005, Matt Benson [EMAIL PROTECTED] wrote:

 I think we already have 1. and 2. if we want to use
 antlibs,

except we don't have the descriptors, yet.

 and assuming we can place additional resources where we like.

We can.

 Something where loading of the descriptor gets triggered by the
 namespace URI, but this is optional, at least for me.
 
 If we have consent to add resources,

did anybody object?

 then yes, the above is optional, but for me only barely so.

I understand that, and have no problem with adding a new ant* protocol
to shorten this.  It doesn't have to be ant: and it doesn't have to be
antlib:, but even for antlib we could easily make it work by adding a
subprotocol if needed.

 It almost seems integral that if we are going to essentially bundle
 antlibs in the core, then those should be distinguished by a custom
 means of access, and that as terse as possible.

Yes, I agree, but it is no show-stopper to me.

Stefan

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



AW: Antlib package names

2005-04-19 Thread Jan . Materne
The 'tools' came from old Jakarta times I think and should be in for bwc
reasons.
But writing complete new libraries should fit to our project structure 
(top level project org.apache.ant and components antunit).

So I would agree using the new package name.


Jan

 -Ursprüngliche Nachricht-
 Von: Stefan Bodewig [mailto:[EMAIL PROTECTED]
 Gesendet am: Dienstag, 19. April 2005 17:40
 An: [EMAIL PROTECTED]
 Betreff: Antlib package names
 
 Hi,
 
 for the svn tasks I've used org.apache.tools.ant.taskdefs.svn, for the
 newer antunit I've used org.apache.ant.antlibs.antunit.
 
 I'd like to drop the tools for antlibs and I think antlibs should be
 somewhere in the package names, so I'd turn the former into
 org.apache.ant.antlibs.svn.
 
 Any other ideas, preferences?
 
 Stefan
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


Re: Ant roles

2005-04-19 Thread Stefan Bodewig
On Tue, 19 Apr 2005, Dominique Devienne [EMAIL PROTECTED] wrote:

 You mean that we can easily achieve 1. and 2. by
 defining a few XML files (and modify some code for 2.), no?

The example I've used should work.  Just add a few resource files and
use typedef with resource and URI (as short as you like it to be).

Stefan

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



RE: Ant roles

2005-04-19 Thread Matt Benson

--- Dominique Devienne [EMAIL PROTECTED] wrote:
  From: Matt Benson [mailto:[EMAIL PROTECTED]
  
  I think we already have 1. and 2. if we want to
 use
  antlibs, and assuming we can place additional
  resources where we like.
 
 You mean that we can easily achieve 1. and 2. by
 defining a few XML files (and modify some code for
 2.), no?
 
 AFAIK, we currently have neither.

Yes on the XML files.  Assuming that it is a known
fact that the correct way to resolve collisions is to
use namespaces, I think 2. is solved.  The only
relevant change I have in my codebase is ant:foo -
resource org/apache/tools/ant/foo.xml .

 
  Nag, nag, nag... but I'm very frustrated by this
 stalemate.
 
 Note yet a stalemate. Lets maybe attach a patch in
 Bugzilla or
 do an experimental check in to HEAD, and see if we
 get any -1?

My feeling from the discussion so far is that a -1
would come fairly quickly.  I'd rather have some
consensus beforehand in this case, personally.  :(

-Matt

 
 --DD
 

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

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



RE: Antlib package names

2005-04-19 Thread Dominique Devienne
 From: Stefan Bodewig [mailto:[EMAIL PROTECTED]
 
 for the svn tasks I've used org.apache.tools.ant.taskdefs.svn, for the
 newer antunit I've used org.apache.ant.antlibs.antunit.
 
 I'd like to drop the tools for antlibs and I think antlibs should be
 somewhere in the package names, so I'd turn the former into
 org.apache.ant.antlibs.svn.
 
 Any other ideas, preferences?

I'm all for dropping tools. But I don't like the sounds of ant.antlibs.
I just don't like the repetition. I personally prefer either ant.libs or
even just org.apache.antlibs, although the later being a new top-level
name is probably not appropriate.

No strong feeling really, but reading ant.antlibs is painful to me
somehow ;-) --DD

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



Re: Ant roles

2005-04-19 Thread Matt Benson

--- Stefan Bodewig [EMAIL PROTECTED] wrote:
 On Tue, 19 Apr 2005, Matt Benson
 [EMAIL PROTECTED] wrote:
 
  I think we already have 1. and 2. if we want to
 use
  antlibs,
 
 except we don't have the descriptors, yet.
 
  and assuming we can place additional resources
 where we like.
 
 We can.
 
  Something where loading of the descriptor gets
 triggered by the
  namespace URI, but this is optional, at least for
 me.
  
  If we have consent to add resources,
 
 did anybody object?

Sometimes I know what I'm thinking and forget everyone
doesn't.  :)  My concern here is back to this:  I
would like an alternate syntax for loading built-in
antlibs (as I have made painfully clear).  I think
this syntax should be terse and automatically
extensible.  This is why I promote
  ant:foo - resource org/apache/tools/ant/foo.xml ,
because you can always add another XML file to that
directory and voila, another antlib.  If we cannot use
this or some similar protocol then it would probably
make more sense to use the antlibs as usual: e.g.
resourceselectors defined in antlib.xml at
org/apache/tools/ant/types/resources/selectors .

Since antlibs don't accept import AFAIK I would hate
to add the same resource (content) in 1 place, which
is why I would like to have the question resolved
before taking any action, if possible.

-Matt

 
  then yes, the above is optional, but for me only
 barely so.
 
 I understand that, and have no problem with adding a
 new ant* protocol
 to shorten this.  It doesn't have to be ant: and it
 doesn't have to be
 antlib:, but even for antlib we could easily make it
 work by adding a
 subprotocol if needed.
 
  It almost seems integral that if we are going to
 essentially bundle
  antlibs in the core, then those should be
 distinguished by a custom
  means of access, and that as terse as possible.
 
 Yes, I agree, but it is no show-stopper to me.
 
 Stefan
 

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

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



DO NOT REPLY [Bug 34525] New: - xslt doesnt check for the transform existing

2005-04-19 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=34525.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=34525

   Summary: xslt doesnt check for the transform existing
   Product: Ant
   Version: 1.7Alpha (nightly)
  Platform: Other
OS/Version: Linux
Status: NEW
  Severity: minor
  Priority: P2
 Component: Core tasks
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


From the log of a clearly badly initialised task:

 [xslt] Processing
/home/slo/Projects/SmartFrog/Deploy/deployment/xml/api/constants.xml to
/home/slo/Projects/SmartFrog/Deploy/deployment/${generated.constants.java}
 [xslt] Loading stylesheet
/home/slo/Projects/SmartFrog/Deploy/deployment/${transform.xsl}
 [xslt] Failed to process
/home/slo/Projects/SmartFrog/Deploy/deployment/xml/api/constants.xml

BUILD FAILED
/home/slo/Projects/SmartFrog/Deploy/deployment/build.xml:255:
java.io.FileNotFoundException:
/home/slo/Projects/SmartFrog/Deploy/deployment/${transform.xsl} (No such file or
directory)

It does fail, but not as early as it could.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



Re: Ant roles

2005-04-19 Thread Stefan Bodewig
On Tue, 19 Apr 2005, Matt Benson [EMAIL PROTECTED] wrote:

 My concern here is back to this: I would like an alternate syntax
 for loading built-in antlibs (as I have made painfully clear).

Yes you have.  And you have my support for a new protocol (in case I
wasn't clear).

 Since antlibs don't accept import AFAIK

But typedef.

You can have org/apache/tools/ant/taskdefs/antlib.xml with

antlib
  typedef resource=org/apache/tools/ant/taskdefs/defaults.properties/
/antlib

as well as org/apache/tools/ant/types/antlib.xml with

antlib
  typedef resource=org/apache/tools/ant/types/defaults.properties/
  typedef resource=org/apache/tools/ant/types/selectors/antlib.xml/
  typedef resource=org/apache/tools/ant/taskdefs/conditions/antlib.xml/
/antlib

and then even org/apache/tools/ant/antlib.xml with

antlib
  typedef resource=org/apache/tools/ant/types/antlib.xml/
  typedef resource=org/apache/tools/ant/taskdefs/antlib.xml/
/antlib

 I would hate to add the same resource (content) in 1 place,

Of course.

Stefan

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



Re: Ant roles

2005-04-19 Thread Matt Benson
--- Stefan Bodewig [EMAIL PROTECTED] wrote:
 On Tue, 19 Apr 2005, Matt Benson
 [EMAIL PROTECTED] wrote:
 
  My concern here is back to this: I would like an
 alternate syntax
  for loading built-in antlibs (as I have made
 painfully clear).
 
 Yes you have.  And you have my support for a new
 protocol (in case I
 wasn't clear).

Yep.  The above was background for the point of not
wanting to add the same resource content multiple
times.
 
  Since antlibs don't accept import AFAIK
 
 But typedef.

I forgot.  :)  That would be okay, and possibly even
best.  I could go ahead and add the antlibs for
antlib:org.apache.tools.ant.types.resources.selectors
and if we can agree on a protocol then
resourceselectors.xml (e.g.) could typedef the antlib.
   

-Matt

[SNIP]



__ 
Do you Yahoo!? 
Plan great trips with Yahoo! Travel: Now over 17,000 guides!
http://travel.yahoo.com/p-travelguide

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



RE: Ant roles

2005-04-19 Thread Dominique Devienne
 From: Stefan Bodewig [mailto:[EMAIL PROTECTED]
 
 as well as org/apache/tools/ant/types/antlib.xml with
 antlib
   typedef resource=o/a/t/a/types/defaults.properties/
   typedef resource=o/a/t/a/types/selectors/antlib.xml/
   typedef resource=o/a/t/a/taskdefs/conditions/antlib.xml/
 /antlib

But won't that create some kind of warning because of the
and/or/etc... name clashes from conditions/selectors? --DD

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



DO NOT REPLY [Bug 34525] - xslt doesnt check for the transform existing

2005-04-19 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=34525.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=34525


[EMAIL PROTECTED] changed:

   What|Removed |Added

   Severity|minor   |enhancement




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



RE: ResourceCollections

2005-04-19 Thread Jose Alberto Fernandez
 From: Matt Benson [mailto:[EMAIL PROTECTED] 
 
 --- Jose Alberto Fernandez [EMAIL PROTECTED]
 wrote:
   From: Matt Benson [mailto:[EMAIL PROTECTED]
   
   --- Jose Alberto Fernandez
  [EMAIL PROTECTED]
   wrote:
   
All this discussion about roles brings me back
  to
the
proposal/implementation
of Roles that I made a long time ago and that
  was
rejected.
   
 
 After thinking about this further, this would be okay
 for inline usage of duplicate names but is still
 inferior to using Antlibs for scoping in that types
 can stand alone at the project level (with id
 normally) in the latter scheme, and referenced later. 
 A small distinction perhaps, but I like to be able to
 declare things I intend to reuse at a high level
 rather than naming them during their first use.

I agree with you in principle. However, I do not think every
little bit of XML is a good candidate for id'ing. 
You may ID a fileset or a resoursecollection but
a mapper on its own makes less sense since you usually
need to look at its meaning in the context of the usage.

You can always find a counterexample of course but as a general rule...

To me name overloading makes sense for a very limited number of 
very much used things and as for a condition or a selector, is a good
example.

I am sure others can come with other cases. Forcing usage of namespaces
is the same
as forcing new different names for everything. In particular in core.

Jose Alberto

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



Re: Antlib package names

2005-04-19 Thread Martijn Kruithof
Dominique Devienne wrote:
From: Stefan Bodewig [mailto:[EMAIL PROTECTED]
for the svn tasks I've used org.apache.tools.ant.taskdefs.svn, for the
newer antunit I've used org.apache.ant.antlibs.antunit.
I'd like to drop the tools for antlibs and I think antlibs should be
somewhere in the package names, so I'd turn the former into
org.apache.ant.antlibs.svn.
Any other ideas, preferences?
   

I'm all for dropping tools. But I don't like the sounds of ant.antlibs.
I just don't like the repetition. I personally prefer either ant.libs or
even just org.apache.antlibs, although the later being a new top-level
name is probably not appropriate.
No strong feeling really, but reading ant.antlibs is painful to me
somehow ;-) --DD
 

Putting in ant on all subpackages would also lead to package 
abbreviations only contaings a after an initial o.. ant / antlibs on top 
level would be hard to discern as well as both would be abbreviated to 
oa, so personally I'd prefer ant.libs.

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


[Ant Wiki] Update of AntNewbies by KarynChen

2005-04-19 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on Ant Wiki for change 
notification.

The following page has been changed by KarynChen:
http://wiki.apache.org/ant/AntNewbies

--
  
  '''Answer #10''' Clearly then, build is not a valid command. Consult the 
section Running Ant in the documentation to get an up to date list of which 
commands Ant actually provides. or examine ANT_HOME/bin.
  
+ 
+ 
+ ```Question#11```
+ Can I use the JUnitReport Task with Unit Tests that are not part of the JUnit 
framework? 
+ 

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



Addition to External tools And Tasks

2005-04-19 Thread teknopaul
Hi, I'd like to submit a tool for the External Tools section of the site.

Name:   AntInstaller
Desc:   build MSI style installers (with command line option) using Ant as 
Back end. UI developed by writing an XML install descriptor.  Runtime 
launched from scripts or an all inclusive Jar.
Compatability:  1.6.1 others not tested
Contact:[EMAIL PROTECTED]  http://antinstaller.sf.net
License:LGPL but in the process of of moving to Apache2.0 on request

P
-- 
--
teknopaul-
-(ogetkonnectedo)-
---antinstaller.sourceforge.net---
--httpfileserver.sourceforge.net--
--
¨¨


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



[VOTE] Ant 1.6.3 release

2005-04-19 Thread Antoine Levy-Lambert
Do we want to release Ant 1.6.3 on Thursday, April 28th ?
Yes [ ]
No  [ ]
Cheers,
Antoine

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


DO NOT REPLY [Bug 34527] New: - FileUtils.isNetware field should be static to improve performance

2005-04-19 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=34527.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=34527

   Summary: FileUtils.isNetware field should be static to improve
performance
   Product: Ant
   Version: 1.6.2
  Platform: Other
OS/Version: All
Status: NEW
  Severity: trivial
  Priority: P5
 Component: Core
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]


While profiling build of NetBeans IDE that uses Ant I noticed that creating of
new FileUtils is more expensive than neceseary as it spents most of time
initializing isNetware field that has always the same value. Changing the field
to static can remove this call from profiler output.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 34529] New: - Suboptimal analyzing of project build files

2005-04-19 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=34529.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=34529

   Summary: Suboptimal analyzing of project build files
   Product: Ant
   Version: 1.6.2
  Platform: Other
OS/Version: other
Status: NEW
  Severity: enhancement
  Priority: P4
 Component: Core
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]


According to profiler output gathered when running NetBeans build with JDK1.4.2
using Ant 1.6.2 it should be possible to improve Ant performance.

Constructor of Location in ProjectHelper2.ElementHadler.onStartElement is
expensive. This is because conversion between URI and file is happening here.
Perhaps it is worth to optimize Locator.fromURI assuming that most of URIs do
not contain '%' and thus avoid StringCharacterIterator use in most of cases.

I also noticed what Jesse described in bug #25767 - creating of new SAX parsers
is not for free.

RuntimeConfigurable maintains two data structures holding overlapping data -
list of attributes and map attribute;value. One more efficient storage can
bring some benefit.

ProjectHelper.getProjectHelper is not a hot spot but still can be a bit faster
if it checks for resource first and thries to get the stream. This will not use
exception to control the program flow. Filling of stack trace cost something in
their constructor.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 34527] - FileUtils.isNetware field should be static to improve performance

2005-04-19 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=34527.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=34527


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED
   Target Milestone|--- |1.6.3




--- Additional Comments From [EMAIL PROTECTED]  2005-04-19 20:48 ---
This is fixed in CVS and will be in Ant 1.6.3 .

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 34500] - Allowing files from multiple directories be grouped into a single set or container like a Fileset

2005-04-19 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=34500.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=34500


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||DUPLICATE
   Target Milestone|--- |1.7




--- Additional Comments From [EMAIL PROTECTED]  2005-04-19 20:58 ---


*** This bug has been marked as a duplicate of 18128 ***

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 18128] - filesets don't support sets of absolute filenames

2005-04-19 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=18128.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=18128


[EMAIL PROTECTED] changed:

   What|Removed |Added

 CC||[EMAIL PROTECTED]




--- Additional Comments From [EMAIL PROTECTED]  2005-04-19 20:58 ---
*** Bug 34500 has been marked as a duplicate of this bug. ***

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



Re: Suggested change for javac classpaths

2005-04-19 Thread Jesse Glick
Richardson, Steph wrote:
The javac task by default, adds the destination directory to the 
classpath that is being used to compile [...]

This option would be very useful in projects where explicit
dependencies between packages are manually specified, and would
prevent the need for workarounds to this problem - such as convoluted
tricks like compiling every package in a separate temp folder, or
compileWithWalls or VerifyDesign from Ant-Contrib.
If you must compile using different classpaths (or other compiler 
options) within a single source root, and you can't break apart your 
sources physically into separate source roots, you can still do it: use 
explicit src/ subelements, rather than sourcedir, and include a 
selector, e.g.

http://www.netbeans.org/source/browse/openide/build.xml?rev=1.187#do-lib-javac-nolocaldir
(Too complicated to serve as a very good example - sorry.)
If there are warnings/errors from the compiler, they will be hyperlinked 
to the proper sources, unlike the temp dir trick.

-J.
--
[EMAIL PROTECTED]   x22801   netbeans.org   ant.apache.org
if I had known it was harmless I would have killed it myself
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


cvs commit: ant/docs/manual/CoreTasks loadproperties.html

2005-04-19 Thread jglick
jglick  2005/04/19 12:21:10

  Modified:docs/manual/CoreTasks loadproperties.html
  Log:
  Noting a difference between property file=.../ and loadproperties 
srcfile=.../.
  
  Revision  ChangesPath
  1.11  +2 -0  ant/docs/manual/CoreTasks/loadproperties.html
  
  Index: loadproperties.html
  ===
  RCS file: /home/cvs/ant/docs/manual/CoreTasks/loadproperties.html,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- loadproperties.html   7 Mar 2005 18:09:09 -   1.10
  +++ loadproperties.html   19 Apr 2005 19:21:10 -  1.11
  @@ -13,6 +13,8 @@
   Load a file's contents as Ant properties.  This is equivalent
   to codelt;property file|resource=quot;...quot;/gt;/code except that 
it
   supports nested codelt;filterchaingt;/code elements.
  +Also if the file is missing, the build is halted with an error, rather
  +than a warning being printed.
   /p
   
   pIf you want to simulate a href=property.htmlproperty/a's
  
  
  

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



DO NOT REPLY [Bug 22020] - [PATCH] addition of access atribute to target.. task

2005-04-19 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=22020.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=22020


[EMAIL PROTECTED] changed:

   What|Removed |Added

 CC||[EMAIL PROTECTED]




--- Additional Comments From [EMAIL PROTECTED]  2005-04-19 21:25 ---
Well, 1.5 years later, I am again in need of something along these lines, so I
figured I might as well ping this bug...

The current scenario is I am trying to set up a simple text based interactive
build that uses input to collect various parameters (rather than having 15
different -D arguments). This will be distributed as part of a zip file and used
by the customer to create a warfile with the tweaks needed for their 
environment.

Since the customer gets the source code ayway, the quickest way to do this zip
up the source and write an small build file that imports the development build,
but hides dangerous targets from the user. It would be a disaster if they
accidentally ran recreate-db against their production DB since the first thing
it does is wipe the entire database.

This need is slightly different than the intent of my patch, but closely
related. I have created duplicate targets in the build file to match the one
imported which helps (forcing the targets to be refered to as
buildname.sometarget instead of just sometarget), but imported targets show up
under project help.

Has any further thought been given to controling access to targets? Have I
missed something in the past year? (I'm re-subscribing to the dev list so feel
free to answer me there)

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



cvs commit: ant/src/script runant.py

2005-04-19 Thread stevel
stevel  2005/04/19 12:26:33

  Modified:src/script runant.py
  Log:
  flush any output before we run.
  
  Revision  ChangesPath
  1.9   +1 -0  ant/src/script/runant.py
  
  Index: runant.py
  ===
  RCS file: /home/cvs/ant/src/script/runant.py,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- runant.py 9 Feb 2004 21:05:40 -   1.8
  +++ runant.py 19 Apr 2005 19:26:33 -  1.9
  @@ -95,6 +95,7 @@
   
   if debug:
   print '\n%s\n\n' % (cmdline)
  +sys.stdout.flush()
   
   # Run the biniou!
   os.system(cmdline)
  
  
  

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



DO NOT REPLY [Bug 34530] New: - APT Task Documentation is missing

2005-04-19 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=34530.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=34530

   Summary: APT Task Documentation is missing
   Product: Ant
   Version: 1.6.3beta1
  Platform: Other
OS/Version: other
Status: NEW
  Severity: normal
  Priority: P2
 Component: Documentation
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


The documentation for the APT task is missing from the 1.6.3beta1 docs.
The apt.html is present in cvs, as is it's reference in coretasklist.html.

However, these files are not in the manual on the site, or in the 
distribution.  Also, upon further review, the class files are not in this 
distribution either.  These were all committed sometime around october.

I'm not sure where the source for 1.6.3 came from, but it does not appear to be 
the HEAD branch in CVS.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



Re: [VOTE] Ant 1.6.3 release

2005-04-19 Thread Matt Benson

--- Antoine Levy-Lambert [EMAIL PROTECTED] wrote:
 Do we want to release Ant 1.6.3 on Thursday, April
 28th ?
 
 Yes [X]
 No  [ ]
 

-Matt

 Cheers,
 
 Antoine
 
 
 

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

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



DO NOT REPLY [Bug 34530] - APT Task Documentation is missing

2005-04-19 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=34530.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=34530





--- Additional Comments From [EMAIL PROTECTED]  2005-04-19 22:27 ---
To answer your other question:

 I'm not sure where the source for 1.6.3 came from, but it does not appear to 
 be 
 the HEAD branch in CVS.

Indeed you are correct; the source for 1.6.3 comes from the ANT_16_BRANCH in 
CVS.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 34530] - APT Task Documentation is missing

2005-04-19 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=34530.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=34530


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||INVALID




--- Additional Comments From [EMAIL PROTECTED]  2005-04-19 22:25 ---
I think this indicates that the task has not been considered ready for release
in Ant 1.6.3 and will more likely show up in Ant 1.7 .  Steve, please correct me
if I'm wrong and reopen.

Thanks,
Matt

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



cvs commit: ant/src/main/org/apache/tools/ant/launch Locator.java

2005-04-19 Thread jkf
jkf 2005/04/19 13:55:17

  Modified:src/main/org/apache/tools/ant/launch Tag: ANT_16_BRANCH
Locator.java
  Log:
  Avoid using of CharacterIterator for URIs that do not contain %, as suggested 
in pr34529.
  PR: 34529
  
  Revision  ChangesPath
  No   revision
  No   revision
  1.6.2.8   +15 -3 ant/src/main/org/apache/tools/ant/launch/Locator.java
  
  Index: Locator.java
  ===
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/launch/Locator.java,v
  retrieving revision 1.6.2.7
  retrieving revision 1.6.2.8
  diff -u -r1.6.2.7 -r1.6.2.8
  --- Locator.java  23 Apr 2004 14:33:33 -  1.6.2.7
  +++ Locator.java  19 Apr 2005 20:55:17 -  1.6.2.8
  @@ -126,6 +126,20 @@
   uri = uri.substring(1);
   }
   
  +String path = decodeUri(uri);
  +return path;
  +}
  +
  +/**
  + * Decodes an Uri with % characters.
  + * @param uri String with the uri possibly containing % characters.
  + * @return The decoded Uri
  + */
  +private static String decodeUri(String uri) {
  +if (uri.indexOf('%') == -1)
  +{
  +return uri;
  +}
   StringBuffer sb = new StringBuffer();
   CharacterIterator iter = new StringCharacterIterator(uri);
   for (char c = iter.first(); c != CharacterIterator.DONE;
  @@ -144,12 +158,10 @@
   sb.append(c);
   }
   }
  -
   String path = sb.toString();
   return path;
   }
  -
  -
  +
   /**
* Get the File necessary to load the Sun compiler tools. If the classes
* are available to this class, then no additional URL is required and
  
  
  

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



DO NOT REPLY [Bug 34534] New: - FTP Password Problem

2005-04-19 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=34534.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=34534

   Summary: FTP Password Problem
   Product: Ant
   Version: 1.6.2
  Platform: PC
OS/Version: Windows 2000
Status: NEW
  Severity: normal
  Priority: P4
 Component: Optional Tasks
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]


I just found out if the FTP password contains 2 consecutive $s (for 
example, hello$$), the FTP task will fail to login and the error 
message Could not login to FTP server will be thrown.

Please verify and fix it.

Thanks
Jiangtao

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



[Ant Wiki] Update of AntNewbies by MattBenson

2005-04-19 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on Ant Wiki for change 
notification.

The following page has been changed by MattBenson:
http://wiki.apache.org/ant/AntNewbies

--
  
  Exception in thread main java.lang.NoClassDefFoundError: 
org/apache/tools/ant/launch/Launcher
  
+ '''Answer #12''' This is a FAQ; see 
http://ant.apache.org/faq.html#NoClassDefFoundError .
+ 

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



DO NOT REPLY [Bug 34534] - Should document $$ escaping (or show where other than javac.html it is documented).

2005-04-19 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=34534.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=34534


[EMAIL PROTECTED] changed:

   What|Removed |Added

  Component|Optional Tasks  |Documentation
Summary|FTP Password Problem|Should document $$ escaping
   ||(or show where other than
   ||javac.html it is
   ||documented).




--- Additional Comments From [EMAIL PROTECTED]  2005-04-19 23:14 ---
Because $ is a special character used for property expansion in Ant, $$ is
treated as an escape sequence for $ .  A single $ not followed by a brace is
treated as a single $ for reasons of backward compatibility.  Your problem
should be fixed by specifying $$ as  .  I will mark this as a documentation
issue.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



[Ant Wiki] Trivial Update of AntNewbies by PhilWS

2005-04-19 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on Ant Wiki for change 
notification.

The following page has been changed by PhilWS:
http://wiki.apache.org/ant/AntNewbies

--
  
  '''Answer #7''' - Use the depend task. It will handle most of what you 
want. 
  
+ '''Answer #7.5''' - Alternatively try the javamake/ variant of the javac/ 
task, available from [http://www.experimentalstuff.com/Technologies/JavaMake/].
+ 
  
  
  

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



cvs commit: ant WHATSNEW

2005-04-19 Thread jkf
jkf 2005/04/19 14:21:03

  Modified:.Tag: ANT_16_BRANCH WHATSNEW
  Log:
  Avoid using of CharacterIterator for URIs that do not contain %, as suggested 
in pr34529.
  PR: 34529
  
  Revision  ChangesPath
  No   revision
  No   revision
  1.503.2.218 +2 -0  ant/WHATSNEW
  
  Index: WHATSNEW
  ===
  RCS file: /home/cvs/ant/WHATSNEW,v
  retrieving revision 1.503.2.217
  retrieving revision 1.503.2.218
  diff -u -r1.503.2.217 -r1.503.2.218
  --- WHATSNEW  19 Apr 2005 05:19:11 -  1.503.2.217
  +++ WHATSNEW  19 Apr 2005 21:21:03 -  1.503.2.218
  @@ -316,6 +316,8 @@
   
   * forkmode=perBatch or once would ignore extension attributes that
 had been specified for formatters.  Bugzilla Report 32973.
  +  
  +* minor performance update of Locator.fromUri. Bugzilla Report 34529.
   
   * The refid attribute of the I/O redirector was not functional.
   
  
  
  

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



DO NOT REPLY [Bug 34529] - Suboptimal analyzing of project build files

2005-04-19 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=34529.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=34529


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED




--- Additional Comments From [EMAIL PROTECTED]  2005-04-19 23:21 ---
Decoding file URI's without % sign by the Locatorclass now has improved
performance. By not trying to interpret % in URIs that do not contain % signs at
all. Further optimizations may be applied when this spot stays hot.

Bug 25767 is described elsewhere and not taken into consideration in this 
report.

RuntimeConfigurable indeed has two data structures, one is a List with keys,
maintaining the order, one is a HashMap for fast retrievel. In jdk 1.2 no Map is
present maintaining both speed, and ordered storage. Please note that the data
itself is not duplicated, it is just that the keys are referenced from two
different data structures. If you have a good way to get both, please let us 
know.

ProjectHelper.getProjectHelper uses methods get(System)ResourceAsStream, which
are specified to return null in case the resource is not available, so there
should not be a need to do a check first. The null value is checked before
actually reading from the stream.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 34534] - Should document $$ escaping (or show where other than javac.html it is documented).

2005-04-19 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=34534.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=34534


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED




--- Additional Comments From [EMAIL PROTECTED]  2005-04-19 23:39 ---
Your suggestion works for me, and specifying $$ as $$$ works fine too.

Thanks.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 34534] - Should document $$ escaping (or show where other than javac.html it is documented).

2005-04-19 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=34534.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=34534


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|FIXED   |




--- Additional Comments From [EMAIL PROTECTED]  2005-04-19 23:44 ---
I thought it might.  Reopening so we don't forget to update the documentation.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 34529] - Suboptimal analyzing of project build files

2005-04-19 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=34529.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=34529





--- Additional Comments From [EMAIL PROTECTED]  2005-04-19 23:55 ---
When was Locator improved? Can you set the Target Milestone accordingly?

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



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

2005-04-19 Thread stevel
stevel  2005/04/19 15:23:39

  Modified:docs/manual/CoreTasks conditions.html
   src/main/org/apache/tools/ant/taskdefs/condition Os.java
   src/main/org/apache/tools/ant/taskdefs Chmod.java
  Log:
  Os gets
   -specific test for nt based systems
   -refactored (less recursive) OS analysis
   -constant strings for every family
  Patched into chmod.
  
  Revision  ChangesPath
  1.35  +3 -1  ant/docs/manual/CoreTasks/conditions.html
  
  Index: conditions.html
  ===
  RCS file: /home/cvs/ant/docs/manual/CoreTasks/conditions.html,v
  retrieving revision 1.34
  retrieving revision 1.35
  diff -u -r1.34 -r1.35
  --- conditions.html   7 Apr 2005 22:22:25 -   1.34
  +++ conditions.html   19 Apr 2005 22:23:39 -  1.35
  @@ -113,7 +113,9 @@
 linetware (for Novell NetWare)/li
 lios/2 (for OS/2)/li
 litandem (for HP's NonStop Kernel - formerly Tandem)/li
  -  liwin9x for Microsoft Windows 95 and 98/li
  +  liwin9x for Microsoft Windows 95 and 98, ME and CE/li
  +  lint for Microsoft Windows NT-based systems, including Windows 2000, XP 
and
  +  successors/li
 liz/os for z/OS and OS/390/li
 lios/400 for OS/400/li
 liopenvms for OpenVMS/li
  
  
  
  1.37  +97 -25
ant/src/main/org/apache/tools/ant/taskdefs/condition/Os.java
  
  Index: Os.java
  ===
  RCS file: 
/home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/condition/Os.java,v
  retrieving revision 1.36
  retrieving revision 1.37
  diff -u -r1.36 -r1.37
  --- Os.java   10 Mar 2005 12:50:58 -  1.36
  +++ Os.java   19 Apr 2005 22:23:39 -  1.37
  @@ -36,10 +36,68 @@
   private static final String PATH_SEP =
   System.getProperty(path.separator);
   
  +/**
  + * OS family to look for
  + */
   private String family;
  +/**
  + * Name of OS
  + */
   private String name;
  +/**
  + * version of OS
  + */
   private String version;
  +/**
  + * OS architecture
  + */
   private String arch;
  +/**
  + * OS family that can be tested for. [EMAIL PROTECTED]
  + */
  +public static final String FAMILY_WINDOWS = windows;
  +/**
  + * OS family that can be tested for. [EMAIL PROTECTED]
  + */
  +public static final String FAMILY_9X = win9x;
  +/**
  + * OS family that can be tested for. [EMAIL PROTECTED]
  + */
  +public static final String FAMILY_NT = nt;
  +/**
  + * OS family that can be tested for. [EMAIL PROTECTED]
  + */
  +public static final String FAMILY_OS2 = os/2;
  +/**
  + * OS family that can be tested for. [EMAIL PROTECTED]
  + */
  +public static final String FAMILY_NETWARE = netware;
  +/**
  + * OS family that can be tested for. [EMAIL PROTECTED]
  + */
  +public static final String FAMILY_DOS = dos;
  +/**
  + * OS family that can be tested for. [EMAIL PROTECTED]
  + */
  +public static final String FAMILY_MAC = mac;
  +/**
  + * OS family that can be tested for. [EMAIL PROTECTED]
  + */
  +public static final String FAMILY_TANDEM = tandem;
  +/**
  + * OS family that can be tested for. [EMAIL PROTECTED]
  + */
  +public static final String FAMILY_UNIX = unix;
  +/**
  + * OS family that can be tested for. [EMAIL PROTECTED]
  + */
  +public static final String FAMILY_VMS = openvms;
  +/**
  + * OS family that can be tested for. [EMAIL PROTECTED]
  + */
  +public static final String FAMILY_ZOS = z/os;
  +/** OS family that can be tested for. [EMAIL PROTECTED] */
  +public static final String FAMILY_OS400 = os/400;
   
   /**
* Default constructor
  @@ -186,35 +244,49 @@
   boolean isVersion = true;
   
   if (family != null) {
  -if (family.equals(windows)) {
  -isFamily = OS_NAME.indexOf(windows)  -1;
  -} else if (family.equals(os/2)) {
  -isFamily = OS_NAME.indexOf(os/2)  -1;
  -} else if (family.equals(netware)) {
  -isFamily = OS_NAME.indexOf(netware)  -1;
  -} else if (family.equals(dos)) {
  -isFamily = PATH_SEP.equals(;)  !isFamily(netware);
  -} else if (family.equals(mac)) {
  -isFamily = OS_NAME.indexOf(mac)  -1;
  -} else if (family.equals(tandem)) {
  -isFamily = OS_NAME.indexOf(nonstop_kernel)  -1;
  -} else if (family.equals(unix)) {
  -isFamily = PATH_SEP.equals(:)
  - !isFamily(openvms)
  - (!isFamily(mac) || OS_NAME.endsWith(x));
  -} else if (family.equals(win9x)) {
  -isFamily = 

cvs commit: ant/src/testcases/org/apache/tools/ant/taskdefs ExecTaskTest.java

2005-04-19 Thread stevel
stevel  2005/04/19 15:26:37

  Modified:docs/manual/CoreTasks exec.html
   src/etc/testcases/taskdefs/exec exec.xml
   src/main/org/apache/tools/ant/taskdefs ExecTask.java
   src/testcases/org/apache/tools/ant/taskdefs
ExecTaskTest.java
  Log:
  Now for the fun. Exec adds an osfamily attribute, so you can restrict 
execution to a platform such as nt, or unix. This propagates to execon, so into 
chmod, attrib, etc. We could therefore adapt them use osfamily as their way of 
being unix or windows only.
  
  Revision  ChangesPath
  1.50  +9 -2  ant/docs/manual/CoreTasks/exec.html
  
  Index: exec.html
  ===
  RCS file: /home/cvs/ant/docs/manual/CoreTasks/exec.html,v
  retrieving revision 1.49
  retrieving revision 1.50
  diff -u -r1.49 -r1.50
  --- exec.html 30 Mar 2005 17:08:27 -  1.49
  +++ exec.html 19 Apr 2005 22:26:37 -  1.50
  @@ -17,7 +17,7 @@
   
   pNote that you cannot interact with the forked program, the only way
   to send input to it is via the input and inputstring attributes. Also note 
that
  -in Ant 1.6, any attempt to read input in the forked program will receive an
  +since Ant 1.6, any attempt to read input in the forked program will receive 
an
   EOF (-1). This is a change from Ant 1.5, where such an attempt would 
block./p
   
   
  @@ -115,7 +115,14 @@
   td valign=toplist of Operating Systems on which the command may be
 executed. If the current OS's name is contained in this list, the 
command will
 be executed. The OS's name is determined by the Java Virtual machine 
and is set
  -  in the quot;os.namequot; system property./td
  +  in the quot;os.namequot; system property.
  +  /td
  +td align=center valign=topNo/td
  +  /tr
  +  tr
  +td valign=toposfamily/td
  +td valign=topOS family as used in the lt;osgt; condition.
  +emsince Ant 1.7/em/td
   td align=center valign=topNo/td
 /tr
 tr
  
  
  
  1.6   +28 -0 ant/src/etc/testcases/taskdefs/exec/exec.xml
  
  Index: exec.xml
  ===
  RCS file: /home/cvs/ant/src/etc/testcases/taskdefs/exec/exec.xml,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- exec.xml  24 Sep 2004 18:55:16 -  1.5
  +++ exec.xml  19 Apr 2005 22:26:37 -  1.6
  @@ -329,6 +329,34 @@
   /fail
   /target
   
  +!-- test will succeed as the OS wont match--
  +target name=testExecUnknownOS
  +  exec executable=nonexistent-program-we-expect
  +failonerror=true
  +os=ZX81
  +  /exec
  +/target
  +
  +target name=testExecOSFamily
  +  exec executable=uptime
  +failonerror=true
  +osFamily=unix
  +  /exec
  +  exec executable=time
  +failonerror=true
  +osFamily=nt
  +arg value=/t /
  +  /exec
  +/target
  +
  +target name=testExecInconsistentSettings
  +  exec executable=nonexistent-program-we-expect
  +failonerror=true
  +osFamily=WIN9X
  +os=linux unix
  +  /exec
  +/target
  +
   target name=cleanup
   delete
   fileset file=${logFile} /
  
  
  
  1.81  +31 -6 ant/src/main/org/apache/tools/ant/taskdefs/ExecTask.java
  
  Index: ExecTask.java
  ===
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/ExecTask.java,v
  retrieving revision 1.80
  retrieving revision 1.81
  diff -u -r1.80 -r1.81
  --- ExecTask.java 11 Mar 2005 20:29:00 -  1.80
  +++ ExecTask.java 19 Apr 2005 22:26:37 -  1.81
  @@ -21,10 +21,13 @@
   import java.io.IOException;
   import java.util.Enumeration;
   import java.util.Vector;
  +import java.util.Locale;
  +
   import org.apache.tools.ant.BuildException;
   import org.apache.tools.ant.Project;
   import org.apache.tools.ant.Task;
   import org.apache.tools.ant.ProjectComponent;
  +import org.apache.tools.ant.taskdefs.condition.Os;
   import org.apache.tools.ant.types.Commandline;
   import org.apache.tools.ant.types.Environment;
   import org.apache.tools.ant.types.Path;
  @@ -43,6 +46,7 @@
   private static final FileUtils FILE_UTILS = FileUtils.getFileUtils();
   
   private String os;
  +private String osFamily;
   
   private File dir;
   protected boolean failOnError = false;
  @@ -383,6 +387,15 @@
   
   
   /**
  + * Restrict this execution to a single OS Family
  + * @param osFamily
  + */
  +public void setOsFamily(String osFamily) {
  +this.osFamily = osFamily.toLowerCase(Locale.US);
  +}
  +
  +
  +/**
* The method attempts to figure out where the executable is so that we 
can feed
* the full path. We first try basedir, then the exec dir, 

cvs commit: ant/docs/manual/CoreTasks apply.html

2005-04-19 Thread stevel
stevel  2005/04/19 15:28:22

  Modified:docs/manual/CoreTasks apply.html
  Log:
  Now for the fun. Exec adds an osfamily attribute, so you can restrict 
execution to a platform such as nt, or unix. This propagates to execon, so into 
chmod, attrib, etc. We could therefore adapt them use osfamily as their way of 
being unix or windows only.
  
  Revision  ChangesPath
  1.37  +6 -0  ant/docs/manual/CoreTasks/apply.html
  
  Index: apply.html
  ===
  RCS file: /home/cvs/ant/docs/manual/CoreTasks/apply.html,v
  retrieving revision 1.36
  retrieving revision 1.37
  diff -u -r1.36 -r1.37
  --- apply.html7 Mar 2005 18:09:09 -   1.36
  +++ apply.html19 Apr 2005 22:28:22 -  1.37
  @@ -92,6 +92,12 @@
   td align=center valign=topNo/td
 /tr
 tr
  +td valign=toposfamily/td
  +td valign=topOS family as used in the lt;osgt; condition.
  +emsince Ant 1.7/em/td
  +td align=center valign=topNo/td
  +  /tr
  +  tr
   td valign=topoutput/td
   td valign=topthe file to which the output of the command
   should be redirected.  If the error stream is not also redirected
  
  
  

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



cvs commit: ant WHATSNEW

2005-04-19 Thread stevel
stevel  2005/04/19 15:30:38

  Modified:.WHATSNEW
  Log:
  add os and exec changes.
  
  Revision  ChangesPath
  1.809 +6 -0  ant/WHATSNEW
  
  Index: WHATSNEW
  ===
  RCS file: /home/cvs/ant/WHATSNEW,v
  retrieving revision 1.808
  retrieving revision 1.809
  diff -u -r1.808 -r1.809
  --- WHATSNEW  19 Apr 2005 05:22:45 -  1.808
  +++ WHATSNEW  19 Apr 2005 22:30:38 -  1.809
  @@ -175,6 +175,12 @@
 negate attribute to select lines -not- containing specified text.
 Bugzilla Report 34374.
   
  +* os condition adds nt as a family which can be tested. This is
  +  all windows platforms other than the Win9x line, and windows CE.  
  +
  +* exec (and hence, apply) have an OsFamily attribute, which can restrict
  +  execution to a single OS family.
  +
   Changes from Ant 1.6.2 to current Ant 1.6 CVS version
   =
   
  
  
  

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