src/util/CrosswalkDir.js
function CrosswalkDir(path) {

    this._path = path;
    this._root = "./";

    var versionFilePath = Path.join(path, "VERSION");
    if (ShellJS.test("-f", versionFilePath)) {
        this._version = Version.createFromFile(versionFilePath);
    } else {
        this._version = Version.createFromPath(path);
    }

    if (!this._version) {
        throw new Error("Failed to determine crosswalk version");
    }
}
function CrosswalkDir(path) {

    this._path = path;
    this._root = "./";

    var versionFilePath = Path.join(path, "VERSION");
    if (ShellJS.test("-f", versionFilePath)) {
        this._version = Version.createFromFile(versionFilePath);
    } else {
        this._version = Version.createFromPath(path);
    }

    if (!this._version) {
        throw new Error("Failed to determine crosswalk version");
    }
}
function CrosswalkDir ( path ) { this . _path = path ; this . _root = "./" ; var versionFilePath = Path . join ( path , "VERSION" ) ; if ( ShellJS . test ( "-f" , versionFilePath ) ) { this . _version = Version . createFromFile ( versionFilePath ) ; } else { this . _version = Version . createFromPath ( path ) ; } if ( ! this . _version ) { throw new Error ( "Failed to determine crosswalk version" ) ; } }
Creates a CrosswalkDir object.
@param {String} path Path to crosswalk build xwalk_app_template
@constructor
Creates a CrosswalkDir object .