Exemplo n.º 1
0
  /**
   * 加载一个oml脚本
   *
   * @param fileName 脚本名
   */
  protected void loadProfile(String fileName) {
    if (!new File(fileName).isFile()) {
      L.w("cannot load profile " + fileName + "(no such file)");
      return;
    }

    try {
      oml.getInterpreter().source(fileName);
    } catch (Exception e) {
      L.e(e);
    }
  }
Exemplo n.º 2
0
 public LinuxProfile() {
   oml = new ProfileOmlImpl();
   oml.getInterpreter().getNameSpace().importClass(LinuxProfile.class.getName());
 }