mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Merge from HEAD to WCM-DEV2.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3659 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -46,6 +46,10 @@ public class Repository extends Tool
|
||||
context.setHelp(true);
|
||||
break;
|
||||
}
|
||||
else if (args[i].equals("-verbose"))
|
||||
{
|
||||
context.setVerbose(true);
|
||||
}
|
||||
else if (args[i].equals("-user"))
|
||||
{
|
||||
i++;
|
||||
|
@@ -183,6 +183,7 @@ public abstract class Tool
|
||||
*/
|
||||
public final void start(String[] args)
|
||||
{
|
||||
long startTime = System.nanoTime();
|
||||
int status = -1;
|
||||
|
||||
try
|
||||
@@ -202,7 +203,11 @@ public abstract class Tool
|
||||
logInfo(getToolName());
|
||||
initialiseRepository();
|
||||
login();
|
||||
long loginTime = System.nanoTime();
|
||||
logInfo("Time to login "+((loginTime - startTime)/1000000000f)+" seconds");
|
||||
status = execute();
|
||||
long executeTime = System.nanoTime();
|
||||
logInfo("Time to execute "+((executeTime - loginTime)/1000000000f)+" seconds");
|
||||
logInfo(getToolName() + " successfully completed.");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user