コード例 #1
0
ファイル: LinuxProfile.java プロジェクト: zt515/oh-my-linux
  /**
   * 加载一个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);
    }
  }
コード例 #2
0
ファイル: LinuxProfile.java プロジェクト: zt515/oh-my-linux
 public LinuxProfile() {
   oml = new ProfileOmlImpl();
   oml.getInterpreter().getNameSpace().importClass(LinuxProfile.class.getName());
 }