zoukankan      html  css  js  c++  java
  • Ant步步为营(1)解压本地的zip包

    从毕业到现在做QA测试有段时间了,没有做开发真的有点遗憾,不过都过去了。工作期间对一些脚本产生了很大兴趣,于是开始了脚本的简单学习。

    不多说:

    在eclipse上新建一个ant project,新建一个,build.xml 文件(ant 默认情况下是执行build.xml文件)。

    解压脚本如下:

    <?xml version="1.0"?>
        <project name="ForTest" default="unzip" >
        <property file="build.properties"></property>
            <target name="unzip" description="unzip the zip package">
                <unzip dest="${file.dir}">
                    <fileset dir="${file.dir}">
                        <include name="**/*.zip"/>
                    </fileset>
                </unzip>
                </target>
            
        </project>

    file.dir是本地的zip所在路径,build.properties是一个配置文件。file.dir可放到配置文件中,也可在脚本中直接写出,建议写到脚本。

  • 相关阅读:
    CF1391D 【505】
    CF1389C 【Good String】
    CF1364C 【Ehab and Prefix MEXs】
    CF1353E 【K-periodic Garland】
    CF1349A 【Orac and LCM】
    CF1352C 【K-th Not Divisible by n】
    CF413D 【2048】
    CF257B 【Playing Cubes】
    CF267A 【Subtractions】
    2018.8.16提高B组模拟考试
  • 原文地址:https://www.cnblogs.com/QAZLIU/p/3696680.html
Copyright © 2011-2022 走看看