Package com.github.mustachejava.inverter

Source Code of com.github.mustachejava.inverter.InvertUtils

package com.github.mustachejava.inverter;

import java.nio.file.FileSystem;
import java.nio.file.FileSystems;
import java.nio.file.Path;

/**
* TODO: Edit this
* <p/>
* User: sam
* Date: 9/7/13
* Time: 10:14 PM
*/
public class InvertUtils {
  public Path getPath(String name) {
    FileSystem fs = FileSystems.getDefault();
    Path path = fs.getPath(name);
    if (path.toFile().exists()) {
      return path;
    } else {
      return fs.getPath("compiler/" + name);
    }
  }
}
TOP

Related Classes of com.github.mustachejava.inverter.InvertUtils

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.