Skip to content

Commit 75a7d8d

Browse files
committed
Upgrade check hardcoded
1 parent 41e12f6 commit 75a7d8d

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

components/formats-bsd/src/loci/formats/UpgradeChecker.java

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public class UpgradeChecker {
111111
};
112112

113113
/** Location of the OME registry. */
114-
public static final String REGISTRY = "http://upgrade.openmicroscopy.org.uk";
114+
public static final String REGISTRY = "http://www.openmicroscopy.org/qa3/registry/hit";
115115

116116
/** Value of "bioformats.caller" for Bio-Formats utilities. */
117117
public static final String DEFAULT_CALLER = "Bio-Formats utilities";
@@ -198,28 +198,28 @@ public boolean newVersionAvailable(String registryID, String caller) {
198198
final StringBuilder query = new StringBuilder(REGISTRY);
199199
for (int i=0; i<REGISTRY_PROPERTIES.length; i++) {
200200
if (i == 0) {
201-
query.append("?");
201+
// query.append("?");
202202
}
203203
else {
204-
query.append(";");
204+
// query.append(";");
205205
}
206206

207-
query.append(REGISTRY_PROPERTIES[i]);
208-
query.append("=");
207+
// query.append(REGISTRY_PROPERTIES[i]);
208+
// query.append("=");
209209

210210
if (i == 0) {
211-
query.append(FormatTools.VERSION);
212-
}
213-
else {
214-
try {
215-
query.append(URLEncoder.encode(
216-
System.getProperty(REGISTRY_PROPERTIES[i]), "UTF-8"));
217-
}
218-
catch (UnsupportedEncodingException e) {
219-
LOGGER.warn("Failed to append query argument: " +
220-
REGISTRY_PROPERTIES[i], e);
221-
}
211+
// query.append(FormatTools.VERSION);
222212
}
213+
// else {
214+
// try {
215+
// //query.append(URLEncoder.encode(
216+
// // System.getProperty(REGISTRY_PROPERTIES[i]), "UTF-8"));
217+
// }
218+
// catch (UnsupportedEncodingException e) {
219+
// LOGGER.warn("Failed to append query argument: " +
220+
// REGISTRY_PROPERTIES[i], e);
221+
// }
222+
// }
223223
}
224224

225225
System.setProperty(UPGRADE_CHECK_PROPERTY, "true");

components/formats-bsd/src/loci/formats/tools/UpgradeCheck.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public static void main(String[] args) {
5959

6060
boolean doInstall = args.length > 0 && args[0].equals("-install");
6161

62-
if (checker.newVersionAvailable(UpgradeChecker.DEFAULT_CALLER)) {
62+
if (checker.newVersionAvailable(UpgradeChecker.REGISTRY_IMAGEJ, UpgradeChecker.DEFAULT_CALLER)) {
6363
System.out.println("A newer stable version is available.");
6464
}
6565
else {

0 commit comments

Comments
 (0)