@Test public void testGetArtifactClassifier() { TargetEnvironment env = new TargetEnvironment("os", "ws", "arch"); Product product = new Product("product.id"); String classifier = ProductArchiverMojo.getArtifactClassifier(product, env); assertEquals("os.ws.arch", classifier); }
static String getArtifactClassifier(Product product, TargetEnvironment environment) { final String artifactClassifier; if (product.getAttachId() == null) { artifactClassifier = getOsWsArch(environment, '.'); } else { artifactClassifier = product.getAttachId() + "-" + getOsWsArch(environment, '.'); } return artifactClassifier; }
ProductArchiverMojo extends AbstractProductMojo { static String getArtifactClassifier(Product product, TargetEnvironment environment) { final String artifactClassifier; if (product.getAttachId() == null) { artifactClassifier = getOsWsArch(environment, '.'); } else { artifactClassifier = product.getAttachId() + "-" + getOsWsArch(environment, '.'); } return artifactClassifier; } }
ProductArchiverMojo extends AbstractProductMojo { static String getArtifactClassifier(Product product, TargetEnvironment environment) { final String artifactClassifier; if (product.getAttachId() == null) { artifactClassifier = getOsWsArch(environment, '.'); } else { artifactClassifier = product.getAttachId() + "-" + getOsWsArch(environment, '.'); } return artifactClassifier; } ProductArchiverMojo(); }
ProductArchiverMojo extends AbstractProductMojo { static String getArtifactClassifier(Product product, TargetEnvironment environment) { final String artifactClassifier; if (product.getAttachId() == null) { artifactClassifier = getOsWsArch(environment, '.'); } else { artifactClassifier = product.getAttachId() + "-" + getOsWsArch(environment, '.'); } return artifactClassifier; } ProductArchiverMojo(); @Override void execute(); }
ProductArchiverMojo extends AbstractProductMojo { static String getArtifactClassifier(Product product, TargetEnvironment environment) { final String artifactClassifier; if (product.getAttachId() == null) { artifactClassifier = getOsWsArch(environment, '.'); } else { artifactClassifier = product.getAttachId() + "-" + getOsWsArch(environment, '.'); } return artifactClassifier; } ProductArchiverMojo(); @Override void execute();  }