`
q_wong
  • 浏览: 105570 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论
收藏列表
标题 标签 来源
Java设置代理
System.setProperty("proxySet", "true");
		System.setProperty("http.proxyHost", "10.17.171.10");
		System.setProperty("http.proxyPort", "8080");
bat
@echo off
@echo 注意:您正在清理"%~dp0"文件夹,文件一旦删除将无法恢复,是否仍然继续?(Y/N)
set /p test=
@if /I "%test%"=="Y" (@goto delete) else (@goto end)
:delete
rmdir /s /q %~dp0
:end
ant copy
private static void antCopy(String source, String dest, Set<String> filterSet)
    {
        Copy copy = new Copy();
        copy.setProject(new Project());
        FileSet fileset = new FileSet();
        fileset.setDir(new File(source));
        for (String filterStr : filterSet)
        {
            fileset.setExcludes(filterStr);
        }
        copy.addFileset(fileset);
        if (!FileUtils.exists(dest))
        {
            FileUtils.createFolder(dest);
        }
        copy.setTodir(new File(dest));
        copy.setOverwrite(true);
        copy.execute();
    }
Global site tag (gtag.js) - Google Analytics