You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Henning Lötsch <he...@vodafone.de> on 2009/04/02 23:04:30 UTC
Re: CVS with SSH
Hello,
sorry i was on travel.
My "create.cvsroot" Target:
<target name="create.cvsroot">
<if>
<equals arg1="${connection.method}" arg2="extssh" />
<then>
<echo>${dependence.warning.ssh1}</echo>
<echo>${dependence.warning.ssh2}</echo>
<property name="cvsroot" value=":ext:${user}@${server}:${rep}" />
</then>
<elseif>
<equals arg1="${connection.method}" arg2="pserver" />
<then>
<property name="cvsroot"
value=":pserver:${user}@${server}:${rep}" />
</then>
</elseif>
<else>
<echo>${cvs.error.connection.method}</echo>
</else>
</if>
</target>
(You need antconrtrib for the if-task.
you see in the target "checkout" i have replaced the property "cvsroot"
with ":ext:${user}@${server}:${rep}", so normaly the depend attribute is
not necessary in the code down.
Henning
Michael Hüttermann schrieb:
> interesting !! .. this does work for SSH? How does the target
> "create.cvsroot" look like ?
>
>
> Henning Lötsch schrieb:
>> i use this target:
>>
>> <target name="checkout" depends="create.cvsroot">
>> <cvs command="co"
>> cvsRoot=":ext:${user}@${server}:${rep}"
>> package="${package}"
>> dest="${dest}"
>> />
>> </target>
>>
>>
>> Francis Galiegue schrieb:
>>
>>> Le Monday 30 March 2009 19:29:09 Michael Hüttermann, vous avez écrit :
>>>
>>>> hmmm ok .. but how would the cvs task itself then look like ?
>>>> Thanks!!
>>>>
>>>>
>>> You can't do that unless you <exec> the CVS command, as far as I've
>>> read so far.
>>>
>>> What OS do you run? If Unix-like (that includes Linux), what shell do
>>> you use (echo $SHELL at a prompt will tell)?
>>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> 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