continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@apache.org
Subject svn commit: r746724 - /continuum/trunk/continuum-buildagent/continuum-buildagent-core/src/main/java/org/apache/continuum/buildagent/build/execution/AbstractBuildExecutor.java
Date Sun, 22 Feb 2009 15:09:36 GMT
Author: ctan
Date: Sun Feb 22 15:09:36 2009
New Revision: 746724

URL: http://svn.apache.org/viewvc?rev=746724&view=rev
Log:
fixed exception when updating project from working copy with a null project dependency version
in distributed build

Modified:
    continuum/trunk/continuum-buildagent/continuum-buildagent-core/src/main/java/org/apache/continuum/buildagent/build/execution/AbstractBuildExecutor.java

Modified: continuum/trunk/continuum-buildagent/continuum-buildagent-core/src/main/java/org/apache/continuum/buildagent/build/execution/AbstractBuildExecutor.java
URL: http://svn.apache.org/viewvc/continuum/trunk/continuum-buildagent/continuum-buildagent-core/src/main/java/org/apache/continuum/buildagent/build/execution/AbstractBuildExecutor.java?rev=746724&r1=746723&r2=746724&view=diff
==============================================================================
--- continuum/trunk/continuum-buildagent/continuum-buildagent-core/src/main/java/org/apache/continuum/buildagent/build/execution/AbstractBuildExecutor.java
(original)
+++ continuum/trunk/continuum-buildagent/continuum-buildagent-core/src/main/java/org/apache/continuum/buildagent/build/execution/AbstractBuildExecutor.java
Sun Feb 22 15:09:36 2009
@@ -422,7 +422,14 @@
                 Map map = new HashMap();
                 map.put( ContinuumBuildAgentUtil.KEY_GROUP_ID, dependency.getGroupId() );
                 map.put( ContinuumBuildAgentUtil.KEY_ARTIFACT_ID, dependency.getArtifactId()
);
-                map.put( ContinuumBuildAgentUtil.KEY_PROJECT_VERSION, dependency.getVersion()
);
+                if ( StringUtils.isNotBlank( dependency.getVersion() ) )
+                {
+                    map.put( ContinuumBuildAgentUtil.KEY_PROJECT_VERSION, dependency.getVersion()
);
+                }
+                else
+                {
+                    map.put( ContinuumBuildAgentUtil.KEY_PROJECT_VERSION, "" );
+                }
 
                 pDependencies.add( map );
             }



Mime
View raw message