continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jvan...@apache.org
Subject svn commit: r161726 - maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java
Date Mon, 18 Apr 2005 04:33:52 GMT
Author: jvanzyl
Date: Sun Apr 17 21:33:48 2005
New Revision: 161726

URL: http://svn.apache.org/viewcvs?view=rev&rev=161726
Log:
o make sure the configuration is updated when  updating an ant project

Modified:
    maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java

Modified: maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java?view=diff&r1=161725&r2=161726
==============================================================================
--- maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java
(original)
+++ maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java
Sun Apr 17 21:33:48 2005
@@ -423,7 +423,19 @@
     {
         updateProject( project );
 
-        updateProjectConfiguration( project.getId(), project.getConfiguration() );
+        // ----------------------------------------------------------------------
+        // The configuration will be null here because the "executable" and
+        // "targets" fields in the AntProject are used to create the
+        // configuration. We probably don't even need the configuration.
+        // ----------------------------------------------------------------------
+
+        Properties configuration = new Properties();
+
+        configuration.setProperty( AntBuilder.CONFIGURATION_EXECUTABLE, project.getExecutable()
);
+
+        configuration.setProperty( AntBuilder.CONFIGURATION_TARGETS, project.getTargets()
);
+
+        updateProjectConfiguration( project.getId(), configuration );
     }
 
     public void addMavenOneProject( MavenOneProject project )



Mime
View raw message