[jboss-cvs] jbossbuild/src/main/org/jboss/ant/tasks/build ...

Ruel Loehr ruel.loehr at jboss.com
Wed Aug 16 10:51:59 EDT 2006


  User: rloehr  
  Date: 06/08/16 10:51:59

  Modified:    src/main/org/jboss/ant/tasks/build  Tag: BRANCH_JBBUILD_DEV
                        SynchronizeComponentsTask.java
  Log:
  add a property disableVersionCheck which allows version checking to be disabled
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.9.2.3   +5 -1      jbossbuild/src/main/org/jboss/ant/tasks/build/SynchronizeComponentsTask.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: SynchronizeComponentsTask.java
  ===================================================================
  RCS file: /cvsroot/jboss/jbossbuild/src/main/org/jboss/ant/tasks/build/SynchronizeComponentsTask.java,v
  retrieving revision 1.9.2.2
  retrieving revision 1.9.2.3
  diff -u -b -r1.9.2.2 -r1.9.2.3
  --- SynchronizeComponentsTask.java	1 Aug 2006 16:57:40 -0000	1.9.2.2
  +++ SynchronizeComponentsTask.java	16 Aug 2006 14:51:59 -0000	1.9.2.3
  @@ -34,7 +34,7 @@
    * Task to synchronize third party dependencies.
    * 
    * @author <a href="ruel.loehr at jboss.com">Ruel Loehr </a>
  - * @version $Revision: 1.9.2.2 $
  + * @version $Revision: 1.9.2.3 $
    */
   public class SynchronizeComponentsTask extends BuildTask
   {
  @@ -176,6 +176,9 @@
                  {                         
                     String newCompID = newComponent.getId();	
                     String importCompID = currentComponentRef.getImportingComponent().getId();
  +                  
  +                  if (project.getProperty("disableVersionCheck") ==null)
  +                  {
                     throw new BuildException("A versioning problem exists:\n"
                           + "Component: " + newCompID
                           + " is at version: " + newVersion 
  @@ -184,6 +187,7 @@
                  }
               }
            }         
  +         }         
    
            //determine if this component is already present in the build,
            //if it is not, then add it to build's component list
  
  
  



More information about the jboss-cvs-commits mailing list