* added now script property

This commit is contained in:
Reinhard Pointner 2014-04-19 05:37:40 +00:00
parent f9da8f4567
commit f7a7866e23
2 changed files with 6 additions and 1 deletions

View File

@ -178,7 +178,7 @@ public class CmdlineOperations implements CmdlineInterface {
} }
if (strict && seriesNames.size() > 1) { if (strict && seriesNames.size() > 1) {
throw new Exception("Handling multiple shows requires non-strict matching"); throw new Exception("Processing multiple shows at once requires -non-strict");
} }
if (seriesNames.size() == 0) { if (seriesNames.size() == 0) {

View File

@ -19,6 +19,7 @@ import java.io.PrintStream;
import java.io.StringWriter; import java.io.StringWriter;
import java.net.Socket; import java.net.Socket;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Date;
import java.util.EnumMap; import java.util.EnumMap;
import java.util.LinkedHashMap; import java.util.LinkedHashMap;
import java.util.List; import java.util.List;
@ -172,6 +173,10 @@ public abstract class ScriptShellBaseClass extends Script {
return System.console(); return System.console();
} }
public Date getNow() {
return new Date();
}
@Override @Override
public Object run() { public Object run() {
return null; return null;