Hello, thank you very much, it works fine. For the ftp, i use <ftp-deploy..../>, with the Aelogic.NAnt.dll. But it just works on upload, download is missing.
So, my problem is half resolved. David Roebuck, Alex wrote: > > I can't help with your first question, but the parameter for specifying > the base directory in a fileset is "basedir" not "dir". > > So try this: > > <copy todir="C:\pics2"> > <fileset basedir="C:\pics1"> Unexpected ttribute > dir > <exclude name="**/*.java"/> > </fileset> > </copy> > > Regards, > > Alex. > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of kerjon > Sent: Tuesday, January 22, 2008 1:35 PM > To: nant-users@lists.sourceforge.net > Subject: [NAnt-users] fileset and FTP library > > > Hello, i'm a newbie in nant, and i have some problems. > > I used Ant in Eclipse, and i have some code i know it's working with > eclipse. > > An example: > <target name="ftp_put" description="Put files on server"> > <ftp > action="put" > server="${ap1}" > userid="${username}" > password="${password}" > remotedir="${ap_backup_dir}" > passive="no" > ignoreNoncriticalErrors="No" > skipFailedTransfers="false"> > <fileset dir="C:\DEV\tmp_upload_files"> > <include name="**/**"/> > </fileset> > </ftp> > </target> > > This code works, but i added a library > > commons-net-1.4.1-2005-12-03.jar. > > I would like to use NAnt under Visual Studio 2005, but the code above > doesn't work. I'm looking for a library, like a net-commons, but i don't > find. > > Does such a library exist? > > The last point, with this part of code: > > <copy todir="C:\pics2"> > <fileset dir="C:\pics1"> Unexpected ttribute dir > <exclude name="**/*.java"/> > </fileset> > </copy> > > It works with eclipse. But with VS2005, i have an error: > > Unexpected attribute "dir" on element <fileset>. > > I don't know what i have to do. > > Thank you for your help. > > David > -- > View this message in context: > http://www.nabble.com/fileset-and-FTP-library-tp15001986p15001986.html > Sent from the NAnt - Users mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------ > - > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > NAnt-users mailing list > NAnt-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nant-users > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > NAnt-users mailing list > NAnt-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nant-users > > -- View this message in context: http://www.nabble.com/fileset-and-FTP-library-tp15001986p15020404.html Sent from the NAnt - Users mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users