/** * Returns the physical path of this logical {@link Path} relative to the * given POM. This implementation simply delegates to * {@link #getDefaultLocation()}; individual enum values can override this. * * @param pom can be <code>null</code> * @return */ public String getPathRelativeToPom(final Pom pom) { return getDefaultLocation(); }
public String getFocusedIdentifier(final Path path, final String relativePath) { String completePath = getRoot(); if (StringUtils.isNotBlank(path.getDefaultLocation())) { completePath = completePath.concat(File.separator).concat(path.getDefaultLocation()); if (StringUtils.isNotBlank(relativePath)) { completePath = completePath.concat(File.separator).concat(relativePath); } } return completePath; }
public String getFocusedRoot(final Path path) { return getRoot().concat(File.separator).concat(path.getDefaultLocation()); }
path.getDefaultLocation() + "/" + packagePath } else { destinationFile = path.getDefaultLocation() + "/" + packagePath + separatorChar + targetFilename; path.getDefaultLocation() + "/" + packagePath
StringUtils.defaultIfEmpty(sourceDirectory, Path.SRC_MAIN_JAVA.getDefaultLocation()); this.testSourceDirectory = StringUtils.defaultIfEmpty(testSourceDirectory, Path.SRC_TEST_JAVA.getDefaultLocation());