cziegeler 2003/07/10 07:14:00
Modified: sourceresolve/src/java/org/apache/excalibur/source/impl
FTPSource.java
Log:
Applying patch 21406: use binary transfer for ftp
Revision Changes Path
1.4 +5 -0
avalon-excalibur/sourceresolve/src/java/org/apache/excalibur/source/impl/FTPSource.java
Index: FTPSource.java
===================================================================
RCS file:
/home/cvs/avalon-excalibur/sourceresolve/src/java/org/apache/excalibur/source/impl/FTPSource.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- FTPSource.java 7 Jul 2003 16:50:41 -0000 1.3
+++ FTPSource.java 10 Jul 2003 14:14:00 -0000 1.4
@@ -310,6 +310,11 @@
try
{
ftpClient = m_source.getFtpClient();
+ // NOTE:
+ // we don't have a way to determine whether we are
+ // dealing with an ascii file or not. Therefore transfer mode
+ // will be binary by default as this will cause the least
problems.
+ // The worse that can happen now is that linebreaks get messed
up.
String parentPath = null;
String fileName = null;
final String relativePath = m_source.m_url.getPath().substring(
1 );
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]