Subversion Repositories DevTools

Rev

Rev 7176 | Rev 7489 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7176 Rev 7253
Line 671... Line 671...
671
      {
671
      {
672
        for ( int child=0; child < children.length; child++ )
672
        for ( int child=0; child < children.length; child++ )
673
        {
673
        {
674
          // child is named uniquely to encapsulate a build
674
          // child is named uniquely to encapsulate a build
675
          // 5 days = 432,000,000 milliseconds
675
          // 5 days = 432,000,000 milliseconds
-
 
676
          // Currently 10 days
676
          if ( ( System.currentTimeMillis() - children[ child ].lastModified() ) > 432000000 )
677
          if ( ( System.currentTimeMillis() - children[ child ].lastModified() ) > (10 * 24 * 60 * 60 * 1000) )
677
          {
678
          {
678
            // the directory is over 5 days old
679
            // the directory is over xx days old
679
            mLogger.warn("housekeep deleting directory {}", children[ child ].getName());
680
            mLogger.warn("housekeep deleting directory {}", children[ child ].getName());
680
            deleteDirectory( children[ child ] );
681
            deleteDirectory( children[ child ] );
-
 
682
            mReleaseManager.removeBuildRef(mRtagId,children[ child ].getName());
681
          }
683
          }
682
        }
684
        }
683
      }
685
      }
684
    }
686
    }
685
    catch( SecurityException e )
687
    catch( SecurityException e )