You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by To...@smartstream-md.com on 2003/02/20 18:35:45 UTC

RE: Ant & PVCS Hacked ant to get it to work

Hi Simon,

try as I might I cant get PVCS to  load my workspace, it is set up, and
when I use the GUI to check:

Root Workspace is set to : C:\Work\WebConnect
Project Workspace is set to C:\Work\WebConnect\Sandbox

I guess that on the commandline workspace does not work, but if its working
of what is set up in the GUI then I dont think I should need to set it.
In fact I cant see the point of it, if the files will only go where you
have already set them up.

Cheers Tony

ps I have had to hack ant it did not add -pp to my project, in fact it went
and appended my current path to my project if I used a

<property name="proj" location="sandbox"/>

instead I just plugged in   <pvcs repository="${repos}" pvcsproject
="sandbox"/> and made sure to add -pp when it was picked up, know my build
works fine.

Cheers Tony


                                                                                                                                
                      SimonRichardson2@                                                                                         
                      hbosts.com               To:       user@ant.apache.org                                                    
                                               cc:                                                                              
                      20/02/2003 16:04         Subject:  RE: Ant & PVCS  my script wont work(unless I Hack ant )                
                      Please respond to                                                                                         
                      "Ant Users List"                                                                                          
                                                                                                                                
                                                                                                                                




Tony

I've had a look at the optional PVCS command and you do have the ability to
specify a workspace.

If haven't already, try creating a private workspace beneath the root
workspace.  You can do this in 2 ways:

1) through the GUI:
- right click on the root project, and choose set workspace.
- create a private workspace beneath the Root Workspace called myworkspace
and set this to be your default workspace [x].  Save this.
- then right click on the root project and set workfile location to be C:
\work\webconnect

2) from the command line:
- pcli createworkspace -prQ:\WebConnect /@/your_pvcs_user_id/myworkspace
- pcli setworklocation -prQ:\WebConnect -pp/
-sp/@/your_pvcs_user_id/myworkspace -wC:\work\webconnect

Then when you run your pvcs task set the workspace to be
/@/your_pvcs_user_id/myworkspace

<pvcs repository="Q:\WebConnect"
             workspace="/@/your_pvcs_user_id/myworkspace">
             <pvcsproject name="/sandbox"/>
</pvcs>

HTH

Simon

> -----Original Message-----
> From: Tony.Cavanagh@smartstream-md.com
> [mailto:Tony.Cavanagh@smartstream-md.com]
> Sent: 20 February 2003 14:38
> To: Ant Users List
> Subject: RE: Ant & PVCS my script wont work(unless I Hack ant )
>
>
>
> I have found a what looks like a problem with ant.
>
> When running my build.xml ant takes the parameter sandbox and
> instead of
> creating -pp/sandbox, it appends it to the loacl directory I
> am running my
> build from.
>
> Also within ant I find no command -pp.
>
> I have hacked the code to make it work, but am I missing something.
> I cannot find where the code picks up  pvcsproject="/Sandbox"
> and sets the
> project.
>
> I dont want to stay with the hack.
>
> Cheers for any help Tony
>
>
>
>
>                       SimonRichardson2@
>
>                       hbosts.com               To:
> user@ant.apache.org
>
>                                                cc:
>
>                       20/02/2003 13:19         Subject:  RE:
> Ant & PVCS have no idea why my script wont work(thankks its now
>                       Please respond to         working)
>
>                       "Ant Users List"
>
>
>
>
>
>
>
>
>
> UR Welcome.
>
> The top level project is '/' and then you specify projects,
> subprojects and
> version files beneath this (separated by '/').
>
> So you could specify /sandbox/lib/sandbox.lib.
>
> FYI
>
> You can also use pcli environment variables:
>
> PCLI_PR
> PCLI_PP, and
> PCLI_SP
>
> set PCLI_PP=Q:\WebConnect
> set PCLI_PR=/sandbox
>
> then your command would be:
>
> pcli lvf -z -aw
>
> Simon
>
> > -----Original Message-----
> > From: Tony.Cavanagh@smartstream-md.com
> > [mailto:Tony.Cavanagh@smartstream-md.com]
> > Sent: 20 February 2003 13:00
> > To: Ant Users List
> > Subject: RE: Ant & PVCS have no idea why my script wont
> > work(thankks its
> > now working)
> >
> >
> >
> > Thanks Simon that worked,
> >
> >  why did I have to use -pp/sandbox I thought it would be
> -ppsandbox or
> > -pp\sandbox which did not work.
> >
> > Thanks again Tony
> >
> >
> >
> >
> >                       SimonRichardson2@
> >
> >                       hbosts.com               To:
> > user@ant.apache.org
> >
> >                                                cc:
> >
> >                       20/02/2003 12:57         Subject:  RE:
> > Ant & PVCS have no idea why my script wont work
> >                       Please respond to
> >
> >                       "Ant Users List"
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > Try
> >
> > pcli lvf -z -aw -prQ:\WebConnect -pp/sandbox
> >
> > This assumes that the following directory exists:
> >
> > Q:\WebConnect\archives\sandbox
> >
> > Simon
> >
> > > -----Original Message-----
> > > From: Tony.Cavanagh@smartstream-md.com
> > > [mailto:Tony.Cavanagh@smartstream-md.com]
> > > Sent: 20 February 2003 12:48
> > > To: Ant Users List
> > > Subject: RE: Ant & PVCS have no idea why my script wont work
> > >
> > >
> > >
> > > Hi Simon.
> > >
> > > I cant get it to work, but before I totally quit I just want
> > > to check at
> > > least I have the names right.
> > >
> > > pr stands for project datase in my case Q:\WebConnect.
> > >
> > > pp stands for projectpath in this case the directory that
> > > contains my files
> > > to be checked out sandbox
> > >
> > > if I dont specify a workspace, it will check the files out to
> > > the location
> > > I first loaded the files from in this case
> > > C:\work\webconnect\Sandbox.
> > >
> > > I all know is correct is :
> > >
> > > pcli lvf -z -aw -prQ:\WebConnect
> > >
> > > after that I have no idea how to specify sandbox, what ever I
> > > add returns a
> > > error.
> > >
> > > Thanks again for all your help.
> > >
> > > Tony
> > >
> > >
> > >
> > >
> > >                       SimonRichardson2@
> > >
> > >                       hbosts.com               To:
> > > user@ant.apache.org
> > >
> > >                                                cc:
> > >
> > >                       20/02/2003 12:23         Subject:  RE:
> > > Ant & PVCS have no idea why my script wont work
> > >                       Please respond to
> > >
> > >                       "Ant Users List"
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >   -pp<project_path>
> > >                     Specifies the project or folder to be used.
> > >   -pr<project_database>
> > >                     Specifies the location of the project
> > database. A
> > > project
> > >                       database must be specified with either
> > > this option or
> > >                       the PCLI_PR variable.
> > >   -sp/@/<userID> | Public/<parent_workspace>/<child_workspace>
> > >                     Specifies a public or private workspace.  Note
> > >                       that user IDs are case-sensitive. To
> > > specify the Root
> > >                       Workspace, enter /@/RootWorkspace for
> > > the workspace
> > >                       value. If a workspace is not specified
> > > the user's
> > > default
> > >                       workspace is used.
> > >
> > > You set a default workfile location (where your files go) in
> > > the workspace
> > > - the workspace itself is not a directory path.
> > >
> > > Simon
> > >
> > > > -----Original Message-----
> > > > From: Tony.Cavanagh@smartstream-md.com
> > > > [mailto:Tony.Cavanagh@smartstream-md.com]
> > > > Sent: 20 February 2003 11:59
> > > > To: Ant Users List
> > > > Subject: RE: Ant & PVCS have no idea why my script wont work
> > > >
> > > >
> > > >
> > > > Not sure
> > > >
> > > > I may have this wrong but I think workspace is where I want
> > > > my files to go.
> > > > spC:\work\WebConnect\SandBox\SecondProject\person
> > > >
> > > > Repository is
> > > > -prQ:\WebConnect
> > > >
> > > > And Project is SandBox, next directory up from Q:\WebConnect.
> > > >
> > > > Although now the Error Message is "The workspace could not
> > > be loaded "
> > > > which is a PVCS Error message.
> > > >
> > > > Thanks for all the help, looks like it is a pure PVCS
> problem now.
> > > >
> > > > Tony
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >                       SimonRichardson2@
> > > >
> > > >                       hbosts.com               To:
> > > > user@ant.apache.org
> > > >
> > > >                                                cc:
> > > >
> > > >                       20/02/2003 11:33         Subject:  RE:
> > > > Ant & PVCS have no idea why my script wont work (Thanks Keith)
> > > >                       Please respond to
> > > >
> > > >                       "Ant Users List"
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > Shouldn't that have been .. -pp (project_path) not -sp
> (workspace)
> > > > [workspace would be something like
> > > /@/userid/private_work_space_name)]
> > > >
> > > > pcli lvf -z -aw
> > > > -ppC:\work\WebConnect\SandBox\SecondProject\person spC:
> > > > \work\WebConnect\SandBox\SecondProject\person
> > > >
> > > > Simon
> > > >
> > > > > -----Original Message-----
> > > > > From: Tony.Cavanagh@smartstream-md.com
> > > > > [mailto:Tony.Cavanagh@smartstream-md.com]
> > > > > Sent: 20 February 2003 11:17
> > > > > To: Ant Users List
> > > > > Subject: RE: Ant & PVCS have no idea why my script wont
> > > work (Thanks
> > > > > Keith)
> > > > >
> > > > >
> > > > >
> > > > > Thanks I should of thought of that ages ago, got two involved
> > > > > in digging
> > > > > into ant and the build script,.
> > > > >
> > > > > got an error message back :
> > > > >
> > > > > The project root could not be loaded:
> > > > > "Q:\WebConnect\archives\Sandbox". its
> > > > > a command prompt error not a ant error.
> > > > >
> > > > > Thanks again.
> > > > >
> > > > > Cheers Tony
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >                       "Keith Hatton"
> > > > >
> > > > >                       <khatton@axiomsys        To:       "Ant
> > > > > Users List" <us...@ant.apache.org>
> > > > >                       tems.com>                cc:
> > > > >
> > > > >                                                Subject:  RE:
> > > > > Ant & PVCS have no idea why my script wont work
> > > > >                       20/02/2003 11:09
> > > > >
> > > > >                       Please respond to
> > > > >
> > > > >                       "Ant Users List"
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > What happens if you try to run the pcli command directly from
> > > > > the Command
> > > > > Prompt? It looks like Ant is running the following:
> > > > >
> > > > > pcli lvf -z -aw
> > > > > -spC:\work\WebConnect\SandBox\SecondProject\person -prQ:
> > > > > \WebConnect\archives\Sandbox /
> > > > >
> > > > >
> > > > >
> > > > > -----Original Message-----
> > > > > From: Tony.Cavanagh@smartstream-md.com
> > > > > [mailto:Tony.Cavanagh@smartstream-md.com]
> > > > > Sent: 20 February 2003 10:53
> > > > > To: Ant Users List
> > > > > Subject: Ant & PVCS have no idea why my script wont work
> > > > >
> > > > >
> > > > >
> > > > > I have two NT machines
> > > > > On one machine we have PVCS set up the path is :
> > > > >
> > > > > Q:\WebConnect\archives\Sandbox\{My two archived files}
> > > > >
> > > > > On my other machine I have my working directory where I want
> > > > > to get the
> > > > > files out to :
> > > > > C:\work\WebConnect\SandBox\SecondProject\person.
> > > > >
> > > > > Here is the latest version of my non working  script :
> > > > >
> > > > > <project name="SecondProject" default="getFromPVCS">
> > > > > <--I was told that repository address must have double\\-->
> > > > > <property name = "repository" location="Q:
> > > > > \\WebConnect\\archives\\Sandbox"/>
> > > > > <property name = "workspace" location="C:
> > > > > \work\WebConnect\SandBox\SecondProject\person"/>
> > > > >
> > > > > <target name="getFromPVCS">
> > > > >     <!-- Get latest files from PVCS -->
> > > > >     <pvcs repository="${repository}" pvcsproject="/"
> workspace="
> > > > > ${workspace}"/>
> > > > >  </target>
> > > > > </project>
> > > > >
> > > > > Error Message is as follows:
> > > > > getFromPVCS:
> > > > >      [pvcs] class Pvcs : execute() Set Repository: Q:
> > > > > \WebConnect\archives\Sandbox
> > > > >      [pvcs] class Pvcs : execute() Set Pvcsproject: /
> > > > >      [pvcs] Executing 'pcli' with arguments:
> > > > >      [pvcs] 'lvf'
> > > > >      [pvcs] '-z'
> > > > >      [pvcs] '-aw'
> > > > >      [pvcs]
> '-spC:\work\WebConnect\SandBox\SecondProject\person'
> > > > >      [pvcs] '-prQ:\WebConnect\archives\Sandbox'
> > > > >      [pvcs] '/'
> > > > >      [pvcs]
> > > > >      [pvcs] The ' characters around the executable and
> > > arguments are
> > > > >      [pvcs] not part of the command.
> > > > >
> > > > > All I need to know is, is the script ok, if it is then the
> > > > > problem must be
> > > > > in the mapping from my machine to Q: and although I can use
> > > > > PVCS, there
> > > > > must be a problem with the setup that ant is using.
> > > > >
> > > > > Cheers and Thanks for any Help Tony
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > >
> >
> ---------------------------------------------------------------------
> > > > > 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
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > >
> >
> ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > > > > For additional commands, e-mail: user-help@ant.apache.org
> > > > >
> > > > >
> > > > >
> > > >
> > > > --
> > > >
> > > > --------------------------------------------------------------
> > > > ----------------
> > > >
> > > > For more information on HBOS Treasury Services, please visit
> > > > http://www.HBOSTS.com
> > > >
> > > > Or for details of our online FX & Deposit services, please go to
> > > > http://www.HBOSdeal.com
> > > >
> > > > HBOS Treasury Services plc is part of the HBOS Group, which
> > > > also includes
> > > > Halifax plc and Bank of Scotland.
> > > > Registered Office: 33 Old Broad Street, London EC2N 1HZ.
> > > > Registered No.
> > > > 2692890. Registered in England.
> > > > Regulated by the Financial Services Authority.
> > > >
> > > > The information contained in this message is confidential and
> > > > is intended
> > > > for the addressee only. If you have received this message in
> > > > error or there
> > > > are any problems please notify the originator immediately.
> > > > The unauthorised
> > > > use, disclosure, copying or alteration of this message
> is strictly
> > > > forbidden. This mail and any attachments have been scanned
> > > for viruses
> > > > prior to leaving the HBOS Treasury Services plc network.
> > > HBOS Treasury
> > > > Services plc will not be liable for direct, special, indirect or
> > > > consequential damages arising from alteration of the
> > > contents of this
> > > > message by a third party or as a result of any virus being
> > > passed on.
> > > >
> > > > HBOS Treasury Services plc reserves the right to monitor and
> > > > record e-mail
> > > > messages sent to and from this address for the purposes of
> > > > investigating or
> > > > detecting any unauthorised use of its system and ensuring its
> > > > effective
> > > > operation.
> > > >
> > > > ==============================================================
> > > > ================
> > > >
> > > >
> > > >
> > > >
> > >
> >
> ---------------------------------------------------------------------
> > > > 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
> > > >
> > > >
> > > >
> > >
> > > --
> > >
> > > --------------------------------------------------------------
> > > ----------------
> > >
> > > For more information on HBOS Treasury Services, please visit
> > > http://www.HBOSTS.com
> > >
> > > Or for details of our online FX & Deposit services, please go to
> > > http://www.HBOSdeal.com
> > >
> > > HBOS Treasury Services plc is part of the HBOS Group, which
> > > also includes
> > > Halifax plc and Bank of Scotland.
> > > Registered Office: 33 Old Broad Street, London EC2N 1HZ.
> > > Registered No.
> > > 2692890. Registered in England.
> > > Regulated by the Financial Services Authority.
> > >
> > > The information contained in this message is confidential and
> > > is intended
> > > for the addressee only. If you have received this message in
> > > error or there
> > > are any problems please notify the originator immediately.
> > > The unauthorised
> > > use, disclosure, copying or alteration of this message is strictly
> > > forbidden. This mail and any attachments have been scanned
> > for viruses
> > > prior to leaving the HBOS Treasury Services plc network.
> > HBOS Treasury
> > > Services plc will not be liable for direct, special, indirect or
> > > consequential damages arising from alteration of the
> > contents of this
> > > message by a third party or as a result of any virus being
> > passed on.
> > >
> > > HBOS Treasury Services plc reserves the right to monitor and
> > > record e-mail
> > > messages sent to and from this address for the purposes of
> > > investigating or
> > > detecting any unauthorised use of its system and ensuring its
> > > effective
> > > operation.
> > >
> > > ==============================================================
> > > ================
> > >
> > >
> > >
> > >
> >
> ---------------------------------------------------------------------
> > > 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
> > >
> > >
> > >
> >
> > --
> >
> > --------------------------------------------------------------
> > ----------------
> >
> > For more information on HBOS Treasury Services, please visit
> > http://www.HBOSTS.com
> >
> > Or for details of our online FX & Deposit services, please go to
> > http://www.HBOSdeal.com
> >
> > HBOS Treasury Services plc is part of the HBOS Group, which
> > also includes
> > Halifax plc and Bank of Scotland.
> > Registered Office: 33 Old Broad Street, London EC2N 1HZ.
> > Registered No.
> > 2692890. Registered in England.
> > Regulated by the Financial Services Authority.
> >
> > The information contained in this message is confidential and
> > is intended
> > for the addressee only. If you have received this message in
> > error or there
> > are any problems please notify the originator immediately.
> > The unauthorised
> > use, disclosure, copying or alteration of this message is strictly
> > forbidden. This mail and any attachments have been scanned
> for viruses
> > prior to leaving the HBOS Treasury Services plc network.
> HBOS Treasury
> > Services plc will not be liable for direct, special, indirect or
> > consequential damages arising from alteration of the
> contents of this
> > message by a third party or as a result of any virus being
> passed on.
> >
> > HBOS Treasury Services plc reserves the right to monitor and
> > record e-mail
> > messages sent to and from this address for the purposes of
> > investigating or
> > detecting any unauthorised use of its system and ensuring its
> > effective
> > operation.
> >
> > ==============================================================
> > ================
> >
> >
> >
> >
> ---------------------------------------------------------------------
> > 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
> >
> >
> >
>
> --
>
> --------------------------------------------------------------
> ----------------
>
> For more information on HBOS Treasury Services, please visit
> http://www.HBOSTS.com
>
> Or for details of our online FX & Deposit services, please go to
> http://www.HBOSdeal.com
>
> HBOS Treasury Services plc is part of the HBOS Group, which
> also includes
> Halifax plc and Bank of Scotland.
> Registered Office: 33 Old Broad Street, London EC2N 1HZ.
> Registered No.
> 2692890. Registered in England.
> Regulated by the Financial Services Authority.
>
> The information contained in this message is confidential and
> is intended
> for the addressee only. If you have received this message in
> error or there
> are any problems please notify the originator immediately.
> The unauthorised
> use, disclosure, copying or alteration of this message is strictly
> forbidden. This mail and any attachments have been scanned for viruses
> prior to leaving the HBOS Treasury Services plc network. HBOS Treasury
> Services plc will not be liable for direct, special, indirect or
> consequential damages arising from alteration of the contents of this
> message by a third party or as a result of any virus being passed on.
>
> HBOS Treasury Services plc reserves the right to monitor and
> record e-mail
> messages sent to and from this address for the purposes of
> investigating or
> detecting any unauthorised use of its system and ensuring its
> effective
> operation.
>
> ==============================================================
> ================
>
>
>
> ---------------------------------------------------------------------
> 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
>
>
>

--

------------------------------------------------------------------------------

For more information on HBOS Treasury Services, please visit
http://www.HBOSTS.com

Or for details of our online FX & Deposit services, please go to
http://www.HBOSdeal.com

HBOS Treasury Services plc is part of the HBOS Group, which also includes
Halifax plc and Bank of Scotland.
Registered Office: 33 Old Broad Street, London EC2N 1HZ. Registered No.
2692890. Registered in England.
Regulated by the Financial Services Authority.

The information contained in this message is confidential and is intended
for the addressee only. If you have received this message in error or there
are any problems please notify the originator immediately. The unauthorised
use, disclosure, copying or alteration of this message is strictly
forbidden. This mail and any attachments have been scanned for viruses
prior to leaving the HBOS Treasury Services plc network. HBOS Treasury
Services plc will not be liable for direct, special, indirect or
consequential damages arising from alteration of the contents of this
message by a third party or as a result of any virus being passed on.

HBOS Treasury Services plc reserves the right to monitor and record e-mail
messages sent to and from this address for the purposes of investigating or
detecting any unauthorised use of its system and ensuring its effective
operation.

==============================================================================



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