public static jalview.ws.jws2.Jws2Discoverer getJabawsDiscoverer()
{
+ return getJabawsDiscoverer(true);
+ }
+ public static Jws2Discoverer getJabawsDiscoverer(boolean localhost)
+ {
jalview.ws.jws2.Jws2Discoverer disc = jalview.ws.jws2.Jws2Discoverer
.getDiscoverer();
- int p = 0;
String svcurls = "";
- Vector<String> services = new Vector<String>();
- for (String url : JalviewJabawsTestUtils.serviceUrls)
+ if (localhost)
{
- svcurls += url + "; ";
- services.add(url);
+ int p = 0;
+ Vector<String> services = new Vector<String>();
+ for (String url : JalviewJabawsTestUtils.serviceUrls)
+ {
+ svcurls += url + "; ";
+ services.add(url);
+ }
+ ;
+ Jws2Discoverer.setServiceUrls(services);
}
- ;
- Jws2Discoverer.setServiceUrls(services);
-
try
{
disc.run();
return disc;
}
+
}
{
jalview.bin.Cache.initLogger();
- disc = JalviewJabawsTestUtils.getJabawsDiscoverer();
+ disc = JalviewJabawsTestUtils.getJabawsDiscoverer(false);
for (Jws2Instance svc : disc.getServices())
{