Re: [help] Search a string in a file

2006-11-30 Thread Dharmesh Vyas
We have multiple solutions here now. :) . Thanks a lot for all your suggestions. - Dharmesh Vyas. On 11/30/06, Patrick Martin <[EMAIL PROTECTED]> wrote: Replying to my own email, using antcount (http://antcount.sourceforge.net/ ):

please update the next release of Ant 1.7 to Xerces 2.9.0

2006-11-30 Thread Jacob Kjome
I saw that one of the release notes for Ant-1.7.0RC1 was... "Upgraded XML API and parser to Xerces 2.8.1" You may be interested to know that Xerces has now released version 2.9.0 [1] and, along with it, a proper official release of xml-commons-external-1.3.04 (otherwise known as xml-apis-1.3.

RE: Changing Date format

2006-11-30 Thread Pritesh Saharey
I had the following library in my path bsf.jar (2.4.0) commons-logging-1.1.jar commons-logging-adapters-1.1.jar Js.jar Still I am getting the following error message: //--- chg-date: [dateConvert] Dec 1, 2006 9:16:45 AM org.apache.bsf.BSFManager exec [dateConvert] SEVERE: Exception : [dateCo

javac task with -Xlint

2006-11-30 Thread Ron Wheeler
How does one get ant to run the Java 1.6 compiler with the -Xlint argument in Eclipse? I am using Eclipse with 1.6.5 Ron - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Ant scripts and the Eclipse build process

2006-11-30 Thread Ron Wheeler
A bit more detail might get some useful help. An Eclipse buld is an Ant script. Ant works fine in Eclipse but that does not solve your problem. kindsol wrote: Hi All, Probably a dumb question, but I have searched and cannot find an answer -- I am not sure if this is an Eclipse question or and

RE: How to pass property?

2006-11-30 Thread Res Pons
That worked. Thank you very much. Original Message Follows From: "Anderson, Rob (Global Trade)" <[EMAIL PROTECTED]> Reply-To: "Ant Users List" To: "Ant Users List" , [EMAIL PROTECTED] Subject: RE: How to pass property? Date: Wed, 29 Nov 2006 15:31:50 -0800 The property you should set on

Ant scripts and the Eclipse build process

2006-11-30 Thread kindsol
Hi All, Probably a dumb question, but I have searched and cannot find an answer -- I am not sure if this is an Eclipse question or and Ant question. I have a working Eclipse project that builds correctly. I also have an ant script that works from the command-line. I want to add the ant s

RE: Ant-WebLogic problem

2006-11-30 Thread Karr, David
You might try setting the "verbose" property on "wlserver" to "true". It also might be useful, instead of using "wlserver", to use "wlconfig" and nest a "query" element for the "Server" bean, and either print or verify one or more of the bean properties. If you're still having trouble, you should

Re: Changing Date format

2006-11-30 Thread Peter Reilly
On 11/30/06, Steve Loughran <[EMAIL PROTECTED]> wrote: Peter Reilly wrote: > On 11/30/06, Pritesh Saharey <[EMAIL PROTECTED]> wrote: >> >> Thanks for quick reply, but when I tried to use the code like this: >> >> //-- >> //--

Re: Changing Date format

2006-11-30 Thread Steve Loughran
Peter Reilly wrote: On 11/30/06, Pritesh Saharey <[EMAIL PROTECTED]> wrote: Thanks for quick reply, but when I tried to use the code like this: //-- //-- When I tried running my build file, it's giving me l

Re: Changing Date format

2006-11-30 Thread Peter Reilly
On 11/30/06, Pritesh Saharey <[EMAIL PROTECTED]> wrote: Thanks for quick reply, but when I tried to use the code like this: //-- //-- When I tried running my build file, it's giving me logging error . .

AW: Changing Date format

2006-11-30 Thread Jan.Materne
1. As I wrote - that's pseudocode. Means: you have to fix a little bit (like the >>while(line = in.readLine())<< statement - you cant iterate over a java.io.File) 2. It seems you havent installed all required libraries. Does the BSF have a dependency on commons-logging now? Then we have to

RE: Changing Date format

2006-11-30 Thread Pritesh Saharey
Thanks for quick reply, but when I tried to use the code like this: //-- //-- When I tried running my build file, it's giving me logging error //-

Re: AntForm question

2006-11-30 Thread Patrick Martin
Hello, If I understand correctly, you want antform to diaply when running in user mode but not when running automatically. I guess the easiest for that is to set a property in your automated task command line and call antform only if this property is not set. This can be achieved with if/unless

Re: AntForm question

2006-11-30 Thread Hans Schwaebli
Hi Patrick, thank you for the quick implementation. Lets assume I have a target which might be called by a user or automated by a nightly build. If the nightly build calls it, then your solution works. It requires using the "unless" attribute. But if a user calls it, the unless

Re: [help] Search a string in a file

2006-11-30 Thread Patrick Martin
Replying to my own email, using antcount (http://antcount.sourceforge.net/): Number of Rebuild All: ${number.of.rebui

Re: Ant-WebLogic problem

2006-11-30 Thread Steve Loughran
Pieter Temmerman wrote: Hi Guys, Please excuse me if this is not the proper mailing list to post my message: I am trying to connect to my WebLogic 9.2 server through Ant. This is my build.xml snippet: (wlserver is a weblogic ant task) When I run Ant with this build.xml file I get BUILD

Re: [script]masking dotted ant properties ?

2006-11-30 Thread Peter Reilly
The reason is that ant properties may have names that are not valid variable names in the the various scritpting languages - so ant only makes variables out of the properties that have a chance of being a valid variable name in most lanuages. for example: $ant.working.dir is not a valid ruby glob

RE: [script]masking dotted ant properties ?

2006-11-30 Thread Rebhan, Gilbert
Thanks a lot Peter !! Didn't realise it would be that easy In the meantime i tried with

Re: [script]masking dotted ant properties ?

2006-11-30 Thread Peter Reilly
There is no syntax for the dotted properties. The only properties that are set in scripts are those that have "java identifier" like names. Use: puts $project.getProperty('ant.working.dir') On 11/30/06, Rebhan, Gilbert <[EMAIL PROTECTED]> wrote: Hi, i use jruby with the task in ant. j

AW: Tstamp & co - setting a property with value = milliseconds since 1970

2006-11-30 Thread Jan.Materne
If you dont find a pattern on SimpleDateFormat [1], you could write a custom task Jan [1] http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html >-Ursprüngliche Nachricht- >Von: Numain [mailto:[EMAIL PROTECTED] >Gesendet: Mittwoch, 29. November 2

AW: Changing Date format

2006-11-30 Thread Jan.Materne
Custom task, like (pseudocode) Jan >-Ursprüngliche Nachricht- >Von: Pritesh Saharey [mailto:[EMAIL PROTECTED] >Gesendet: Donnerstag, 30. November 2006 08:05 >An: 'Ant Users List' >Betreff: Changing Date format > > >Dear All, > I had a file named "data", whi