|
|
@@ -241,7 +241,24 @@ public class FTPTest extends BuildFileTest{ |
|
|
|
ds.scan(); |
|
|
|
compareFiles(ds, new String[] {}, new String[] {}); |
|
|
|
} |
|
|
|
|
|
|
|
public void testFileSymlink() { |
|
|
|
if (!supportsSymlinks) { |
|
|
|
return; |
|
|
|
} |
|
|
|
if (!loginSuceeded) { |
|
|
|
return; |
|
|
|
} |
|
|
|
if (!changeRemoteDir(remoteTmpDir)) { |
|
|
|
return; |
|
|
|
} |
|
|
|
getProject().executeTarget("symlink-file-setup"); |
|
|
|
FTP.FTPDirectoryScanner ds = myFTPTask.newScanner(ftp); |
|
|
|
ds.setBasedir(new File(getProject().getBaseDir(), "tmp")); |
|
|
|
ds.setIncludes(new String[] {"alpha/beta/gamma/"}); |
|
|
|
ds.scan(); |
|
|
|
compareFiles(ds, new String[] {"alpha/beta/gamma/gamma.xml"}, |
|
|
|
new String[] {"alpha/beta/gamma"}); |
|
|
|
} |
|
|
|
// father and child pattern test |
|
|
|
public void testOrderOfIncludePatternsIrrelevant() { |
|
|
|
if (!loginSuceeded) { |
|
|
|