The following document contains the results of PMD's CPD 5.3.5.
File | Line |
---|---|
org/apache/maven/plugins/jmod/JModDescribeMojo.java | 41 |
org/apache/maven/plugins/jmod/JModListMojo.java | 41 |
extends AbstractJModMojo { @Parameter( defaultValue = "${project.build.directory}", required = true, readonly = true ) private File outputDirectory; /** * The name of the jmod file which is used to be examined via <code>jmod describe jmodFile</code> */ //@formatter:off @Parameter( defaultValue = "${project.build.directory}/jmods/${project.artifactId}.jmod", property = "jmodfile", required = true ) //@formatter:on private File jmodFile; public void execute() throws MojoExecutionException, MojoFailureException { String jModExecutable; try { jModExecutable = getJModExecutable(); } catch ( IOException e ) { throw new MojoFailureException( "Unable to find jmod command: " + e.getMessage(), e ); } getLog().info( "Toolchain in maven-jmod-plugin: jmod [ " + jModExecutable + " ]" ); if ( !jmodFile.exists() || !jmodFile.isFile() ) { throw new MojoFailureException( "Unable to find " + jmodFile.getAbsolutePath() ); } Commandline cmd; try { cmd = createJModDescribeCommandLine( jmodFile ); |