Lines 605-613
Link Here
|
605 |
|
605 |
|
606 |
DeployedApplication deployedApp = |
606 |
DeployedApplication deployedApp = |
607 |
new DeployedApplication(cn.getName(), true); |
607 |
new DeployedApplication(cn.getName(), true); |
608 |
|
608 |
long startTime = 0; |
609 |
// Assume this is a configuration descriptor and deploy it |
609 |
// Assume this is a configuration descriptor and deploy it |
610 |
if(log.isInfoEnabled()) { |
610 |
if(log.isInfoEnabled()) { |
|
|
611 |
startTime = System.currentTimeMillis(); |
611 |
log.info(sm.getString("hostConfig.deployDescriptor", |
612 |
log.info(sm.getString("hostConfig.deployDescriptor", |
612 |
contextXml.getAbsolutePath())); |
613 |
contextXml.getAbsolutePath())); |
613 |
} |
614 |
} |
Lines 744-749
Link Here
|
744 |
if (host.findChild(context.getName()) != null) { |
745 |
if (host.findChild(context.getName()) != null) { |
745 |
deployed.put(context.getName(), deployedApp); |
746 |
deployed.put(context.getName(), deployedApp); |
746 |
} |
747 |
} |
|
|
748 |
if (log.isInfoEnabled()) { |
749 |
log.info(sm.getString("hostConfig.deployDescriptor.finished", |
750 |
contextXml.getAbsolutePath(), Long.valueOf(System.currentTimeMillis() - startTime))); |
751 |
} |
747 |
} |
752 |
} |
748 |
|
753 |
|
749 |
|
754 |
|
Lines 864-869
Link Here
|
864 |
InputStream istream = null; |
869 |
InputStream istream = null; |
865 |
FileOutputStream fos = null; |
870 |
FileOutputStream fos = null; |
866 |
BufferedOutputStream ostream = null; |
871 |
BufferedOutputStream ostream = null; |
|
|
872 |
long startTime = 0; |
867 |
|
873 |
|
868 |
File xml = new File(appBase(), |
874 |
File xml = new File(appBase(), |
869 |
cn.getBaseName() + "/META-INF/context.xml"); |
875 |
cn.getBaseName() + "/META-INF/context.xml"); |
Lines 1041-1049
Link Here
|
1041 |
xml.exists() && deployXML && copyThisXml); |
1047 |
xml.exists() && deployXML && copyThisXml); |
1042 |
|
1048 |
|
1043 |
// Deploy the application in this WAR file |
1049 |
// Deploy the application in this WAR file |
1044 |
if(log.isInfoEnabled()) |
1050 |
if(log.isInfoEnabled()) { |
|
|
1051 |
startTime = System.currentTimeMillis(); |
1045 |
log.info(sm.getString("hostConfig.deployWar", |
1052 |
log.info(sm.getString("hostConfig.deployWar", |
1046 |
war.getAbsolutePath())); |
1053 |
war.getAbsolutePath())); |
|
|
1054 |
} |
1047 |
|
1055 |
|
1048 |
try { |
1056 |
try { |
1049 |
// Populate redeploy resources with the WAR file |
1057 |
// Populate redeploy resources with the WAR file |
Lines 1099-1104
Link Here
|
1099 |
} |
1107 |
} |
1100 |
|
1108 |
|
1101 |
deployed.put(cn.getName(), deployedApp); |
1109 |
deployed.put(cn.getName(), deployedApp); |
|
|
1110 |
if (log.isInfoEnabled()) { |
1111 |
log.info(sm.getString("hostConfig.deployWar.finished", |
1112 |
war.getAbsolutePath(), Long.valueOf(System.currentTimeMillis() - startTime))); |
1113 |
} |
1102 |
} |
1114 |
} |
1103 |
|
1115 |
|
1104 |
|
1116 |
|
Lines 1147-1157
Link Here
|
1147 |
*/ |
1159 |
*/ |
1148 |
protected void deployDirectory(ContextName cn, File dir) { |
1160 |
protected void deployDirectory(ContextName cn, File dir) { |
1149 |
|
1161 |
|
1150 |
|
1162 |
long startTime = 0; |
1151 |
// Deploy the application in this directory |
1163 |
// Deploy the application in this directory |
1152 |
if( log.isInfoEnabled() ) |
1164 |
if( log.isInfoEnabled() ) { |
|
|
1165 |
startTime = System.currentTimeMillis(); |
1153 |
log.info(sm.getString("hostConfig.deployDir", |
1166 |
log.info(sm.getString("hostConfig.deployDir", |
1154 |
dir.getAbsolutePath())); |
1167 |
dir.getAbsolutePath())); |
|
|
1168 |
} |
1155 |
|
1169 |
|
1156 |
Context context = null; |
1170 |
Context context = null; |
1157 |
File xml = new File(dir, Constants.ApplicationContextXml); |
1171 |
File xml = new File(dir, Constants.ApplicationContextXml); |
Lines 1275-1280
Link Here
|
1275 |
} |
1289 |
} |
1276 |
|
1290 |
|
1277 |
deployed.put(cn.getName(), deployedApp); |
1291 |
deployed.put(cn.getName(), deployedApp); |
|
|
1292 |
if( log.isInfoEnabled() ) { |
1293 |
log.info(sm.getString("hostConfig.deployDir.finished", |
1294 |
dir.getAbsolutePath(), Long.valueOf(System.currentTimeMillis() - startTime))); |
1295 |
} |
1278 |
} |
1296 |
} |
1279 |
|
1297 |
|
1280 |
|
1298 |
|