// Path: sres-compile/src/main/java/me/tatarka/sres/util/PathTransformer.java
// public class PathTransformer {
//     private Path path;
// 
//     public PathTransformer(Path path) {
//         this.path = path;
//     }
// 
//     public static PathTransformer of(Path path) {
//         return new PathTransformer(path);
//     }
// 
//     public static PathTransformer of(File file) {
//         return new PathTransformer(file.toPath());
//     }
// 
//     public static PathTransformer of(String fileName) {
//         return new PathTransformer(new File(fileName).toPath());
//     }
// 
//     public PathTransformer mirror(Path inputDir, Path outputDir) {
//         return PathTransformer.of(outputDir.resolve(inputDir.relativize(path)));
//     }
// 
//     public PathTransformer mirror(File inputDir, File outputDir) {
//         return mirror(inputDir.toPath(), outputDir.toPath());
//     }
// 
//     public PathTransformer mirror(String inputDir, String outputDir) {
//         return mirror(new File(inputDir), new File(outputDir));
//     }
// 
//     public PathTransformer extension(String extension) {
//         String name = path.getFileName().toString();
//         int extensionIndex = FilenameUtils.indexOfExtension(name);
//         String newName = name.substring(0, extensionIndex < 0 ? name.length() : extensionIndex) +
//                 (extension.length() > 0 ? "." : "") + extension;
//         return PathTransformer.of(path.getParent() == null ? Paths.get(newName) : path.getParent().resolve(newName));
//     }
// 
//     public PathTransformer changeNameCase(CaseFormat fromFormat, CaseFormat toFormat) {
//         String name = path.getFileName().toString();
//         String extension = FilenameUtils.getExtension(name);
//         int extensionIndex = FilenameUtils.indexOfExtension(name);
//         String bareName = extensionIndex < 0 ? name : name.substring(0, extensionIndex);
//         String newName = fromFormat.to(toFormat, bareName) + "." + extension;
//         return PathTransformer.of(path.getParent() == null ? Paths.get(newName) : path.getParent().resolve(newName));
//     }
// 
//     public Path toPath() {
//         return path;
//     }
// 
//     @Override
//     public String toString() {
//         return path.toString();
//     }
// }


import me.tatarka.sres.util.PathTransformer;
import java.nio.file.Path;
package me.tatarka.sres;



/**
 * Created by evan on 3/8/14.
 */
public class SourceInfo {
    private Path path;
    private String codePackageName;
    private String appPackageName;

    public SourceInfo(Path path, String codePackageName, String appPackageName) {
        this.path = path;
        this.codePackageName = codePackageName;
        this.appPackageName = appPackageName;
    }

    public String getPackageName() {
        return codePackageName;
    }

    public String getAppPackageName() {
        return appPackageName;
    }

    public String getName() {
// Path: sres-compile/src/main/java/me/tatarka/sres/util/PathTransformer.java
// public class PathTransformer {
//     private Path path;
// 
//     public PathTransformer(Path path) {
//         this.path = path;
//     }
// 
//     public static PathTransformer of(Path path) {
//         return new PathTransformer(path);
//     }
// 
//     public static PathTransformer of(File file) {
//         return new PathTransformer(file.toPath());
//     }
// 
//     public static PathTransformer of(String fileName) {
//         return new PathTransformer(new File(fileName).toPath());
//     }
// 
//     public PathTransformer mirror(Path inputDir, Path outputDir) {
//         return PathTransformer.of(outputDir.resolve(inputDir.relativize(path)));
//     }
// 
//     public PathTransformer mirror(File inputDir, File outputDir) {
//         return mirror(inputDir.toPath(), outputDir.toPath());
//     }
// 
//     public PathTransformer mirror(String inputDir, String outputDir) {
//         return mirror(new File(inputDir), new File(outputDir));
//     }
// 
//     public PathTransformer extension(String extension) {
//         String name = path.getFileName().toString();
//         int extensionIndex = FilenameUtils.indexOfExtension(name);
//         String newName = name.substring(0, extensionIndex < 0 ? name.length() : extensionIndex) +
//                 (extension.length() > 0 ? "." : "") + extension;
//         return PathTransformer.of(path.getParent() == null ? Paths.get(newName) : path.getParent().resolve(newName));
//     }
// 
//     public PathTransformer changeNameCase(CaseFormat fromFormat, CaseFormat toFormat) {
//         String name = path.getFileName().toString();
//         String extension = FilenameUtils.getExtension(name);
//         int extensionIndex = FilenameUtils.indexOfExtension(name);
//         String bareName = extensionIndex < 0 ? name : name.substring(0, extensionIndex);
//         String newName = fromFormat.to(toFormat, bareName) + "." + extension;
//         return PathTransformer.of(path.getParent() == null ? Paths.get(newName) : path.getParent().resolve(newName));
//     }
// 
//     public Path toPath() {
//         return path;
//     }
// 
//     @Override
//     public String toString() {
//         return path.toString();
//     }
// }


// Path: sres-compile/src/main/java/me/tatarka/sres/SourceInfo.java
import me.tatarka.sres.util.PathTransformer;
import java.nio.file.Path;

package me.tatarka.sres;



/**
 * Created by evan on 3/8/14.
 */
public class SourceInfo {
    private Path path;
    private String codePackageName;
    private String appPackageName;

    public SourceInfo(Path path, String codePackageName, String appPackageName) {
        this.path = path;
        this.codePackageName = codePackageName;
        this.appPackageName = appPackageName;
    }

    public String getPackageName() {
        return codePackageName;
    }

    public String getAppPackageName() {
        return appPackageName;
    }

    public String getName() {
        return PathTransformer.of(path.getFileName()).extension("").toString();