ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anderson, Rob (Global Trade)" <Rob.Ander...@nike.com>
Subject RE: How do I use clearcase commands from ant?
Date Tue, 18 May 2004 21:03:53 GMT
It looks like the ant build.xml file is not within the view that you are trying to rebase.
In this case you need to specify the -view option with the appropriate argument.

<exec executable="cleartool" failonerror="true">
<arg value="rebase" />
<arg value="-recommended"/>
<arg value="-view your_view_tag"/>
</exec>

In the above XML, replace your_view_tag with the view tag of your view to the stream that
you wish to rebase. To get the view tag run "cleartool lsview -cview", from within the view
heirarchy. The first column will have the view tag.

-Rob Anderson

> -----Original Message-----
> From: sudheshna aaa [mailto:sudheshna@hotmail.com]
> Sent: Tuesday, May 18, 2004 1:28 PM
> To: user@ant.apache.org
> Subject: Re: How do I use clearcase commands from ant?
> 
> 
> How do I specify that, can you please provide the command for 
> the following?
> 
> >>>><exec executable="cleartool" failonerror="true">
> >>>><arg value="rebase" />
> >>>><arg value="-recommended"/>
> >>>></exec>
> 
> Thank you.
> 
> 
> >From: "Alexey N. Solofnenko" <A.Solofnenko@mdl.com>
> >Reply-To: "Ant Users List" <user@ant.apache.org>
> >To: Ant Users List <user@ant.apache.org>
> >Subject: Re: How do I use clearcase commands from ant?
> >Date: Tue, 18 May 2004 13:13:24 -0700
> >
> >You need to specify dir parameter.
> >
> >- Alexey.
> >
> >sudheshna aaa wrote:
> >
> >>Also if the run the exec command that you have provided, I 
> am getting:
> >>
> >>C:\Sireesha\Build>ant -buildfile testExec.xml
> >>Buildfile: testExec.xml
> >>
> >>TestExec:
> >>[exec] cleartool: Error: Cannot determine view context.
> >>[exec] cleartool: Error: Unable to rebase.
> >>
> >>
> >>
> >>BUILD FAILED
> >>
> >>Thank you for your help!
> >>
> >>
> >>>From: "sudheshna aaa" <sudheshna@hotmail.com>
> >>>Reply-To: "Ant Users List" <user@ant.apache.org>
> >>>To: user@ant.apache.org
> >>>Subject: RE: How do I use clearcase commands from ant?
> >>>Date: Tue, 18 May 2004 19:49:51 +0000
> >>>
> >>>Thank you. We are trying to put all the executable 
> commands in a bat file 
> >>>and run the bat file.
> >>>
> >>>Is this a good idea?
> >>>
> >>>How do I run a bat file from ant?
> >>>
> >>>
> >>>>From: "Daniels, Doug" <Doug.Daniels@gdc4s.com>
> >>>>Reply-To: "Ant Users List" <user@ant.apache.org>
> >>>>To: Ant Users List <user@ant.apache.org>
> >>>>Subject: RE: How do I use clearcase commands from ant?
> >>>>Date: Tue, 18 May 2004 15:19:33 -0400
> >>>>
> >>>>I don't think there is a way to run any arbitrary 
> clearcase commands 
> >>>>just the tasks that are defined in the optional clearcase 
> ant tasks:
> >>>>http://ant.apache.org/manual/OptionalTasks/clearcase.html
> >>>>
> >>>>So if it's not listed there you could try using the <exec> task:
> >>>>http://ant.apache.org/manual/CoreTasks/exec.html
> >>>>
> >>>>Something like:
> >>>><exec executable="cleartool" failonerror="true">
> >>>><arg value="rebase" />
> >>>><arg value="-recommended"/>
> >>>></exec>
> >>>>
> >>>>Or write your own custom Ant task to do it. Good luck 
> hope that helps
> >>>>
> >>>>Doug Daniels
> >>>>GENERAL DYNAMICS
> >>>>C4 Systems
> >>>>
> >>>>-----Original Message-----
> >>>>From: sudheshna aaa [mailto:sudheshna@hotmail.com]
> >>>>Sent: Tuesday, May 18, 2004 2:24 PM
> >>>>To: user@ant.apache.org
> >>>>Subject: How do I use clearcase commands from ant?
> >>>>
> >>>>
> >>>>Hi,
> >>>>
> >>>>How do I use clearcase commands from ant?
> >>>>For eg: I want to run
> >>>>
> >>>>cleartool rebase -recommended
> >>>>
> >>>>Thank you
> >>>>
> >>>>SD
> >>>>
> >>>>_________________________________________________________________
> >>>>Express yourself with the new version of MSN Messenger! 
> Download today -
> >>>>it's FREE! 
> >>>>http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
> >>>>
> >>>>
> >>>>----------------------------------------------------------
> -----------
> >>>>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> >>>>For additional commands, e-mail: user-help@ant.apache.org
> >>>>
> >>>>
> >>>>
> >>>>----------------------------------------------------------
> -----------
> >>>>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> >>>>For additional commands, e-mail: user-help@ant.apache.org
> >>>>
> >>>
> >>>_________________________________________________________________
> >>>Is your PC infected? Get a FREE online computer virus scan 
> from McAfee® 
> >>>Security. 
> http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
> >>>
> >>>
> >>>-----------------------------------------------------------
> ----------
> >>>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> >>>For additional commands, e-mail: user-help@ant.apache.org
> >>>
> >>
> >>_________________________________________________________________
> >>FREE pop-up blocking with the new MSN Toolbar - get it now! 
> >>http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
> >>
> >>
> >>------------------------------------------------------------
> ---------
> >>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> >>For additional commands, e-mail: user-help@ant.apache.org
> >>
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> >For additional commands, e-mail: user-help@ant.apache.org
> >
> 
> _________________________________________________________________
> Learn to simplify your finances and your life in Streamline 
> Your Life from 
> MSN Money. http://special.msn.com/money/0405streamline.armx
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message