Skip to content

Commit

Permalink
Some improvements of RemoteLocatorImporter.
Browse files Browse the repository at this point in the history
  • Loading branch information
bengtmartensson committed Jan 20, 2025
1 parent 599daed commit 62d0f30
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,14 @@

public final class RemoteLocatorImporter extends DatabaseImporter implements IRemoteSetImporter {

public static final String CATALOG = "http://www.harctoolbox.org/downloads/remotelocator";
// public static final String CATALOG = "http://www.harctoolbox.org/downloads/remotelocator.html";
public static final String CATALOG_URL = CATALOG + "-" + RemoteDatabase.FORMATVERSION + ".xml";
public static final String CATALOG_HTML = CATALOG + "-" + RemoteDatabase.FORMATVERSION + ".html";

private static String catalog = CATALOG_URL;
private static String catalog = RemoteDatabase.REMOTELOCATOR_CATALOG_URL;

public static void setCatalog(String newCatalog) {
catalog = newCatalog;
}

public static URI getHomeUri() {
return URI.create(CATALOG_HTML);
return URI.create(catalog.replace(".xml", ".html"));
}

private final boolean verbose;
Expand Down

0 comments on commit 62d0f30

Please sign in to comment.