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
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.
---
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
-
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
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
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.
---
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
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
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
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.
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
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
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.
--
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
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.
---
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://
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
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
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
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
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
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
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
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
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
25 matches
Mail list logo