Exclude and Include folders

2010-11-28 Thread jhoomsharabi
I want to include and exclude folders from directory listing, say I have following folders: Abc/workspace Def/workspace Ghi/workspace Jkl/workspace Mno/workspace And so on I want to generate a tar file for the above folders but wants to exclude all “workspace” folders, I tried like this:

Re: Using shell command in ANT script

2010-11-28 Thread jhoomsharabi
Thanks to all of you for taking interest in my query. I myself is in favor of solution which can be platform independent but was clueless on how to achieve this in ANT, the shell command which I wanted to incorporate on my ANT script is only a part of lengthy command in actual I wanted to write

Using shell command in ANT script

2010-11-24 Thread jhoomsharabi
Hi All, I want to use the following shell command in my build.xml file ls -l ../../../jobs/ | awk '{ print $9 }' > content.txt is there any way I can use the above mentioned command. Can anyone help me out in this regard? Thanks, Saha

Bug in Ant's Perforce task document

2010-03-29 Thread jhoomsharabi
There is one more bug in documentation of Perforce Task P4Change, the example line Should be terminated by the matching end-tag like this: Thanks

Re: p4edit does not assign files to newly created changelist

2010-03-29 Thread jhoomsharabi
OK This is being resolved by using P4Reopen -Original Message- From: jhoomshar...@netscape.net To: user@ant.apache.org Sent: Mon, Mar 29, 2010 3:19 pm Subject: p4edit does not assign files to newly created changelist s there a way that I can avoid this problem with Perforce task

p4edit does not assign files to newly created changelist

2010-03-29 Thread jhoomsharabi
Is there a way that I can avoid this problem with Perforce task can't change from change 84623 - use 'reopen' Now how this issue comes I already create a p.change in one of the target and assigned files to this newly created changelist now I want to create another p.change in next target

How I can use p4.change in exec task

2010-03-29 Thread jhoomsharabi
Hi All, I am stuck to one of the simple issue, I want to use P4Change of Perforce task in one of my exec task the way I am able to use it in P4Edit Same way I want to use it in one of my create-review target under exec task like this: but when I use th

Re: Perforce Tasks P4Integrate fails for "nocopytargetfiles"

2010-03-29 Thread jhoomsharabi
Hi, Looks to me this is bug in optional task of Perforce in ANT, is there way so that I can log a bug in ant so that this issue gets resolved in next ANT release. Thanks -Original Message- From: Antoine Levy Lambert To: Ant Users List Sent: Thu, Mar 25, 2010 11:26 pm Subject: Re: Pe

Re: Perforce Tasks P4Integrate fails for "nocopytargetfiles"

2010-03-26 Thread jhoomsharabi
HI, I tried building ant source after making chnages but build is failing for me, I think I need to download lots of other dependencies as mentioned on this page: http://ant.apache.org/manual/install.html#librarydependencies To which I don't think I will be bale to it immidetaly. -Orig

Re: Perforce Tasks P4Integrate fails for "nocopytargetfiles"

2010-03-25 Thread jhoomsharabi
Thanks for quick reply, but when I use nocopynewtargetfiles="true" I am getting the following error: error: Usage: integrate [ -c changelist# -d -D -f -h -i -o -n -r -s from -t ] [ -b branch to... | from to ] error: Invalid option: --v. Any idea what going wrong with my target. -Or

Perforce Tasks P4Integrate fails for "nocopytargetfiles"

2010-03-25 Thread jhoomsharabi
Hi All, I am trying to use “P4Integrate” task in ant from Perforce task, so I am using “nocopytargetfiles” attribute in this task like this: But when I execute this “inte-new” target I am getting following error: p4integrate doesn't support the "nocopytargetfiles" att

Using Shellscript variable in build.xml

2010-01-22 Thread jhoomsharabi
I am using shellscript task of ant-contrib in one of my target, which looks like this: KAR=`echo ${adapter-active-directory} | awk -F. '{print $1}'` MAR=`echo ${adapter-active-directory} | awk -F. '{print $4}'` How I can use the shell script va

shellscript task issue

2010-01-21 Thread jhoomsharabi
I am using shellscript task of ant-contrib in one of my target, which looks like this: KAR=`echo ${adapter-active-directory} | awk -F. '{print $1}'` MAR=`echo ${adapter-active-directory} | awk -F. '{print $4}'` I have two problems here: 1. Above

split version

2010-01-18 Thread jhoomsharabi
I have pom.xml, below is snippet of my pom.xml file: pom.xml --- http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";> 4.0.0 com.xkri.kill.tokens tok

Re: Excute shell command

2009-07-15 Thread jhoomsharabi
Thanks for reply and detail explanation, I have soemthing else with shellscript How about this: ? I am ble to get the output what I want, like to know apart from becoming this code platform specific where else it can fail, because I am least bothered of platform as the things will always re

Re: Excute shell command

2009-07-15 Thread jhoomsharabi
I combined xmltask and ant-contrib's shellscript like this KAR=`echo ${act-dir} | awk -F. '{print $1}'` MAR=`echo ${act-dir} | awk -F. '{print $4}'` echo "KAR: $KAR" echo "MAR: $MAR" I am able to achieve

Re: Excute shell command

2009-07-15 Thread jhoomsharabi
I combined xmltask and ant-contrib's shellscript like this ? ?? ? ??? ??? KAR=`echo ${act-dir} | awk -F. '{print $1}'` ??? MAR=`echo ${act-dir} | awk -F. '{print $4}'` echo "KAR: $KAR" echo "MAR: $MAR" ??

Excute shell command

2009-07-14 Thread jhoomsharabi
Hi All, I am stuck to shell command execution in my build.xml file, I want to execute the following command from my build.xml file: KAR=`echo $var | awk -F. '{print $4}'` Can anyone help me out in this? Thanks in advance.

pick version from xml node and replace to another xml file

2009-07-13 Thread jhoomsharabi
Hi All, does it possible to pick the version from xml node 3.4.02.02 in format such that each digit gets picked up assuming decimal "." as seprator and than write it into different format in another xml file like this: Any idea how I can achive this?

replace version info in maven2 pom with ant

2009-07-12 Thread jhoomsharabi
http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";> ? 4.0.0 ? com.xkri.kill.tokens ? tokens-active-dent ? 7.5.02.02 ? ? jar ? Colt and ADAM ? This package p

Re: Version read and replace

2009-07-12 Thread jhoomsharabi
I did not reaplied to any mail, if you see any problem I can post a new mail. -Original Message- From: Michael Ludwig To: Ant Users List Sent: Sat, Jul 11, 2009 5:49 pm Subject: Re: Version read and replace jhoomshar...@netscape.net schrieb am 10.07.2009 um 21:43:45 (-0400): > > I h

Version read and replace

2009-07-10 Thread jhoomsharabi
I have pom.xml, below is snippet of my pom.xml file: pom.xml --- http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";> ? 4.0.0 ? com.xkri.kill.tokens ? tok

Re: replace version info in maven2 pom with ant

2009-06-15 Thread jhoomsharabi
Why don't you use xmltask by oopsconsultancy http://www.oopsconsultancy.com/software/xmltask/ If you use xmltask your ant build.xml will look like this: Say your pom.xml looks like this: pom.xml --- http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

Re: PCVS ant task help

2009-05-28 Thread jhoomsharabi
looks like?it should be like this repository = http://loncfg02:8080/dimensions pvcsproject = WS_COLT_OLC_SUPPLIER WS_COLT_OLC_SUPPLIER -Original Message- From: Vinod Tiwari To: user@ant.apache.org Sent: Wed, 27 May 2009 2:21 pm Subject: PCVS ant task help Hi, ? I need

Reading and writing xml files

2009-04-24 Thread jhoomsharabi
Hi All I want to read lots of pom.xml file to pick node, and than write the content to another xml file, can it be possible with ANT XSLT to do so? Thanks, Jhoom