Re: Contrib: Attrib Task (chmod for Windows)

2003-07-18 Thread Conor MacNeill
On Fri, 18 Jul 2003 04:48 am, [EMAIL PROTECTED] wrote:
 (Used the wrong from address in my last post attempt,
 so this may get double posted - my apologies in advance
 if it does)

 I was looking for a Windows equiv of the chmod task
 and couldn't find it.  

In general, you need to check CVS when looking for this type of thing 
(particularly the WHATSNEW file). An attrib task has been added to Ant 1.6. 
Please checkout and try a nightly build to see if it meets your needs and 
whether you can add anything to its operation.

Thanks
Conor



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



Re: New external task: Just4log.

2003-07-18 Thread Antoine Levy-Lambert
The pointer to your external task has been added in CVS. It is going to
follow at some stage (I do not know exactly how soon ) on
ant.apache.org/external.html.
Cheers.
Antoine
- Original Message -
From: Lucas Bruand [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, July 17, 2003 11:10 PM
Subject: New external task: Just4log.


 Hello,

 Could someone tell me how to have the Just4log Ant Task referenced on
External Tools and Tasks page, of the ant website ?

 I would be very glad to see it listed there...

 Just4log is a ant task to optimize JVM bytecode with regards for Logs ( be
it, Log4j, Apache Commons or JDK 1.4 )
 It is distributed ( by me) under the terms of the Apache License 1.1.
 It depends on apache BCEL for Bytecode engineering.

 Please find a more precise description: http://just4log.sourceforge.net/

 Cheers,
 Lucas




 -
 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: CommonsLoggingListener

2003-07-18 Thread Antoine Levy-Lambert
Hi Steve,

In ant1.6alpha CommonsLoggingListener gets put into optional.jar (and also
in ant-commons-logging.jar presumably because of dependency upon Jakarta
Commons Logging).

I guess it is the same in ant 1.5.3.

You might be missing the Commons Logging library.

I notice that I do not see it listed in the manual under library
dependencies. :(
http://ant.apache.org/manual/install.html#librarydependencies

I will see if it is mentioned in the CVS HEAD version of this file or add
it.

Antoine
- Original Message -
From: Steve Cohen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, July 18, 2003 12:23 AM
Subject: CommonsLoggingListener


I made a build of Ant 1.5.3 and we have been using it in my shop for 2
or 3 months now.  Now one of my developers would like to use
org.apache.tools.ant.listener.CommonsLoggingListener, as mentioned in
Erik and Steve's book p. 507.  However, although I see the source file
in the 1.5.3
distribution, the build I made did not make a class file for it.

How do I do a build of ant that includes this file?  Is it the same deal
as with the optional tasks, that you must put some jar on the classpath
in order to build this file?

Thanks

--
Steve Cohen
Sr. Software Engineer
Sportvision Inc.

[EMAIL PROTECTED]
http://www.sportvision.com




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



Re: New external task: Just4log.

2003-07-18 Thread Conor MacNeill
On Fri, 18 Jul 2003 07:10 am, Lucas Bruand wrote:
 It is distributed ( by me) under the
 terms of the Apache License 1.1. 

You cannot declare code you maintain to be 

Copyright (c) 2003 The Apache Software Foundation.

Only the ASF can do that :-)

You can use an Apache-style license but you need to update the names in the 
copyright statement and section 4.

Cheers
Conor


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



Re: Antlib feedback

2003-07-18 Thread peter reilly
On Thu, 2003-07-17 at 20:23, Antoine Levy-Lambert wrote:
 Hi Peter,
 +1
 could you add also somewhere in the manual an explanation what ant-type
 means and which tasks or datatypes support it.

I will try. The other changes (new custom condition, filter
and selector type support in particular,
and the new add[configured](type) introspection pattern)
also need manual entries.

Peter



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



cvs commit: ant/src/main/org/apache/tools/ant/types PatternSet.java

2003-07-18 Thread conor
conor   2003/07/18 07:21:24

  Modified:src/main/org/apache/tools/ant/filters BaseFilterReader.java
HeadFilter.java StripJavaComments.java
TailFilter.java
   src/main/org/apache/tools/ant/filters/util
ChainReaderHelper.java
   src/main/org/apache/tools/ant/taskdefs Untar.java
WaitFor.java
   src/main/org/apache/tools/ant/taskdefs/optional/dotnet
CSharp.java DotnetBaseMatchingTask.java
DotnetCompile.java DotnetDefine.java Ilasm.java
ImportTypelib.java NetCommand.java
VisualBasicCompile.java WsdlToDotnet.java
   src/main/org/apache/tools/ant/types PatternSet.java
  Log:
  Last for a while ... :-)
  
  Revision  ChangesPath
  1.14  +6 -4  
ant/src/main/org/apache/tools/ant/filters/BaseFilterReader.java
  
  Index: BaseFilterReader.java
  ===
  RCS file: 
/home/cvs/ant/src/main/org/apache/tools/ant/filters/BaseFilterReader.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -w -u -r1.13 -r1.14
  --- BaseFilterReader.java 6 Jul 2003 09:57:35 -   1.13
  +++ BaseFilterReader.java 18 Jul 2003 14:21:21 -  1.14
  @@ -65,8 +65,10 @@
*
* @author Magesh Umasankar
*/
  -public abstract class BaseFilterReader
  -extends FilterReader {
  +public abstract class BaseFilterReader extends FilterReader {
  +/** Buffer size used when reading */
  +private static final int BUFFER_SIZE = 8192;
  +
   /** Have the parameters passed been interpreted? */
   private boolean initialized = false;
   
  @@ -116,7 +118,7 @@
*
* @exception  IOException  If an I/O error occurs
*/
  -public final int read(final char cbuf[], final int off,
  +public final int read(final char[] cbuf, final int off,
 final int len) throws IOException {
   for (int i = 0; i  len; i++) {
   final int ch = read();
  @@ -232,6 +234,6 @@
*reading
*/
   protected final String readFully() throws IOException {
  -return FileUtils.readFully(in, 8192);
  +return FileUtils.readFully(in, BUFFER_SIZE);
   }
   }
  
  
  
  1.11  +2 -3  ant/src/main/org/apache/tools/ant/filters/HeadFilter.java
  
  Index: HeadFilter.java
  ===
  RCS file: 
/home/cvs/ant/src/main/org/apache/tools/ant/filters/HeadFilter.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -w -u -r1.10 -r1.11
  --- HeadFilter.java   6 Jul 2003 09:57:35 -   1.10
  +++ HeadFilter.java   18 Jul 2003 14:21:21 -  1.11
  @@ -70,8 +70,7 @@
*
* @author Magesh Umasankar
*/
  -public final class HeadFilter
  -extends BaseParamFilterReader
  +public final class HeadFilter extends BaseParamFilterReader
   implements ChainableReader {
   /** Parameter name for the number of lines to be returned. */
   private static final String LINES_KEY = lines;
  @@ -83,7 +82,7 @@
   private long linesRead = 0;
   
   /** Default number of lines to show */
  -private static int DEFAULT_NUM_LINES = 10;
  +private static final int DEFAULT_NUM_LINES = 10;
   
   /** Number of lines to be returned in the filtered stream. */
   private long lines = DEFAULT_NUM_LINES;
  
  
  
  1.12  +2 -0  
ant/src/main/org/apache/tools/ant/filters/StripJavaComments.java
  
  Index: StripJavaComments.java
  ===
  RCS file: 
/home/cvs/ant/src/main/org/apache/tools/ant/filters/StripJavaComments.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -w -u -r1.11 -r1.12
  --- StripJavaComments.java23 Apr 2003 15:12:13 -  1.11
  +++ StripJavaComments.java18 Jul 2003 14:21:21 -  1.12
  @@ -62,6 +62,8 @@
* (if you have more complex Java parsing needs, use a real lexer).
* Since this class heavily relies on the single char read function,
* you are reccomended to make it work on top of a buffered reader.
  + *
  + * @author Not Specified.
*/
   public final class StripJavaComments
   extends BaseFilterReader
  
  
  
  1.12  +11 -7 ant/src/main/org/apache/tools/ant/filters/TailFilter.java
  
  Index: TailFilter.java
  ===
  RCS file: 
/home/cvs/ant/src/main/org/apache/tools/ant/filters/TailFilter.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -w -u -r1.11 -r1.12
  --- TailFilter.java   17 Jul 2003 15:44:36 -  1.11
  +++ TailFilter.java   18 Jul 2003 14:21:21 -  1.12
  @@ -73,8 +73,7 @@
*
* @author Magesh Umasankar
*/
  -public final class 

RE: cvs commit: ant/src/main/org/apache/tools/ant/taskdefs/condit ion Os.java

2003-07-18 Thread Wannheden, Knut
Stefan,

On OpenVMS System.getProperty(path.separator) returns :.  This causes
the Os condition to classify OpenVMS as Unix.  So the check for OpenVMS
needs to take place before the one for Unix.  And you have to guard the
check for Unix against OpenVMS in the same manner as you do against Mac.

Even adding two lines can result in bugs :-)

--
knut

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Donnerstag, 10. Juli 2003 13:53
 To: [EMAIL PROTECTED]
 Subject: cvs commit:
 ant/src/main/org/apache/tools/ant/taskdefs/condition Os.java
 
 
 bodewig 2003/07/10 04:52:50
 
   Modified:.WHATSNEW
docs/manual/CoreTasks conditions.html

 src/main/org/apache/tools/ant/taskdefs/condition Os.java
   Log:
   Detect OpenVMS as os family
   
   Revision  ChangesPath
   1.454 +2 -0  ant/WHATSNEW
   
   Index: WHATSNEW
   ===
   RCS file: /home/cvs/ant/WHATSNEW,v
   retrieving revision 1.453
   retrieving revision 1.454
   diff -u -r1.453 -r1.454
   --- WHATSNEW7 Jul 2003 13:05:02 -   1.453
   +++ WHATSNEW10 Jul 2003 11:52:50 -  1.454
   @@ -470,6 +470,8 @@
* patch has a new attribute destfile that can be used to 
 create a new
  file instead of patching files in place.

   +* OpenVMS is detected as a valid OS family.
   +
Changes from Ant 1.5.2 to Ant 1.5.3
===

   
   
   
   1.19  +1 -0  ant/docs/manual/CoreTasks/conditions.html
   
   Index: conditions.html
   ===
   RCS file: /home/cvs/ant/docs/manual/CoreTasks/conditions.html,v
   retrieving revision 1.18
   retrieving revision 1.19
   diff -u -r1.18 -r1.19
   --- conditions.html 23 May 2003 13:40:36 -  1.18
   +++ conditions.html 10 Jul 2003 11:52:50 -  1.19
   @@ -96,6 +96,7 @@
  liwin9x for Microsoft Windows 95 and 98/li
  liz/os for z/OS and OS/390/li
  lios/400 for OS/400/li
   +  liopenvms for OpenVMS/li
/ul

h4equals/h4
   
   
   
   1.26  +3 -1  
 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.25
   retrieving revision 1.26
   diff -u -r1.25 -r1.26
   --- Os.java 30 May 2003 09:31:45 -  1.25
   +++ Os.java 10 Jul 2003 11:52:50 -  1.26
   @@ -231,6 +231,8 @@
|| osName.indexOf(os/390)  -1;
} else if (family.equals(os/400)) {
isFamily = osName.indexOf(os/400)  -1;
   +} else if (family.equals(openvms)) {
   +isFamily = osName.indexOf(openvms)  -1;
} else {
throw new BuildException(
Don\'t know how to detect os family \
   
   
   
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


DO NOT REPLY [Bug 21721] New: - Provide local properties within a target

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

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

Provide local properties within a target

   Summary: Provide local properties within a target
   Product: Ant
   Version: 1.5.3
  Platform: Other
OS/Version: Other
Status: NEW
  Severity: Normal
  Priority: Other
 Component: Core tasks
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


Provide the ability to define local properties within a target for reuse 
within the defined tasks within that target

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