Permalink
Browse files

Sometimes a command can take a long time, and the user is left wonder…

…ing what is going on.

Added a logger.info line to indicate when executing UserCommands before a run.
  • Loading branch information...
1 parent 5434a57 commit c5e9dd6f9790a7ca8db1978be789eea58cf5f5d6 @shanti committed Apr 23, 2012
@@ -52,9 +52,9 @@
<xforms:label xforms:model="benchmark-labels" xforms:ref="/labels/cancel"/>
<xforms:action id="action-cancel">
<xforms:reset id="reset-cancel" xforms:model="benchmark-model"/>
- <xforms:toggle id="toggle-cancel" xforms:case="case-jvmConfig"/>
+ <xforms:toggle id="toggle-cancel" xforms:case="case-runConfig"/>
</xforms:action>
</xforms:trigger>
</xforms:group>
</body>
-</html>
+</html>
@@ -117,6 +117,7 @@ public boolean get() {
for (String cmdString : cmdStrings) {
Command c = new Command(cmdString);
c.setStreamHandling(Command.STDOUT,Command.CAPTURE);
+ logger.info("Executing '" + cmdString + "'");
handle = cmds.execute(host, c, null);
info = handle.fetchOutput(Command.STDOUT);
if (info != null) {
@@ -161,8 +161,8 @@ public static boolean tokenReplace(String fileName, String token, String replace
if(!FileHelper.copyFile(fileName, backupFileName, false))
return false; // Failed to backup the file
- logger.fine("Token : " + token);
- logger.fine("Replacement : " + replacement);
+ logger.finest("Token : " + token);
+ logger.finest("Replacement : " + replacement);
try {
BufferedReader in = new BufferedReader(new FileReader(backupFileName));

0 comments on commit c5e9dd6

Please sign in to comment.