Project

General

Profile

« Previous | Next » 

Revision 6500

Added by Matt Jones about 13 years ago

Use setProperty() instead of addProperty() to properly override the Settings property.

View differences:

src/edu/ucsb/nceas/metacat/admin/PropertiesAdmin.java
366 366
            }
367 367
            String mnCertificatePath = certificatePath + node.getIdentifier().getValue() + ".pem";
368 368
            CertificateManager.getInstance().setCertificateLocation(mnCertificatePath);
369
            Settings.getConfiguration().addProperty("D1Client.CN_URL", PropertyService.getProperty("dataone.coordinatingNodeBaseURL"));
369
            Settings.getConfiguration().setProperty("D1Client.CN_URL", PropertyService.getProperty("dataone.coordinatingNodeBaseURL"));
370 370
            cn = D1Client.getCN();
371 371
            logMetacat.debug("Registering node with DataONE.");
372 372
            // Session is null, because the libclient code automatically sets up an

Also available in: Unified diff