You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Timothy Van Hooser <an...@yahoo.com> on 2001/07/02 10:01:14 UTC
vssget and ftp problems
Dear Ant-user list,
I am having 2 problems using ant. The first is with
vssget. When I run ant, I get the following message:
clean:
dtd:
checkout:
[vssget] Username: xxxxxx
For some reason, ant hangs at this point and does not
do anything else. I am trying to checkout the latest
versions of the files from visual source safe and then
use ant to deploy the project.
The second problem is with using ftp. When I try to
ftp a file called golf.html, I get the following
error:
clean:
dtd:
release:
[ftp] sending files
[ftp] transferring
C:\dev\v1_0\src\docroot\golf.html
BUILD FAILED
c:\dev\v1_0\src\env\genertel.xml:45: could not
transfer file: 550 golf.html: Acc
ess is denied.
Total time: 1 second.
Please let me know if you can solve these problems.
Thanks!
Tim
Here is my xml document.
<project name="Xxxxxxx" default="main" basedir=".">
<!-- set global properties for this build -->
<property name="src" value="C:\dev\v1_0\src"/>
<property name="build" value="c:\dev\v1_0\out"/>
<property name="dist" value="dist"/>
<property name="docroot"
value="c:\dev\v1_0\src\docroot" />
<!--property name="remoteDir"
value="\dev-old\v1_0\src\docroot"/-->
<target name="main"
depends="clean,dtd,checkout,init,compile,dist">
</target>
<target name="init">
<!-- Create the time stamp -->
<tstamp/>
<!-- Create the build directory structure used by
compile -->
<mkdir dir="${build}"/>
</target>
<target name="checkout">
<taskdef name="vssget"
classname="org.apache.tools.ant.taskdefs.optional.vss.MSVSSGET"/>
<vssget localPath="C:\dev\v1_0\src"
recursive="true" id="timothy_p_van_hooser"
login="xxxxxx,xxxxx" vsspath="//gol-vss/VSS"
writable="true"/>
</target>
<target name="dtd" description="generates a DTD for
Ant build files">
<antstructure output="build.dtd"/>
</target>
<target name="compile" depends="init">
<!-- Compile the java code from ${src} into
${build} -->
<javac srcdir="${src}" destdir="${build}"
classpathref="classpath"/>
</target>
<target name="dist" depends="compile">
<!-- Create the distribution directory -->
<mkdir dir="${dist}/lib"/>
<!-- Put everything in ${build} into the
MyProject-${DSTAMP}.jar file -->
<jar jarfile="${dist}/lib/MyProject-${DSTAMP}.jar"
basedir="${build}"/>
</target>
<taskdef name="ftp"
classname="org.apache.tools.ant.taskdefs.optional.net.FTP"/>
<target name="release" description="copies files to
ATG Dynamo v1_0\src\docroot to IIS">
<ftp server="10.140.1.39" verbose="yes"
userid="Administrator" action="put"
password="accadmin">
<fileset dir="${docroot}">
<include name="**/*.html"/>
</fileset>
</ftp>
</target>
</project>
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/