continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r332335 - /maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java
Date Thu, 10 Nov 2005 17:31:29 GMT
Author: evenisse
Date: Thu Nov 10 09:31:22 2005
New Revision: 332335

URL: http://svn.apache.org/viewcvs?rev=332335&view=rev
Log:
synchronize buildProject method, I hope it fix jdo exception with deadlock when a schedule
build run in the same time than a forced build

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?rev=332335&r1=332334&r2=332335&view=diff
==============================================================================
--- 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
Thu Nov 10 09:31:22 2005
@@ -339,7 +339,7 @@
         buildProject( projectId, buildDef.getId(), trigger );
     }
 
-    public void buildProject( int projectId, int buildDefinitionId, int trigger )
+    public synchronized void buildProject( int projectId, int buildDefinitionId, int trigger
)
         throws ContinuumException
     {
         if ( isInBuildingQueue( projectId ) )



Mime
View raw message