@Test public void testDefaultFullTargetPath() throws Exception { mojo.setClassifier(null); String path = mojo.getFullTargetPath("test"); assertThat(path, is("../foo-1.0-SNAPSHOT.woa/Contents/test")); }
String getFullTargetPath(final String targetPath) { StringBuilder builder = new StringBuilder(); builder.append("../"); if (includesVersionInArtifactName()) { builder.append(getFinalName()).append(getClassifierAsString()); } else { builder.append(getProject().getArtifactId()); } builder.append(".").append(getProductExtension()); if (this.hasContentsFolder()) { builder.append(File.separator).append("Contents"); } return builder.append(File.separator).append(targetPath).toString(); }
AbstractDefineResourcesMojo extends AbstractWOMojo { String getFullTargetPath(final String targetPath) { StringBuilder builder = new StringBuilder(); builder.append("../"); if (includesVersionInArtifactName()) { builder.append(getFinalName()).append(getClassifierAsString()); } else { builder.append(getProject().getArtifactId()); } builder.append(".").append(getProductExtension()); if (this.hasContentsFolder()) { builder.append(File.separator).append("Contents"); } return builder.append(File.separator).append(targetPath).toString(); } }
AbstractDefineResourcesMojo extends AbstractWOMojo { String getFullTargetPath(final String targetPath) { StringBuilder builder = new StringBuilder(); builder.append("../"); if (includesVersionInArtifactName()) { builder.append(getFinalName()).append(getClassifierAsString()); } else { builder.append(getProject().getArtifactId()); } builder.append(".").append(getProductExtension()); if (this.hasContentsFolder()) { builder.append(File.separator).append("Contents"); } return builder.append(File.separator).append(targetPath).toString(); } AbstractDefineResourcesMojo(); }
AbstractDefineResourcesMojo extends AbstractWOMojo { String getFullTargetPath(final String targetPath) { StringBuilder builder = new StringBuilder(); builder.append("../"); if (includesVersionInArtifactName()) { builder.append(getFinalName()).append(getClassifierAsString()); } else { builder.append(getProject().getArtifactId()); } builder.append(".").append(getProductExtension()); if (this.hasContentsFolder()) { builder.append(File.separator).append("Contents"); } return builder.append(File.separator).append(targetPath).toString(); } AbstractDefineResourcesMojo(); void execute(); Boolean flattenResources(); abstract boolean hasContentsFolder(); abstract boolean includesVersionInArtifactName(); void setFlattingResources(final Boolean flattenResources); }
AbstractDefineResourcesMojo extends AbstractWOMojo { String getFullTargetPath(final String targetPath) { StringBuilder builder = new StringBuilder(); builder.append("../"); if (includesVersionInArtifactName()) { builder.append(getFinalName()).append(getClassifierAsString()); } else { builder.append(getProject().getArtifactId()); } builder.append(".").append(getProductExtension()); if (this.hasContentsFolder()) { builder.append(File.separator).append("Contents"); } return builder.append(File.separator).append(targetPath).toString(); } AbstractDefineResourcesMojo(); void execute(); Boolean flattenResources(); abstract boolean hasContentsFolder(); abstract boolean includesVersionInArtifactName(); void setFlattingResources(final Boolean flattenResources);  }