The following document contains the results of PMD's CPD 5.6.1.
File | Line |
---|---|
org/apache/maven/plugin/coreit/AttachDescriptorMojo.java | 65 |
org/apache/maven/plugin/coreit/DeployMojo.java | 65 |
org/apache/maven/plugin/coreit/SiteMojo.java | 65 |
public void execute() throws MojoExecutionException, MojoFailureException { getLog().info( "[MAVEN-CORE-IT-LOG] Using output file path: " + pathname ); if ( pathname == null || pathname.length() <= 0 ) { throw new MojoFailureException( "Path name for output file has not been specified" ); } File outputFile = new File( pathname ); if ( !outputFile.isAbsolute() ) { outputFile = new File( project.getBasedir(), pathname ).getAbsoluteFile(); } getLog().info( "[MAVEN-CORE-IT-LOG] Creating output file: " + outputFile ); try { outputFile.getParentFile().mkdirs(); outputFile.createNewFile(); } catch ( IOException e ) { throw new MojoExecutionException( "Output file could not be created: " + pathname, e ); } getLog().info( "[MAVEN-CORE-IT-LOG] Created output file: " + outputFile ); } } |