You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
690 B

import java.io.FileInputStream;
import java.util.Properties;
import com.matthewhuntington.homeautomation.*;
public class HomeAutomation
{
/**
* @param args
*/
public static void main(String[] args)
{
Properties properties = new Properties();
try
{
properties.load(new FileInputStream("login.properties"));
CalendarParser parser = new CalendarParser(properties.getProperty("calendar"), properties.getProperty("user"), properties.getProperty("pass"));
ActionExecutor executor = new ActionExecutor(parser.getActions());
executor.executeAll();
}
catch (Exception e)
{
System.out.println("Could not load properties file.");
}
}
}