00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 package de.picana.main;
00014
00015 import de.picana.control.*;
00016 import de.picana.logging.*;
00017
00018 import java.util.*;
00019
00020
00027 public class PicanaConsole {
00028
00034 public PicanaConsole(String path, String batchfile) throws Exception {
00035
00036 Batch batch = new Batch();
00037
00038 ConsoleLogger logger = new ConsoleLogger();
00039
00040
00041 batch.init(null, logger);
00042 batch.load(batchfile);
00043 batch.start();
00044
00045 System.exit(0);
00046 }
00047
00048
00057 public static void main (String args[]) throws Exception {
00058
00059 String path = System.getProperty("de.picana.path");
00060
00061 if (args.length == 0 ) {
00062 System.out.println("picana taskname");
00063
00064 } else {
00065 String batchfile = args[0];
00066 new PicanaConsole(path, batchfile);
00067 }
00068 }
00069 }