DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12258>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12258 Ant's ftp "mkdir" does not create subdirectories Summary: Ant's ftp "mkdir" does not create subdirectories Product: Ant Version: 1.5 Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Normal Priority: Other Component: Optional Tasks AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Please refer below my question and replies from jGuru forum. Hi, I am using ftp task with Ant 5.1. FTP connects fine but is unable to create sub-directory under existing directories. I also tried creating directory tree like /some/directory but no luck. It, though, creates directory at ftp's default root. Below is the task xml.. <ftp action="mkdir" server="10.32.66.50" userid="some" password="user" remotedir="\MOE\MOE${DSTAMP}" /> Where "MOE" and "MOE${DSTAMP}" are 2 new folders to be created. It won't raise any error, instead it creates "MOE${DSTAMP}" folder on default root directory. And yes..I had been through all Ant help docs before posting this question :^) .. Any help on this is highly appreciated. Re: Ant's ftp "mkdir" does not create subdirectories Topic: Ant Erik Hatcher, Aug 29, 2002 [replies:3] <ftp> does, however, create directory structures when you are uploading files - so if that is your intention then just go ahead and upload a directory structure matching what you want to create. Re[2]: Ant's ftp "mkdir" does not create subdirectories Topic: Ant Jitendra Mehta, Aug 30, 2002 [replies:2] Thanks Erik. I want ftp to always create sub-directory under existing directory called "MOE". I tried uploading full directory structure as "\MOE\MOE${DSTAMP}", but still it creates directory "MOE{DSTAMP}" under default root and not under "MOE". Here is the full build.xml file. <?xml version="1.0"?> <project name="MyMOE" default="dist" basedir="."> <!-- set global properties for this build --> <property name="src" value="/mifc/src/my/mifc/moe"/> <property name="src_bo" value="/mifc/src/my/mifc/bo"/> <property name="build" value="/mifc/web-inf/classes"/> <property name="dist" value="/mifc/dist"/> <property name="build.lib" value="/mifc/web- inf/lib/NetComponents.jar;/mifc/web-inf/classes;/mifc/web- inf/lib/classes12.jar;/mifc/tools/ibm/java13/jre/lib/rt.jar;/mifc/tools/tomcat/c ommon/lib/servlet.jar;/mifc/web-inf/lib/iText.jar;/mifc/web-inf/lib/cos.jar"/> <property name="build.classesdir" value="${basedir}//mifc/web-inf/classes"/> <property name="build.classpath" value="${build.classesdir};${build.lib};${build}"/> <property name="build.docdir" value="/mifc/javadoc"/> <target name="init" description="Initializing....."> <!-- Create the time stamp --> <tstamp/> <property name="ftp.dir" value="MOE\MOE-${DSTAMP}"/> <!-- Create the build directory structure used by compile --> <mkdir dir="${build}"/> </target> <target name="compile" depends="init" description="Compiling all classes....."> <!-- Compile the java code from ${src} into ${build} --> <javac srcdir="${src_bo}" destdir="${build}" classpath="${build.classpath}"/> <javac srcdir="${src}" destdir="${build}" classpath="${build.classpath}"/> </target> <target name="dist" depends="compile" description="Distributing and making Jar....."> <ftp action="mkdir" server="10.33.15.50" userid="uid" password="pwd" remotedir="${ftp.dir}" > </ftp> <ftp server="10.33.15.50" remotedir="${ftp.dir}" userid="uid" password="pwd" > <fileset dir="${build}/my/mifc/bo"> </fileset> <fileset dir="${build}/my/mifc/moe"> </fileset> </ftp> </project> Re[3]: Ant's ftp "mkdir" does not create subdirectories Topic: Ant Erik Hatcher, Aug 30, 2002 [replies:1] Not sure. Would a forward-slash in ftp.dir help? Is this item helpful? yes no Previous votes Yes: 0 No: 0 Re[4]: Ant's ftp "mkdir" does not create subdirectories Topic: Ant Jitendra Mehta, Aug 30, 2002 Forward slash raises error "direcotry not found!". Our ftp server requires backslash. I wish, ftp supported command like "change directory" which I could have used to change to existing folder after logging on to default root dir. I even tried "chmod 777" on my folder, but it didn't help. Thanks. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
