From user-return-54595-apmail-ant-user-archive=ant.apache.org@ant.apache.org Tue Feb 07 16:39:55 2006 Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 47154 invoked from network); 7 Feb 2006 16:39:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Feb 2006 16:39:52 -0000 Received: (qmail 90217 invoked by uid 500); 7 Feb 2006 16:39:42 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 90165 invoked by uid 500); 7 Feb 2006 16:39:42 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 90152 invoked by uid 99); 7 Feb 2006 16:39:42 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Feb 2006 08:39:42 -0800 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=DNS_FROM_RFC_ABUSE,FROM_HAS_ULINE_NUMS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [217.146.177.172] (HELO web27311.mail.ukl.yahoo.com) (217.146.177.172) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 07 Feb 2006 08:39:41 -0800 Received: (qmail 28176 invoked by uid 60001); 7 Feb 2006 16:39:20 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.it; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=z5rjmBGJNYBHk9ExSPc4rLrZfk6HsvkqBHDodFWq4JPGjHPv/pdTgQPWGkQs/TMoLin8xTqKQ+QXR5g5JRQulQqP+Hbtza2GV2t7FrdcZaDEbA19EH2QX3S5vZikDCHlsT+YZyHwy9wvyhmb+VhFRFFh85lvIfEAGkKsnOMwR/Q= ; Message-ID: <20060207163919.28174.qmail@web27311.mail.ukl.yahoo.com> Received: from [193.227.215.155] by web27311.mail.ukl.yahoo.com via HTTP; Tue, 07 Feb 2006 17:39:19 CET Date: Tue, 7 Feb 2006 17:39:19 +0100 (CET) From: Giovanni Mesturini Subject: Re: *****spam***** Adding files to CVS with Ant To: Ant Users List In-Reply-To: <43E8C191.7060408@imail.kwcorp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I found the problem. The problem is that I was attemping to upload a file in a tagged branch, checked out like a readonly release. My fault, I'm sorry. If you checkout a readonly release from CVS you must have an alternative branch to commit in. Now I have succesfully solved this problem, but others found instead. So I have to make some test before ask more help. ;-) --- Geoffrey Mitchell ha scritto: > I had problems with this too. I think what is > happening is that it is > trying to add your files in a directory called > cvs-local/test-module, > which doesn't exist in cvs, so it is failing, which > is good, because > this isn't what you want anyway. If you were going > to do this from the > command line, you would "cd cvs-local/test-module" > then run your cvs > command from there. My case is somewhat different, > as my ${basedir} is > checked out from my cvs repository. It sounds like > yours is not. My > problem ended up being that I was specifying full > paths to the files to > add, and I needed to instead make them relative to > ${basedir}. In > your case, you want the files you are adding to > be relative to > ${cvs-local-dest}/${cvs-module}. If I understand > correctly, you should > be able to do this by setting the dest attribute on > the cvs task, e.g. > "dest=${cvs-local-dest}/${cvs-module}", then exclude > the path from the > file name in your add command. I'm not positive > that this will work, > but maybe it will give you some ideas of the > direction to start looking in. > > Giovanni Mesturini wrote: > > >Scenario: > > > >I have to add a file to CVS from client to server > >using an Ant script. > >This is my build.xml: > > > > ... > > > > > > >value=":pserver:${cvs-username}:${cvs-password}@intr-iol-cvs.bancaintesa.it:2402/cvs/cvsnch" > >/> > > > > value="cvs-local"/> > > >value="dummy.java"/> > > ... > > > > > > cvsRoot="${cvs-repository}" > >package="${cvs-module}" dest="${cvs-local-dest}" > >error="error.txt" output="output.txt"/> > > > > > > > > > > > > > > > > >cvsRoot="${cvs-repository}" package="${cvs-module}" > >error="error.txt" output="output.txt"/> > > > > >cvsRoot="${cvs-repository}" package="${cvs-module}" > >error="error.txt" output="output.txt"/> > > > > ... > > > >Ant outputs: > > > > Buildfile: build.xml > > > > add-file: > > > > BUILD SUCCESSFUL > > Total time: 0 seconds > > > > > >But in "error.txt" file I find this message: > > > > cvs add: in directory .: > > cvs [add aborted]: there is no version here; do > 'cvs > >checkout' first > > > >...and nothing is done: the file is missing on rep. > > > >Where I'm doing wrong? > >Thanks > >Jo > > > > > > > >___________________________________ > >Yahoo! Messenger with Voice: chiama da PC a > telefono a tariffe esclusive > >http://it.messenger.yahoo.com > > > >--------------------------------------------------------------------- > >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 > > ___________________________________ Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB http://mail.yahoo.it --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org