ptahchiev
Mon, 19 May 2008 04:19:43 -0700
Author: ptahchiev Date: Mon May 19 04:19:19 2008 New Revision: 657792 URL: http://svn.apache.org/viewvc?rev=657792&view=rev Log: final modifiers added. Modified: jakarta/cactus/trunk/integration/maven2/src/main/java/org/apache/cactus/maven2/mojos/CactifyWarMojo.java Modified: jakarta/cactus/trunk/integration/maven2/src/main/java/org/apache/cactus/maven2/mojos/CactifyWarMojo.java URL: http://svn.apache.org/viewvc/jakarta/cactus/trunk/integration/maven2/src/main/java/org/apache/cactus/maven2/mojos/CactifyWarMojo.java?rev=657792&r1=657791&r2=657792&view=diff ============================================================================== --- jakarta/cactus/trunk/integration/maven2/src/main/java/org/apache/cactus/maven2/mojos/CactifyWarMojo.java (original) +++ jakarta/cactus/trunk/integration/maven2/src/main/java/org/apache/cactus/maven2/mojos/CactifyWarMojo.java Mon May 19 04:19:19 2008 @@ -44,7 +44,6 @@ import org.apache.maven.plugin.assembly.archive.ArchiveExpansionException; import org.apache.maven.plugin.assembly.utils.AssemblyFileUtils; import org.apache.maven.project.MavenProject; -import org.apache.tools.ant.BuildException; import org.apache.tools.ant.types.XMLCatalog; import org.codehaus.cargo.container.internal.util.ResourceUtils; import org.codehaus.cargo.maven2.log.MavenLogger; @@ -135,13 +134,13 @@ * The Cactus test redirectors. * @parameter */ - private List redirectors = new ArrayList(); + private final List redirectors = new ArrayList(); /** * List of ejb-refs to add to the deployment descriptor * of the cactified war. */ - private List ejbRefs = new ArrayList(); + private final List ejbRefs = new ArrayList(); /** * The cargo ResourceUtils. @@ -158,7 +157,7 @@ * Dependencies to be included in the WEB-INF/lib folder. * @parameter */ - private List libDependencies = new ArrayList(); + private final List libDependencies = new ArrayList(); /** * Should we install the cactified archive in the local maven repo? @@ -361,13 +360,7 @@ Artifact artifact = artifactFactory.createArtifactWithClassifier( groupId, artifactId, projectVersion, packaging, classifier ); - String localPath = localRepository.pathOf( artifact ); - - File destination = new File( localRepository.getBasedir(), localPath ); - - getLog().info("!!!!!!!!"+destination.getAbsolutePath()); - - try { + try { installer.install(destFile, artifact, localRepository); } catch (ArtifactInstallationException e) { // TODO Auto-generated catch block --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]