Changeset 783 for branches


Ignore:
Timestamp:
Nov 18, 2007 7:33:39 PM (12 years ago)
Author:
jpfasano
Message:

Moved the deleting of the build directory to be before the svn commands.
This is because on windows the build directory and source directory are the same.

Before this change the source directory would be deleted.
Now the source directory will still be deleted but an svn checkkout will be done to get a new copy of the source.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/testScripts/NBbuildConfig.py

    r779 r783  
    152152  #for a list of commands that have been executed
    153153  commandHistory = []
     154
     155  #---------------------------------------------------------------------
     156  # Completely remove a previous build if the user indicates this
     157  #---------------------------------------------------------------------
     158  if configuration['clear previous build'] and os.path.isdir(fullBuildDir) :
     159    NBlogMessages.writeMessage('  Remove previous build in directory '+fullBuildDir)
     160    try:
     161      shutil.rmtree(fullBuildDir)
     162    except shutils.Error :
     163      NBlogMessages.writeMessage('  Warning: removal of directory '+fullBuildDir+' failed.')
    154164
    155165  #---------------------------------------------------------------------
     
    253263          NBlogMessages.writeMessage('  Skipped a new download into '+thirdPartyBaseDir)
    254264
    255   #---------------------------------------------------------------------
    256   # Completely remove a previous build if the user indicates this
    257   #---------------------------------------------------------------------
    258   if configuration['clear previous build'] and os.path.isdir(fullBuildDir) :
    259     NBlogMessages.writeMessage('  Remove previous build in directory '+fullBuildDir)
    260     try:
    261       shutil.rmtree(fullBuildDir)
    262     except shutils.Error :
    263       NBlogMessages.writeMessage('  Warning: removal of directory '+fullBuildDir+' failed.')
    264265   
    265266  #---------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.