maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sisb...@apache.org
Subject svn commit: r676876 - /maven/sandbox/branches/SI_MAVEN_2_1/maven-project/src/main/java/org/apache/maven/project/builder/impl/DefaultProjectBuilder.java
Date Tue, 15 Jul 2008 11:25:26 GMT
Author: sisbell
Date: Tue Jul 15 04:25:26 2008
New Revision: 676876

URL: http://svn.apache.org/viewvc?rev=676876&view=rev
Log:
Fix for artifact path.

Modified:
    maven/sandbox/branches/SI_MAVEN_2_1/maven-project/src/main/java/org/apache/maven/project/builder/impl/DefaultProjectBuilder.java

Modified: maven/sandbox/branches/SI_MAVEN_2_1/maven-project/src/main/java/org/apache/maven/project/builder/impl/DefaultProjectBuilder.java
URL: http://svn.apache.org/viewvc/maven/sandbox/branches/SI_MAVEN_2_1/maven-project/src/main/java/org/apache/maven/project/builder/impl/DefaultProjectBuilder.java?rev=676876&r1=676875&r2=676876&view=diff
==============================================================================
--- maven/sandbox/branches/SI_MAVEN_2_1/maven-project/src/main/java/org/apache/maven/project/builder/impl/DefaultProjectBuilder.java
(original)
+++ maven/sandbox/branches/SI_MAVEN_2_1/maven-project/src/main/java/org/apache/maven/project/builder/impl/DefaultProjectBuilder.java
Tue Jul 15 04:25:26 2008
@@ -93,13 +93,12 @@
                 model.getVersion());
         if (mavenProject.getBuild() != null && mavenProject.getBuild().getOutputDirectory()
!= null
                 && mavenProject.getBuild().getFinalName() != null) {
-            File artifactFile = new File(mavenProject.getBuild().getOutputDirectory(), mavenProject.getBuild().getFinalName());
+            File artifactFile = new File(mavenProject.getBuild().getDirectory(), mavenProject.getBuild().getFinalName()
+                    + "." + mavenProject.getPackaging());//TODO: fix extension
             if (!artifactFile.exists()) {
                 throw new IOException("Artifact does not exist: File = " + artifactFile.getAbsolutePath());
             }
             artifact.setFile(artifactFile);
-        } else {
-            logger.warn("Build section of pom is null");
         }
 
         mavenProject.setArtifact(artifact);



Mime
View raw message