Commit f062dd04 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

use europe mirror for UCSC files

parent 24647eee
Pipeline #48229 passed with stage
in 13 minutes and 24 seconds
...@@ -299,7 +299,7 @@ public class BigFileCache { ...@@ -299,7 +299,7 @@ public class BigFileCache {
if (!FTPReply.isPositiveCompletion(reply)) { if (!FTPReply.isPositiveCompletion(reply)) {
throw new IOException("FTP server refused connection."); throw new IOException("FTP server refused connection.");
} }
// ftp.enterLocalPassiveMode(); ftp.enterLocalPassiveMode();
ftp.login("anonymous", ""); ftp.login("anonymous", "");
ftp.setFileType(FTP.BINARY_FILE_TYPE); ftp.setFileType(FTP.BINARY_FILE_TYPE);
...@@ -638,7 +638,7 @@ public class BigFileCache { ...@@ -638,7 +638,7 @@ public class BigFileCache {
if (!FTPReply.isPositiveCompletion(reply)) { if (!FTPReply.isPositiveCompletion(reply)) {
throw new IOException("FTP server refused connection."); throw new IOException("FTP server refused connection.");
} }
// ftp.enterLocalPassiveMode(); ftp.enterLocalPassiveMode();
ftp.login("anonymous", ""); ftp.login("anonymous", "");
ftp.setFileType(FTP.BINARY_FILE_TYPE); ftp.setFileType(FTP.BINARY_FILE_TYPE);
...@@ -848,7 +848,7 @@ public class BigFileCache { ...@@ -848,7 +848,7 @@ public class BigFileCache {
if (!FTPReply.isPositiveCompletion(reply)) { if (!FTPReply.isPositiveCompletion(reply)) {
throw new IOException("FTP server refused connection."); throw new IOException("FTP server refused connection.");
} }
// ftp.enterLocalPassiveMode(); ftp.enterLocalPassiveMode();
ftp.login("anonymous", ""); ftp.login("anonymous", "");
ftp.setFileType(FTP.BINARY_FILE_TYPE); ftp.setFileType(FTP.BINARY_FILE_TYPE);
......
...@@ -43,7 +43,7 @@ public class UcscReferenceGenomeConnector extends AbstractReferenceGenomeConnect ...@@ -43,7 +43,7 @@ public class UcscReferenceGenomeConnector extends AbstractReferenceGenomeConnect
/** /**
* Server domain name. * Server domain name.
*/ */
private static final String SERVER = "hgdownload.cse.ucsc.edu"; private static final String SERVER = "hgdownload-euro.soe.ucsc.edu";
/** /**
* Default class logger. * Default class logger.
*/ */
...@@ -224,7 +224,7 @@ public class UcscReferenceGenomeConnector extends AbstractReferenceGenomeConnect ...@@ -224,7 +224,7 @@ public class UcscReferenceGenomeConnector extends AbstractReferenceGenomeConnect
throw new FileNotAvailableException( throw new FileNotAvailableException(
"Cannot find file with genome for: " + organism + "; " + version + ". FTP server refused connection."); "Cannot find file with genome for: " + organism + "; " + version + ". FTP server refused connection.");
} else { } else {
// ftp.enterLocalPassiveMode(); ftp.enterLocalPassiveMode();
ftp.login("anonymous", ""); ftp.login("anonymous", "");
ftp.setFileType(FTP.BINARY_FILE_TYPE); ftp.setFileType(FTP.BINARY_FILE_TYPE);
...@@ -324,7 +324,7 @@ public class UcscReferenceGenomeConnector extends AbstractReferenceGenomeConnect ...@@ -324,7 +324,7 @@ public class UcscReferenceGenomeConnector extends AbstractReferenceGenomeConnect
* @return local path on ftp server to folder with data about reference genome * @return local path on ftp server to folder with data about reference genome
*/ */
private String getGenomePath(MiriamData organism, String version) { private String getGenomePath(MiriamData organism, String version) {
return "/goldenPath/" + version + "/bigZips/"; return "/apache/htdocs/goldenPath/" + version + "/bigZips/";
} }
/** /**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment