Example usage for com.google.common.base StandardSystemProperty PATH_SEPARATOR

List of usage examples for com.google.common.base StandardSystemProperty PATH_SEPARATOR

Introduction

In this page you can find the example usage for com.google.common.base StandardSystemProperty PATH_SEPARATOR.

Prototype

StandardSystemProperty PATH_SEPARATOR

To view the source code for com.google.common.base StandardSystemProperty PATH_SEPARATOR.

Click Source Link

Document

Path separator (":" on UNIX).

Usage

From source file:natlab.toolkits.path.MatlabPath.java

/**
 * creates a path environment from the ';'-separated String of directories
 * if the persistent flag is set, the directories will be cached persistently 
 * (i.e. they will be more quickly available during the next VM session)
 *//*from www.j  av  a  2  s .  co m*/
public MatlabPath(String path, boolean persistent) {
    super(null);
    this.persistent = persistent;
    if (path == null || path.length() == 0) {
        return;
    }
    //put all directories in
    for (String s : Splitter.on(StandardSystemProperty.PATH_SEPARATOR.value()).split(path)) {
        GenericFile file = GenericFile.create(s);
        DirectoryCache.put(file, persistent);
        directories.add(DirectoryCache.get(file));
    }
}