Automatically remove Subversion unversioned files

前端 未结 30 3091
感情败类
感情败类 2020-11-28 18:54

Does anybody know a way to recursively remove all files in a working copy that are not under version control? (I need this to get more reliable results in my automatic build

30条回答
  •  执笔经年
    2020-11-28 19:24

    I couldn't get any of the above to work without additional dependencies I didn't want to have to add to my automated build system on win32. So I put together the following Ant commands - note these require the Ant-contrib JAR to be installed in (I was using version 1.0b3, the latest, with Ant 1.7.0).

    Note this deletes all unversioned files without warning.

      
      
    
      
        
        
        
          
          
          
            
          
        
      
    
      
      
        
        
        
          
            
              
              
                
                
              
            
          
        
        
      
    

    For a different folder, change the ${basedir} reference.

提交回复
热议问题