Lines 442-448
Link Here
|
442 |
GlassFishVersion version = ServerUtils.getServerVersion( |
442 |
GlassFishVersion version = ServerUtils.getServerVersion( |
443 |
ip.get(GlassfishModule.GLASSFISH_FOLDER_ATTR)); |
443 |
ip.get(GlassfishModule.GLASSFISH_FOLDER_ATTR)); |
444 |
try { |
444 |
try { |
445 |
instance = new GlassfishInstance(ip, version, gip); |
445 |
instance = new GlassfishInstance(ip, version, gip, updateNow); |
446 |
tagUnderConstruction(deployerUri); |
446 |
tagUnderConstruction(deployerUri); |
447 |
if (!instance.isPublicAccess()) { |
447 |
if (!instance.isPublicAccess()) { |
448 |
instance.ic.add(instance.commonSupport); |
448 |
instance.ic.add(instance.commonSupport); |
Lines 584-590
Link Here
|
584 |
* @throws IOException |
584 |
* @throws IOException |
585 |
*/ |
585 |
*/ |
586 |
public static GlassfishInstance readInstanceFromFile( |
586 |
public static GlassfishInstance readInstanceFromFile( |
587 |
FileObject instanceFO) throws IOException { |
587 |
FileObject instanceFO, boolean autoregistered) throws IOException { |
588 |
GlassfishInstance instance = null; |
588 |
GlassfishInstance instance = null; |
589 |
|
589 |
|
590 |
String installRoot |
590 |
String installRoot |
Lines 618-624
Link Here
|
618 |
} |
618 |
} |
619 |
ip.put(INSTANCE_FO_ATTR, instanceFO.getName()); |
619 |
ip.put(INSTANCE_FO_ATTR, instanceFO.getName()); |
620 |
fixImportedAttributes(ip, instanceFO); |
620 |
fixImportedAttributes(ip, instanceFO); |
621 |
instance = create(ip,GlassfishInstanceProvider.getProvider(),false); |
621 |
instance = create(ip,GlassfishInstanceProvider.getProvider(), autoregistered); |
622 |
} else { |
622 |
} else { |
623 |
LOGGER.log(Level.FINER, |
623 |
LOGGER.log(Level.FINER, |
624 |
"GlassFish folder {0} is not a valid install.", |
624 |
"GlassFish folder {0} is not a valid install.", |
Lines 760-766
Link Here
|
760 |
|
760 |
|
761 |
@SuppressWarnings("LeakingThisInConstructor") |
761 |
@SuppressWarnings("LeakingThisInConstructor") |
762 |
private GlassfishInstance(Map<String, String> ip, GlassFishVersion version, |
762 |
private GlassfishInstance(Map<String, String> ip, GlassFishVersion version, |
763 |
GlassfishInstanceProvider instanceProvider) { |
763 |
GlassfishInstanceProvider instanceProvider, boolean prepareProperties) { |
764 |
this.version = version; |
764 |
this.version = version; |
765 |
this.process = null; |
765 |
this.process = null; |
766 |
ic = new InstanceContent(); |
766 |
ic = new InstanceContent(); |
Lines 783-789
Link Here
|
783 |
} else { |
783 |
} else { |
784 |
domainXMLListener = null; |
784 |
domainXMLListener = null; |
785 |
} |
785 |
} |
786 |
this.properties = prepareProperties(ip); |
786 |
if (prepareProperties) { |
|
|
787 |
this.properties = prepareProperties(ip); |
788 |
} else { |
789 |
this.properties = new Props(ip); |
790 |
} |
787 |
if (!isPublicAccess()) { |
791 |
if (!isPublicAccess()) { |
788 |
// Add this instance into local lookup (to find instance from |
792 |
// Add this instance into local lookup (to find instance from |
789 |
// node lookup). |
793 |
// node lookup). |