You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by ji...@korvac.com on 2002/04/02 02:57:33 UTC

CVS and ant

Hi,
  I have problem with the following:
  The following is from my build.xml:

     <property name = "srcDir"       value = "../source/src" />
     <property name = "testDir"      value = "../source/test" />
     <property name="cvs.repository" value
= ":pserver:jinwei@123.123.12.12:c:\Repo1"/>
     <property name="cvs.package"    value = "myPackage"/>

     ...  ...  ...  ...

     <target name="checkout" depends="test" description="Update package
from CVS">
          <cvs cvsroot="${cvs.repository}" package="${cvs.package}" dest
="..\.."                 command="update" />
          <cvs command="commit -m 'No Message' ${srcDir} ${testDir} "/>
     </target>

I have these messages when I run ant:

...  ...  no problem     ...  ...

      [cvs] cvs commit: Examining ../somefolders.....
      [cvs] cvs commit: Examining ../somemorefolders.....
      [cvs] protocol error: `../source/src/oneOfMyFolders' has
too many ..

It is complaining the '..' - the protocol error. I did not change that else
my ant would not be pointing to the right folder. How can I solve this
problem?

Thanks.



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: CVS and ant

Posted by stephan beal <st...@wanderinghorse.net>.
On Tuesday 02 April 2002 02:57 am, jinwei@korvac.com wrote:
>       [cvs] protocol error: `../source/src/oneOfMyFolders' has
> too many ..
>
> It is complaining the '..' - the protocol error. I did not change that else
> my ant would not be pointing to the right folder. How can I solve this
> problem?

The <cvs> task uses the standard cvs command-line client to do it's 
work, so it also has the same limitations as that tool. Cvs itself won't 
allow relative paths with ../ in an update command. Try it out on any cvs 
tree you've got laying around:

stephan@cheyenne:~/cvs/qub/lib> cvs up ../Makefile.am
protocol error: `..' has too many ..

Absolute paths will apparently also fail:

stephan@cheyenne:~/cvs/qub> export foo=$PWD
stephan@cheyenne:~/cvs/qub> cd -
/home/stephan/cvs/qub/lib
stephan@cheyenne:~/cvs/qub/lib> cvs up $foo/Makefile.am
absolute pathname `/home/stephan/cvs/qub' illegal for server
stephan@cheyenne:~/cvs/qub/lib> cd ..
stephan@cheyenne:~/cvs/qub> cvs up $foo/Makefile.am
absolute pathname `/home/stephan/cvs/qub' illegal for server
stephan@cheyenne:~/cvs/qub> echo $foo
/home/stephan/cvs/qub


----- stephan
Generic Unix Computer Guy
stephan@einsurance.de - http://www.einsurance.de
Office: +49 (89)  552 92 862 Handy:  +49 (179) 211 97 67
"...control is a degree of inhibition, and a system which is perfectly
inhibited is completely frozen." -- Alan W. Watts

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: CVS and ant

Posted by Diane Holt <ho...@yahoo.com>.
--- jinwei@korvac.com wrote:
>      <property name = "srcDir"       value = "../source/src" />
>      <property name = "testDir"      value = "../source/test" />

Try setting these locations using the 'location' attribute instead.

Diane

=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://http://taxes.yahoo.com/

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>