zoukankan      html  css  js  c++  java
  • 删除maven仓库中的LastUpdated文件

    转自:http://www.oschina.net/code/snippet_151849_49131

    @echo off
    rem create by sunhao(sunhao.java@gmail.com)
    rem crazy coder
      
    rem 这里写你的仓库路径
    set REPOSITORY_PATH=F:studyapache-maven-3.0.3 epository
    rem 正在搜索...
    for /f "delims=" %%i in ('dir /b /s "%REPOSITORY_PATH%*lastUpdated*"') do (
        del /s /q %%i
    )
    rem 搜索完毕
    pause
    # create by sunhao(sunhao.java@gmail.com)                                                                          
    # crazy coder
       
    # 这里写你的仓库路径
    REPOSITORY_PATH=~/Documents/tools/apache-maven-3.0.3/repository
    echo 正在搜索...
    find $REPOSITORY_PATH -name "*lastUpdated*" | xargs rm -fr
    echo 搜索完
     
     
  • 相关阅读:
    YAML序列样式
    YAML块标量头
    YAML字符流
    YAML语法字符
    YAML流程
    YAML集合和结构
    YAML缩进和分离
    YAML简介
    Git工作流程
    Git使用前配置
  • 原文地址:https://www.cnblogs.com/cxzdy/p/5662161.html
Copyright © 2011-2022 走看看