Retrieving key value pairs from URL and setting as system property

2008-03-19 Thread raju
Hi, I need to access a web URL say http://.../viewproperties which throws plain html with key value pairs as response. Now as part of the main build i need to acces the above mentioned URL and set each of the key value pairs as system environment variables so that they are available other progr

RE: Retrieving key value pairs from URL and setting as system property

2008-03-19 Thread raju
Hi gilbert, Thanks for your replies. This is what i am trying to acheive from within an Ant script: Hit a URL say http://host/environment?name=test ,from which a get a response a containing key-value pairs containing data about the environment.(could this be done without writing the key-value d

Invoking Ant with Runtime.exec()

2008-03-25 Thread raju
Hi, i have a file called test.bat within which i have ant command: test.bat: - echo %foo% help echo %ID% help ant -f ./build.xml main I am trying to invoke ant from a java program: Process p = Runtime.getRuntime().exec("./test.bat", new String[]{"foo=bar","ID=38"}); Ant comman

Redirects with ant-contrib post task

2008-04-29 Thread raju
n i hit save with above code which is one action save,based on input since it gets redirected to action create or update session is getting lost so it always creates a new record. Is there any task which could help me on this issue?i had a look ant ant-fikin-tasks also Regards Raju -- View th

ant run command piping and get out put to value

2007-02-10 Thread Mr raju varghese
Hi, I need Ant to run some commands and save out put to a property value. how can i achive that. For example command: svn info | grep version I need to put output of the above command to property called 'svninfo'. And also how can i pipe commands using Ants exec. Th

Re: ant run command piping and get out put to value

2007-02-11 Thread Mr raju varghese
pipes) string. The > task also has a 'outputproperty' attribute that > allows you define the name of a property whose value > will be the output the commandline execution > > Good Luck, > > Ninju > > > - Original Message > From: Mr raju vargh