Subversion Repositories DevTools

Rev

Rev 924 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 924 Rev 930
Line 179... Line 179...
179
  /**Non null determines to only gather metrics
179
  /**Non null determines to only gather metrics
180
   * @attribute
180
   * @attribute
181
   */
181
   */
182
  protected boolean mRecoverable;
182
  protected boolean mRecoverable;
183
 
183
 
184
  /**Logger for th entire build process
184
  /**Logger for the entire build process
185
  * @attribute
185
  * @attribute
186
  */
186
  */
187
  DefaultLogger mBuildLogger ;
187
  DefaultLogger mBuildLogger ;
188
 
188
 
189
  /**constructor
189
  /**constructor
Line 754... Line 754...
754
      mReportingNewVcsTag = null;
754
      mReportingNewVcsTag = null;
755
 
755
 
756
      if ( buildFile.exists() )
756
      if ( buildFile.exists() )
757
      {
757
      {
758
        p.setProperty("ant.file", buildFile.getAbsolutePath());
758
        p.setProperty("ant.file", buildFile.getAbsolutePath());
-
 
759
 
-
 
760
        // Add listener for logging the complete build process
-
 
761
        // If the daemon has been restarted, then the listener will not have been
-
 
762
        // set up - do don't add it. Perhaps we need a way to open an existing
-
 
763
        // logfile to append.
-
 
764
        if ( mBuildLogger != null )
-
 
765
        {
759
        p.addBuildListener(mBuildLogger);
766
          p.addBuildListener(mBuildLogger);
-
 
767
        }
-
 
768
        
760
        p.init();
769
        p.init();
761
        ProjectHelper pH = ProjectHelper.getProjectHelper();
770
        ProjectHelper pH = ProjectHelper.getProjectHelper();
762
        p.addReference("ant.projectHelper", pH);
771
        p.addReference("ant.projectHelper", pH);
763
        
772
        
764
        // parse can throw BuildException, this is serious
773
        // parse can throw BuildException, this is serious
Line 788... Line 797...
788
        p.executeTarget(target);
797
        p.executeTarget(target);
789
        mLogger.warn("deliverChange ant returned");
798
        mLogger.warn("deliverChange ant returned");
790
        
799
        
791
      }
800
      }
792
    }
801
    }
-
 
802
    //
-
 
803
    //  Catch exceptions
-
 
804
    //  Do not catch ALL exceptions. The MasterThread::run and SlaveThread::run
-
 
805
    //  relies on exceptions propergating upwards for the indefinite pause feature
-
 
806
    //
793
    catch( BuildException e )
807
    catch( BuildException e )
794
    {
808
    {
795
      if ( logError )
809
      if ( logError )
796
      {
810
      {
797
        mLogger.error("deliverChange caught BuildException, the build failed " + e.getMessage());
811
        mLogger.error("deliverChange caught BuildException, the build failed " + e.getMessage());
Line 822... Line 836...
822
    mReportingFullyPublished = p.getProperty("abt_fully_published");
836
    mReportingFullyPublished = p.getProperty("abt_fully_published");
823
    mReportingNewVcsTag = p.getProperty("abt_new_vcstag");
837
    mReportingNewVcsTag = p.getProperty("abt_new_vcstag");
824
    
838
    
825
  }
839
  }
826
  
840
  
827
  /**Extractt source from Version Control
841
  /**Extract source from Version Control
828
   */
842
   */
829
  protected void setViewUp(String content, boolean master) throws SQLException, Exception
843
  protected void setViewUp(String content, boolean master) throws SQLException, Exception
830
  {
844
  {
831
    mLogger.debug("setViewUp");
845
    mLogger.debug("setViewUp");
832
    mReportingBuildFailureLogFile = null;
846
    mReportingBuildFailureLogFile = null;