You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by sandeep singh <sa...@india.hp.com> on 2001/10/20 18:25:07 UTC
Please help me!
I have sent this mail previously also.
but nobody replied, is nobody is having
answer to my problem? Please help me if
you can.
hi
I am trying to use optional task FTP in ANT.
I am trying to ftp to a server and trying to
delete a file. The build file is saying
"build successful" when I am running it through ANT
but actually file is not deleted.
Can you tell me what is wrong with this code?
The code is:
<?xml version="1.0" encoding="UTF-8"?>
<project name="squares" default="main" basedir=".">
<target name="FTP" >
<!--taskdef name="ftp"
classname="org.apache.tools.ant.taskdefs.optional.net.FTP"/-->
<ftp action="del" server="postbox" userid="sandeeps"
password="somepassword">
<fileset >
<include name="/home/sandeeps/test.sh"/>
</fileset>
</ftp>
</target>
<target name="echoFTP" depends="FTP">
<echo>
Using
FTP.........................................................................
...
</echo>
</target> <target name="main" depends="echoFTP"/>
</project>
RE: cvs & ant & win2K
Posted by Marc Portier <mp...@outerthought.org>.
Ekkehard,
finding CVSPass:
- according to the ant documentation it's in the built in tasks
(it's listed there in teh manuals in every case)
- as for source code...
it's in the package org.apache.tools.ant.taskdefs;
you will find a CVSPass.java in the package-matching subdir under the
src/main of you distribution
- as for packaging...
the compiled class CVSPass.class should be in your ant.jar in the subdir
matching the package name
didn't quite get where you were asking for, but it's a safe bet to be one of
these :-)
regards and fun anting,
-marc=
> -----Original Message-----
> From: Ekkehard Gentz [mailto:ekkehard@gentz-software.de]
> Sent: zondag 21 oktober 2001 16:27
> To: ant-user@jakarta.apache.org
> Subject: RE: cvs & ant & win2K
>
>
> hi marc and ingmar,
> now I have it running
>
> but where can I find the cvspass task ?
> I didnt find it in the built in or optional tasks from ant
>
> thanks for helping
>
> regards
>
> Ekkehard Gentz
> Softwareentwicklung
>
> ff-eCommerce Software
>
RE: cvs & ant & win2K
Posted by Ingmar Stein <In...@digital-phenomenon.com>.
It's a built-in task since Ant 1.4. If you're using 1.3, you'll need to
update your Ant installation.
Cheers,
Ingmar
> -----Original Message-----
> From: Ekkehard Gentz [mailto:ekkehard@gentz-software.de]
> Sent: Sonntag, 21. Oktober 2001 16:27
> To: ant-user@jakarta.apache.org
> Subject: RE: cvs & ant & win2K
>
> hi marc and ingmar,
> now I have it running
>
> but where can I find the cvspass task ?
> I didnt find it in the built in or optional tasks from ant
>
> thanks for helping
>
> regards
>
> Ekkehard Gentz
> Softwareentwicklung
>
> ff-eCommerce Software
RE: cvs & ant & win2K
Posted by Ekkehard Gentz <ek...@gentz-software.de>.
I just checked the ant 1.4 release
its a new task in 1.4
I was using 1.3
thanks all for the help
now it works great
Ekkehard Gentz
Softwareentwicklung
ff-eCommerce Software
RE: cvs & ant & win2K
Posted by Ekkehard Gentz <ek...@gentz-software.de>.
hi marc and ingmar,
now I have it running
but where can I find the cvspass task ?
I didnt find it in the built in or optional tasks from ant
thanks for helping
regards
Ekkehard Gentz
Softwareentwicklung
ff-eCommerce Software
RE: cvs & ant & win2K
Posted by Marc Portier <mp...@outerthought.org>.
as far as I remember
there is a special task that creates that very passwd file..
<cvspass>
try something like this:
<target name="init" >
<mkdir dir="${sandbox.dir}" />
<cvspass cvsRoot="${cvs.root}"
passfile="${cvs.passfile}"
password="${cvs.password}"
/>
</target>
<target name="get" depends="init">
<cvs cvsRoot="${cvs.root}"
package="${cvs.module}"
dest="${sandbox.dir}"
passfile="${cvs.passfile}"
/>
</target>
hope this helps,
-marc=
> -----Original Message-----
> From: Ekkehard Gentz [mailto:ekkehard@gentz-software.de]
> Sent: zondag 21 oktober 2001 13:56
> To: ant-user@jakarta.apache.org
> Subject: RE: cvs & ant & win2K
>
>
> hi nico,
> I have installed Cygwin and can use cvs.exe from commandline
>
> ---
> if I try this from the ant build.xml:
>
> <cvs cvsRoot=":pserver:myusername@myserverIP:/cvs"
> package="S_Source"
> dest="T:/TCVS"
> />
>
> then I get following error:
> testCVS:
> [cvs] cvs checkout: authorization failed: server ... rejected access
> to /cvs for user ...
> [cvs] cvs checkout: used empty password; try "cvs login" with a real
> password
>
> then I tried the following
>
> <cvs command="login"
> cvsRoot=":pserver:myusername@myserverIP:/cvs"
> />
>
> now the task "hangs"
>
> I dont know how to say the command where my local .cvspass file is located
>
> thanks for helping
>
> Ekkehard Gentz
> Softwareentwicklung
>
> ff-eCommerce
>
RE: cvs & ant & win2K
Posted by Ingmar Stein <In...@digital-phenomenon.com>.
You can use the cvspass task to generate a .cvspass file.
Cheers,
Ingmar
> -----Original Message-----
> From: Ekkehard Gentz [mailto:ekkehard@gentz-software.de]
> Sent: Sonntag, 21. Oktober 2001 13:56
> To: ant-user@jakarta.apache.org
> Subject: RE: cvs & ant & win2K
>
> hi nico,
> I have installed Cygwin and can use cvs.exe from commandline
>
> ---
> if I try this from the ant build.xml:
>
> <cvs cvsRoot=":pserver:myusername@myserverIP:/cvs"
> package="S_Source"
> dest="T:/TCVS"
> />
>
> then I get following error:
> testCVS:
> [cvs] cvs checkout: authorization failed: server ... rejected access
> to /cvs for user ...
> [cvs] cvs checkout: used empty password; try "cvs login" with a real
> password
>
> then I tried the following
>
> <cvs command="login"
> cvsRoot=":pserver:myusername@myserverIP:/cvs"
> />
>
> now the task "hangs"
>
> I dont know how to say the command where my local .cvspass file is located
>
> thanks for helping
>
> Ekkehard Gentz
> Softwareentwicklung
>
> ff-eCommerce
RE: cvs & ant & win2K
Posted by Ekkehard Gentz <ek...@gentz-software.de>.
hi nico,
I have installed Cygwin and can use cvs.exe from commandline
---
if I try this from the ant build.xml:
<cvs cvsRoot=":pserver:myusername@myserverIP:/cvs"
package="S_Source"
dest="T:/TCVS"
/>
then I get following error:
testCVS:
[cvs] cvs checkout: authorization failed: server ... rejected access
to /cvs for user ...
[cvs] cvs checkout: used empty password; try "cvs login" with a real
password
then I tried the following
<cvs command="login"
cvsRoot=":pserver:myusername@myserverIP:/cvs"
/>
now the task "hangs"
I dont know how to say the command where my local .cvspass file is located
thanks for helping
Ekkehard Gentz
Softwareentwicklung
ff-eCommerce
Re: cvs & ant & win2K
Posted by Nico Seessle <ni...@apache.org>.
----- Original Message -----
From: "Ekkehard Gentz" <ek...@gentz-software.de>
To: <an...@jakarta.apache.org>
Sent: Saturday, October 20, 2001 7:29 PM
Subject: cvs & ant & win2K
> but I want to use the cvs-tasks from ant
> but it seems that my repository on the linux server is not found from ant
on
> win2k
>
> any ideas ?
> any help ?
Any errors?
Any cvs.exe on the search path?
Nico
cvs & ant & win2K
Posted by Ekkehard Gentz <ek...@gentz-software.de>.
hi,
we have our cvs repository on a linux server
but our java development is on win2K
we use WinCVS as a client to cvs and all works well
but I want to use the cvs-tasks from ant
but it seems that my repository on the linux server is not found from ant on
win2k
any ideas ?
any help ?
regards
Ekkehard Gentz
Softwareentwicklung
ff-eCommerce Software AG
RE: Please help me!
Posted by Mark Ayad <ma...@ogilvy.net>.
<ftp server="ftp.apache.org"
port="2121"
remotedir="/pub/incoming"
userid="coder"
password="java1"
depends="yes"
binary="no"
>
<fileset dir="htdocs/manual">
<include name="**/*.html"/>
</fileset>
</ftp>
-----Original Message-----
From: sandeep singh [mailto:sandeeps@india.hp.com]
Sent: Saturday, October 20, 2001 6:25 PM
To: ant-user@jakarta.apache.org
Subject: Please help me!
Importance: High
I have sent this mail previously also.
but nobody replied, is nobody is having
answer to my problem? Please help me if
you can.
hi
I am trying to use optional task FTP in ANT.
I am trying to ftp to a server and trying to
delete a file. The build file is saying
"build successful" when I am running it through ANT
but actually file is not deleted.
Can you tell me what is wrong with this code?
The code is:
<?xml version="1.0" encoding="UTF-8"?>
<project name="squares" default="main" basedir=".">
<target name="FTP" >
<!--taskdef name="ftp"
classname="org.apache.tools.ant.taskdefs.optional.net.FTP"/-->
<ftp action="del" server="postbox" userid="sandeeps"
password="somepassword">
<fileset >
<include name="/home/sandeeps/test.sh"/>
</fileset>
</ftp>
</target>
<target name="echoFTP" depends="FTP">
<echo>
Using
FTP.........................................................................
...
</echo>
</target> <target name="main" depends="echoFTP"/>
</project>