How to set an environment variable through Ant?

2007-11-01 Thread Saladin Sharif
rid of the shell script / batch script, and just set those environment variables directly in my Ant script (build.xml). Is this something possible with Ant? Thanks in advance, -Saladin ** * Saladin Sharif * e-mail: [EMAIL PROTECTED

Re: How to get the count of the number of lines in a file using ANT

2007-10-11 Thread Saladin Sharif
better approach would be to use the copy command, like so: This way if there are no occurances of ${lookingFor} in file ${output}, then an empty file gets written out to ${basedir}/temp.txt -Saladin ********** * Saladin Sharif * e-mail: [EM

Re: ant script just hang when checking out of CVS [Similar problem with cvstagdiff]

2007-10-11 Thread Saladin Sharif
I am using the cvs task instead of the exec task, I am assuming that my ANT script should be platform independent (i.e. run on both windows and unix). Thanks for your help, -Saladin ****** * Saladin Sharif * e-mail: [EMAIL PROTECTED] * Visi

Re: How to get the count of the number of lines in a file using ANT

2007-10-09 Thread Saladin Sharif
>I admit I'm not sure how "file contains one or more >lines of text" differs from "file is not empty," so: > > > > Good point :) Thanks, -Saladin ********** * Saladin Sharif * e-mail

Re: How to get the count of the number of lines in a file using ANT

2007-10-09 Thread Saladin Sharif
ful in clearing up the confusion. Thanks, -Saladin ********** * Saladin Sharif * e-mail: [EMAIL PROTECTED] * Visit homepage @ http://gaia.ecs.csus.edu/~sharifs ** - Original Message

Re: using ANT to check for any code changes in CVS

2007-10-09 Thread Saladin Sharif
Thanks. Not sure what are the differences between CruiseControl and Hudson, but I am taking a look at both. -Saladin ** * Saladin Sharif * e-mail: [EMAIL PROTECTED] * Visit homepage @ http://gaia.ecs.csus.edu/~sharifs

Re: How to get the count of the number of lines in a file using ANT

2007-10-09 Thread Saladin Sharif
t the flag, so that I could use it later on in my ANT script as a condition to check before running certain tasks. ********** * Saladin Sharif * e-mail: [EMAIL PROTECTED] * Visit homepage @ http://gaia.ecs.csus.edu/~sharifs *

Re: using ANT to check for any code changes in CVS

2007-10-09 Thread Saladin Sharif
r CVS changes in order to decide whether to run the regression tests or not. -Saladin ** * Saladin Sharif * e-mail: [EMAIL PROTECTED] * Visit homepage @ http://gaia.ecs.csus.edu/~sh

Re: using ANT to check for any code changes in CVS

2007-10-09 Thread Saladin Sharif
>You should look at CruiseControl. > Thanks for the suggestion. I do plan on checking it out. ****** * Saladin Sharif * e-mail: [EMAIL PROTECTED] * Visit homepage @ http://gaia.ecs.csus.edu/~s

using ANT to check for any code changes in CVS

2007-10-08 Thread Saladin Sharif
hanks in advance, -Saladin ** * Saladin Sharif * e-mail: [EMAIL PROTECTED] * Visit homepage @ http://gaia.ecs.csus.edu/~sh

How to get the count of the number of lines in a file using ANT

2007-10-08 Thread Saladin Sharif
I have a txt file and would like to get the count of the number of lines in that file, and then store that count into a property. I mean something equivalent to the unix command: cat file_name.txt | wc -l Can this be done using an existing ANT task? Thanks, -Saladin ___

Re: ant script just hang when checking out of CVS [Similar problem with cvstagdiff]

2007-09-26 Thread Saladin Sharif
.tools.ant.Project.executeTargets(Project.java:1181) at org.apache.tools.ant.Main.runBuild(Main.java:698) at org.apache.tools.ant.Main.startAnt(Main.java:199) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257) at org.apache.tools.ant

Re: ant script just hang when checking out of CVS [Similar problem with cvstagdiff]

2007-09-26 Thread Saladin Sharif
for it? Regards, -Saladin --- Saladin Sharif <[EMAIL PROTECTED]> wrote: > > But anyway, it just occured to me and I am wondering > whether the problem that I am having with cvstagdiff > has anything to do with ssh waiting for the > password. > > After all I am pe

Re: ant script just hang when checking out of CVS [Similar problem with cvstagdiff]

2007-09-25 Thread Saladin Sharif
yUserName;password=MyPassword;hostname=some.servername.com:/opt/cvs So I don't understand why the cvs and the cvstagdiff tags act differently. Why does the cvs tag work with the password being set in the CVSROOT environment variable, while the cvstagdiff tag doesn't??? -Saladin --- Sala

Re: ant script just hang when checking out of CVS

2007-09-25 Thread Saladin Sharif
. Ant > did not hang in your > case. Actually it was waiting for the password. Make > use of private/public > keys when using ":ext:" type of CVS server > ** * Saladin Sharif * e-mail:

Re: ant script just hang when checking out of CVS [Similar problem wiht cvstagdiff]

2007-09-25 Thread Saladin Sharif
rdiff -s -D 09/15/2007 -D 09/24/2007 edrs But when I execute the cvstagdiff from my ANT script it just hangs. Any ideas on how to get the cvstagdiff to work? Thanks in advance, -Saladin ** * Saladi