You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by KrustyDerClown <Kr...@gmx.de> on 2005/08/05 12:05:38 UTC
cvs task with cvs log command
Hello,
i have a problem with the <cvs> task in ANT. Here my cvs target:
<cvs cvsRoot="${cvs.root}" quiet="true"
command="log -d "2005-08-01<2005-08-03"
C:/wsad/workspace/deployment_utilities > c:\\new_test.log"
failonerror="yes" >
</cvs>
But i get this error:
[cvs] cvs log: cannot open CVS/Entries for reading: No such file or
directory
[cvs] cvs [log aborted]: no repository
[cvs] retCode=1
And this infos:
Execute:Java13CommandLauncher: Executing 'cvs' with arguments:
'-d:pserver:ROOT(changed for security reasons)'
'-q'
'log'
'-d'
'2005-08-01<2005-08-03'
'C:/wsad/workspace/deployment_utilities'
'>'
'c:\\new_test.log'
The problem is that ANT dont pass the " around the 2 dates with the CVS
command.
Why ?
This following cvs command works (tested without ANT, directly with CVS):
cvs -d:ROOT(changed for security reasons) -q log -d "2005-08-01<2005-08-03"
C:/wsad/workspace/deployment_utilities > c:\\new_test.log
Have anyone an idea ? How can i pass the " to the CVS command ?
Any workaround for me ?
Thank you for your help.
Greets Oliver
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: cvs task with cvs log command
Posted by Steve Loughran <st...@apache.org>.
KrustyDerClown wrote:
> Hello,
>
> i have a problem with the <cvs> task in ANT. Here my cvs target:
>
> <cvs cvsRoot="${cvs.root}" quiet="true"
> command="log -d "2005-08-01<2005-08-03"
> C:/wsad/workspace/deployment_utilities > c:\\new_test.log"
> failonerror="yes" >
> </cvs>
>
> But i get this error:
>
> [cvs] cvs log: cannot open CVS/Entries for reading: No such file or
> directory
> [cvs] cvs [log aborted]: no repository
> [cvs] retCode=1
>
> And this infos:
>
> Execute:Java13CommandLauncher: Executing 'cvs' with arguments:
> '-d:pserver:ROOT(changed for security reasons)'
> '-q'
> 'log'
> '-d'
> '2005-08-01<2005-08-03'
> 'C:/wsad/workspace/deployment_utilities'
> '>'
> 'c:\\new_test.log'
>
> The problem is that ANT dont pass the " around the 2 dates with the CVS
> command.
>
> Why ?
>
that isnt the problem. Ant doesnt need to quote stuff because it isnt
going via the shell
but because of teh shell, you cant do > c:\\newtest.log in the command.
Those two args are being sent to CVS and failing, because it doesnt
understand them.
> This following cvs command works (tested without ANT, directly with CVS):
>
> cvs -d:ROOT(changed for security reasons) -q log -d
> "2005-08-01<2005-08-03" C:/wsad/workspace/deployment_utilities >
> c:\\new_test.log
>
> Have anyone an idea ? How can i pass the " to the CVS command ?
>
> Any workaround for me ?
yes, look at the output attribute of the cvs task
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org