ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Les Hughes <>
Subject RE: Ant with Perforce
Date Fri, 09 Mar 2001 11:29:55 GMT
Hey Diane, Didn't know you're a Perforce guru :-)

The ant tasks simply wrap p4 functionality. If you can p4 sync
//depot/myproject/main/src/... or whatever on the cmd line then you can just
copy that view into the <p4sync view="//depot/myproject/main/src/..."> task.

Your clientspec could then have a mapping something like

//depot/myproject/... /home/me/myproject/...

and your src dir would end up in /home/me/myproject/main/src/...

One cool thing (usage pattern?) about p4 is that you can map out a
per-platform props file into the same physical location using a different
clientspec for each machine/environment. That way your build script needs
only to have a <properties file="build.props"/> (and even a <filters
filtersfile=""/>) which automagically changes to reflect
specific settings for that particular machine (it's easier to do it than to
explain it :-)



> -----Original Message-----
> From: Diane Holt []
> Sent: 08 March 2001 19:22
> To:
> Subject: Re: Ant with Perforce
> --- "M.A.Dunphy" <> wrote: 
> > We are looking at p4 an our scm and I've been struggling with it and
> > ant's integration all day and getting nowhere fast.
> > 
> > The build file previously worked in a sandbox environment, 
> i.e depending
> > on where you ran the build, the source code would be fetched to a
> > relative path (using VSS) and built from there.
> > 
> > Now I'm trying to do the same with p4, but cant see how to 
> fetch code to
> > a location relative to where we are running ant?
> With Perforce, you do things based on a client workspace. If 
> you want to
> write me directly, I can give you some general ideas, but 
> ultimately, how
> you end up dealing with things will depend on your particular setup.
> Diane
> =====
> (
> __________________________________________________
> Do You Yahoo!?
> Get email at your own domain with Yahoo! Mail. 

View raw message