1 46 package org.mr; 47 48 import java.io.BufferedReader ; 49 import java.io.InputStreamReader ; 50 51 58 public class MantaStandAlone { 59 public static MantaAgent manta; 60 61 public static void main(String [] args) throws Exception { 62 System.out.println("MANTARAY STANDALONE STARTING"); 63 manta = MantaAgent.getInstance(); 69 manta.init(); 70 71 72 InputStreamReader in = new InputStreamReader (System.in); 73 BufferedReader reader = new BufferedReader (in); 74 String command = ""; 75 while(!command.trim().equalsIgnoreCase("exit")){ 76 77 System.out.print("To stop mantaray type exit \n>"); 78 command = reader.readLine(); 79 } 80 81 System.out.println("MANTARAY STANDALONE STOPPING"); 82 System.exit(-1); 83 } 84 } 85 | Popular Tags |