com.github.danielflower.mavenplugins.release.FileUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of multi-module-maven-release-plugin Show documentation
Show all versions of multi-module-maven-release-plugin Show documentation
A maven release plugin built for multi-maven-module git repositories allowing continuous deployment
package com.github.danielflower.mavenplugins.release;
import java.io.File;
import java.io.IOException;
public class FileUtils {
public static String pathOf(File file) {
String path;
try {
path = file.getCanonicalPath();
} catch (IOException e1) {
path = file.getAbsolutePath();
}
return path;
}
}