Re: compare files from 2 directories

2011-03-07 Thread ritchie
The problem was it was inserting the .md5 file in the same directory and also the name of the file was different, now it works. I have another problem though i have to compare 2 directories for files and if file name matches then do a checksum or filesmatch, i could not find a ant task which can d

Re: compare files from 2 directories

2011-02-28 Thread ritchie
I did something like this... -- View this message in context: http://ant.1045680.n5.nabble.com/compare-files-from-2-directories-tp3400285p3403355.html Sent from the Ant - Users mailing list archive at Nabble.com. ---

Re: compare files from 2 directories

2011-02-25 Thread ritchie
I used the below checksum task and i passed the same directory twice but i am getting different values for the same directory. value of prop is ${ab1} ${ab2} [echo] value of prop is 8a76f4364f3d593d9af177630b22b431 [echo] fb3eb4fb22641ba916e55230b597b12a -

compare files from 2 directories

2011-02-25 Thread ritchie
I want to check files from 2 directories for filematch, I tried using checksum task but it does not work for 2 directories. Is it possible to attain this by using ant alone? -- View this message in context: http://ant.1045680.n5.nabble.com/compare-files-from-2-directories-tp3400285p3400285.html

Re: Alternative to if else task.

2011-02-11 Thread ritchie
Yes. -- View this message in context: http://ant.1045680.n5.nabble.com/Alternate-for-if-else-task-tp3381392p3381951.html Sent from the Ant - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@a

Re: Alternative to if else task.

2011-02-11 Thread ritchie
Thanks Matt it works. I ran the script -If and unless is supported in v1.7.1. -- View this message in context: http://ant.1045680.n5.nabble.com/Alternate-for-if-else-task-tp3381392p3381949.html Sent from the Ant - Users mailing list archive at Nabble.com. ---

Re: Alternative to if else task.

2011-02-11 Thread ritchie
http://ant.1045680.n5.nabble.com/Alternate-for-if-else-task-tp3381392p3381898.html Sent from the Ant - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e

Re: Alternative to if else task.

2011-02-11 Thread ritchie
Matt, The target option would be good if the other target does not fail, but in my build file i have target which executes perforce command and i capture the result of the exec task in resultproperty. If the value of result property is ==0 then i execute another target else execute a different t

Alternative to if else task.

2011-02-11 Thread ritchie
I am using a if else task in my build file and i had to add the additional jar antelopetasksjar to my lib folder of ant to make this run. My problem is for this to work for other developers they all have to add the jar file to their ant/lib dir, but my organization is not keen with this idea s

To check server is down

2011-02-04 Thread ritchie
Is there a ant task to check whether the server hosting the source control is down? -- View this message in context: http://ant.1045680.n5.nabble.com/To-check-server-is-down-tp3371133p3371133.html Sent from the Ant - Users mailing list archive at Nabble.com.

java script error in imported ant file

2011-01-19 Thread ritchie
I have a build file -A.xml which imports another build file -B.xml and runs the targets in the imported file. File B has multiuple targets and one of the targets has a java script. In the java script i have a line of code which says " Bproject.setProperty("newtoken", result);" , Bproject is the na

runAnt.bat

2011-01-11 Thread ritchie
I am trying to run the runAnt.bat from the command line and i get a error as shown below. sync: this target completes successfully. createbar: [delete] Deleting directory C:\nbkoldy_rp_all_new\MBroker\rp_11.2\build\temp [mkdir] Created dir: C:\nbkoldy_rp_all_new\MBroker\rp_11.2\build\te

Re: Set a default value to property.

2010-11-30 Thread ritchie
Thanks all for your replies, i tried some thing like this and it worked. ... .. and when i ran the command ant -Dversion=25 it worked. Actually my ant task is replacing a regular expression with the version value. When i dont pass the arguments -Dversion=xxx it sets the token value as 23. --

Set a default value to property.

2010-11-30 Thread ritchie
My ant script takes a value for a property at runtime(-Denv=xxx), if the argument is not passed i want the value to be set as a default arbitary value. How to accomplish this? -- View this message in context: http://ant.1045680.n5.nabble.com/Set-a-default-value-to-property-tp3286574p3286574.html

Re: Ant script to edit a write protected file.

2010-11-22 Thread ritchie
Thanks everyone for your answers. I used this to change the mode in windows. -- View this message in context: http://ant.1045680.n5.nabble.com/Ant-script-to-edit-a-write-protected-file-tp3274912p3275985.html Sent from the Ant - Users mailing list archive at Nabble.com. ---

Ant script to edit a write protected file.

2010-11-21 Thread ritchie
I am trying to add new attributes to a xml file using classes available in com.oopsconsultancy.xmltask.ant.XmlTask classes but not able to write to the file because it is write protected. Is it possible to edit a write protected xml file using ant script? -- View this message in context: http://

Re: java.lang.NullPointerException

2010-11-18 Thread ritchie
Okay, i will do that. Thanks. -- View this message in context: http://ant.1045680.n5.nabble.com/java-lang-NullPointerException-tp3271316p3271415.html Sent from the Ant - Users mailing list archive at Nabble.com. - To unsubscrib

Re: java.lang.NullPointerException

2010-11-18 Thread ritchie
verup is a macrodef... Apache Ant version 1.7.0 compiled on December 13 2006 Buildfile: changes.xml Detected Java version: 1.6 in: C:\Program Files\Java\jre6 Detected OS: Windows XP parsing buildfile C:\apache-ant-1.7.0\bin\changes.xml with URI = file:/C:/apache -ant-1.7.0/bin/changes.xml Project

java.lang.NullPointerException

2010-11-18 Thread ritchie
This is a part of my script. I am getting the error when the script tries to exceute the line http://ant.1045680.n5.nabble.co

Re: echo a property

2010-10-30 Thread ritchie
I strongly believe in upgrading the ANT version but i am not decision maker in my place of work. I just write the scripts and there are separate teams which does the actual deployment. -- View this message in context: http://ant.1045680.n5.nabble.com/echo-a-property-tp3239198p3243721.html Sent

Re: echo a property

2010-10-30 Thread ritchie
Dominique Devienne-2 wrote: > > On Thu, Oct 28, 2010 at 9:15 AM, ritchie > wrote: >>  I created  a java class to read that property from the properties file >> and >> then passed it on to another java class which does the deployment. I am >> not >> su

Refresh toolkit using headless build.

2010-10-30 Thread ritchie
Has anyone been successful in refreshing the toolkit using headless build? I tried to use the headless build but with no success. error message i get C:\apache-ant-1.7.0\bin>ant -f refresh.xml -v Apache Ant version 1.7.0 compiled on December 13 2006 Buildfile: refresh.xml

Re: echo a property

2010-10-28 Thread ritchie
I created a java class to read that property from the properties file and then passed it on to another java class which does the deployment. I am not sure whether this is a limitation in ant. -- View this message in context: http://ant.1045680.n5.nabble.com/echo-a-property-tp3239198p3240608.h

Re: echo a property

2010-10-27 Thread ritchie
I am sorry that was a typo when i posted it. That was not the problem. My properties file- new.properties contains. prod.eg=1 dev.eg=2 I am trying to access these properties in a echo.xml file -> does not work >From command line i do this. ant -f echo.xml -Denv= p

echo a property

2010-10-27 Thread ritchie
I have a properties file (new.properties) which contains key value pairs as "prod.eg=1" "dev.eg=2" . I am trying to access the property from a ant build file echo.xml by loading the property file in the script. -> does not work ant -f echo.xml -Denv prod Could anyone tell me what is