RE: java.lang.NullPointerException

2006-05-11 Thread Evi
Yes, the exclamation mark was the cause of the problem Evi >-Original Message- >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >Sent: Friday, May 12, 2006 8:12 AM >To: user@ant.apache.org >Subject: AW: java.lang.NullPointerException > >Maybe because the exclamation mark is separator

AW: java.lang.NullPointerException

2006-05-11 Thread Jan.Materne
Maybe because the exclamation mark is separator according to [1]. Didnt went deeper into that Jan [1] http://java.sun.com/j2se/1.4.2/docs/api/java/net/JarURLConnection.html >-Ursprüngliche Nachricht- >Von: Anderson, Rob (Global Trade) [mailto:[EMAIL PROTECTED] >Gesendet: Donnerst

AW: Counting lines in a file

2006-05-11 Thread Jan.Materne
And maybe there are some existing tasks you could use, like http://antcount.sourceforge.net/ ;-) Jan >-Ursprüngliche Nachricht- >Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >Gesendet: Freitag, 12. Mai 2006 07:28 >An: user@ant.apache.org >Betreff: AW: Counting lines in a file > >>

AW: Counting lines in a file

2006-05-11 Thread Jan.Materne
>import java.io.BufferedReader; >import java.io.File; >import java.io.FileReader; >import java.util.ArrayList; > >import org.apache.tools.ant.BuildException; >import org.apache.tools.ant.Task; > >public class LineCounter extends Task >{ > public String filename; > public void Execute()

AW: ant 1.6.2 conditional issue

2006-05-11 Thread Jan.Materne
A look into Ant's buildfile [1] would help ;-) Ant has support classes for different JDKs, but must be able to build on a JDK 1.2. Therefore there are mechanisms for handling that: Simply checks for the existence of a 'newer' class. Then you can use conditional targets

RE: deploy by ant

2006-05-11 Thread Raghuveer
I need to delpoy on OC4J and runs with LDAP SQL server. LDAP,LOG 4J,DATABASE datsource configration properties changes based on environment like TEST,DEVELOPMENT,PRODUCTION -Original Message- From: Bhadra, Jatin [mailto:[EMAIL PROTECTED] Sent: Thursday, May 11, 2006 1:38 PM To: '[EMAIL PR

RE: Counting lines in a file

2006-05-11 Thread EJ Ciramella
Nevermind - change Execute to execute and everything is well -Original Message- From: EJ Ciramella Sent: Thursday, May 11, 2006 6:42 PM To: 'Ant Users List' Subject: RE: Counting lines in a file I'm not seeing the output from my class now (I know this is a simple/stupid thing on my

RE: Counting lines in a file

2006-05-11 Thread EJ Ciramella
I'm not seeing the output from my class now (I know this is a simple/stupid thing on my part), what am I doing wrong: import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.util.ArrayList; import org.apache.tools.ant.BuildException; import org.apache.tools.ant.

Re: ant 1.6.2 conditional issue

2006-05-11 Thread Scot P. Floess
Which version of ant are you using? Looks like the documentation for states ant 1.5 or later...If you are using a 1.4 version, maybe move up to ant 1.6.5 - its awesome :) The problem (its not really a problem) in using conditions is that it may force you to use something like a: condition

Re: Counting lines in a file

2006-05-11 Thread Rich Wagner
Is there any good way to count how many lines in a file there is? You could also write a simple, custom Task to do this; see the online Ant manual for guidance... -- Rich Wagner

Re: Counting lines in a file

2006-05-11 Thread Jeffrey E Care
exec wc Jeffrey E. (Jeff) Care [EMAIL PROTECTED] IBM WebSphere Application Server Development WAS Pyxis Lead Release Engineer "EJ Ciramella" <[EMAIL PROTECTED]> 05/11/2006 05:10 PM

Counting lines in a file

2006-05-11 Thread EJ Ciramella
Is there any good way to count how many lines in a file there is?

ant 1.6.2 conditional issue

2006-05-11 Thread Jignesh Shah
Hi, I am using ant 1.6.2 and my ant build need to do seperate things based on the jvm the developer is using to build the project. I thought of doing: but somehow it says my ant version does not support this... is there anyway to convert it to & , I could not find the exact syntax a

RE: java.lang.NullPointerException

2006-05-11 Thread Anderson, Rob (Global Trade)
It looks like Ant is not happy with the exclamation mark in your path "C:\!portaal...". I get the same error when I try to start Ant with an exclamation mark in ANT_HOME. Move Ant to a path without an exclamation mark, reset ANT_HOME and try again. -Rob Anderson > -Original Message- > Fro

RE: Add html tags in a text file

2006-05-11 Thread Anderson, Rob (Global Trade)
I would suggest creating a template html file like the following template_html.txt _CONTENTS_ Then use to load the contents of the text file into a property and and to create the new html file. Something like... If you have a directory full of these text files, you cou

RE: ClearCase Questions

2006-05-11 Thread Anderson, Rob (Global Trade)
You could use Ant to do that. Please read the manual... http://ant.apache.org/manual/index.html Also check out... http://www.catb.org/~esr/faqs/smart-questions.html I'm not trying to be a jerk, but most people on this list are not willing to do all the work for you, but are certainly willing to

Re: ClearCase Questions

2006-05-11 Thread Irfan J Sayed
you mean to say that through build.xml you want to create snapshot view and write the config spec file ? please clarify. Regards Irfan Sayed "Li, Sherri \(Exchange\)" <[EMAIL PROTECTED]> 05/11/2006 08:37 PM Please respond to "Ant Users List" To "Ant Users List" cc Subject ClearCase Q

java.lang.NullPointerException

2006-05-11 Thread Evi
Hello, I am totally new to ant and have problems with installing it. Did everything as suggested in installing instruction but get the following message: C:\>ant java.lang.NullPointerException at org.apache.tools.ant.launch.Launcher.run(Launcher.java:201) at org.apache.tools.ant.l

Re: Ordered fileset

2006-05-11 Thread Scot P. Floess
Klaus: Check out the timestampselector in ant contrib. I see you using the "for" task so I assume you are familiar with ant contrib ;) From the documentation, it has a count attribute "the number of files to find. If more than 1, than the files in the output appear in the order indicated by

Re: Ordered fileset

2006-05-11 Thread Matt Benson
Ant 1.7 adds resourcecollections including the collection which will sort another resourcecollection (e.g. fileset) according to a specified resourcecomparator. If you care to build Ant from svn HEAD you could try it out now, or wait for 1.7 (2-5 months maybe?) -Matt --- "Allwicher, Klaus" <[EM

RE: sshexec hangs after remote script exits

2006-05-11 Thread Brown, Carlton
I simplified the mechanism to just an Ant script that calls a remote script that performs a "sleep" and I tested it up to 1 hour 1 second (much longer than my script runs). I was unable to reproduce the behavior, so it must be something to do with the remote script that's being invoked. However,

Ordered fileset

2006-05-11 Thread Allwicher, Klaus
Hi, I have to process different files ordered by their creation date. (In more detail, I have to import them and have to assure the the contents of newer archives are not overwritten by the contents of older files). If there a possiblity to define an order for filesets or are there any other ways

ClearCase Questions

2006-05-11 Thread Li, Sherri \(Exchange\)
I need to create a snapshot view and write the config spec file as well. The build.xml will be executed from the desktop with a team. How can I achieve it? Thanks, Sherri *** Bear Stearns is not responsible for any recommend

Re: conditional??????

2006-05-11 Thread Jeffrey E Care
google antcontrib Jeffrey E. (Jeff) Care [EMAIL PROTECTED] IBM WebSphere Application Server Development WAS Pyxis Lead Release Engineer Alberto Marquÿe9s <[EMAIL PROTECTED]> wrote on

deploy under tomcat

2006-05-11 Thread Alberto Marquÿffffe9s
What I need is in this file of build that single does not execute target="predeploy" the first time. That it is possible to be executed all times q wants later. For that reason the variable primerdEPLoY = FALSE FOR Q EXECUTES FIRST BUILD and Later the change of value but does not work.

RE: conditional??????

2006-05-11 Thread Alberto Marquÿffffe9s
What I need is in this file of build that single does not execute target="predeploy" the first time. That it is possible to be executed all times q wants later. For that reason the variable primerdEPLoY = FALSE FOR Q EXECUTES FIRST BUILD and Later the change of value but does not work.

RE: conditional??????

2006-05-11 Thread Barrington-Hughes, Alan
You can use something like this Good luck -Original Message- From: Alberto Marquÿe9s [mailto:[EMAIL PROTECTED] Sent: Thursday, May 11, 2006 10:48 AM To: user@ant.apache.org Subject: conditiona

conditional??????

2006-05-11 Thread Alberto Marquÿffffe9s
I need a function or tag ant that serves like condition. If a property has value true of doing this if not to do this. Something exists thus: .task. - LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y móviles desde 1 céntimo

Re: Neither dirset nor fileset with type selector seem to select directories

2006-05-11 Thread Holger Rauch
Hi, first of all, thanks to both Scot and Matt for responding so quickly to my message. I tried to incorporate your suggestions into my buildfile and, to be honest, the results are still somewhat interesting: a) The combination of and a selector doesn't seem to work at all, i.e. the property

Re: Add html tags in a text file

2006-05-11 Thread James Abley
ANT build files are XML, thus, you need to ensure that it's well-formed, or (more probably in this case) escape any tags, use CDATA, or similar: etc, File rename - use a glob mapper http://ant.apache.org/manual/CoreTypes/mapper.html Cheers, James Mikael Petterson (KI/EAB) wro

Re: [SPAM-H] - Re: deploy by ant - Email has different SMTP TO: and MIME TO: fields in the email addresses

2006-05-11 Thread Devaraj, Geethakrishnan
i'll speak in the sense of a java project.. deploy refers to stopping a server,creating the neccessary jars,wars,running the scripts,copy the war to the domain folder,start the server.. a target deploy should depend on all these.. and aslo suppose ur server is located remotely u need to add an s

Re: deploy by ant

2006-05-11 Thread Joe Schmetzer
On Thu, 11 May, 2006 7:38 am, Raghuveer wrote: > My customer requirement is to use ANT. > i.e > - Application must use ANT to build and deploy > > I have written build.xml for build. > > What does "deploy" means. Deploy means to make your software available for use by end users. See http://en.

RE: Add html tags in a text file

2006-05-11 Thread Mikael Petterson \(KI/EAB\)
When I add the following: I get the following error: The element type "body" must be terminated by the matching end-tag "". Also I forgot to mention that I have a directory of text files that I want to add html tags into and change the ext