《Ant学习笔记带本人心得.pptVIP

  • 0
  • 0
  • 约6.02千字
  • 约 46页
  • 2016-12-28 发布于北京
  • 举报
target name=“MoveFile” 剪切操作 move file=c:/TestCopy2.java tofile=c:/Test2a.java/move /target Evaluation only. Created with Aspose.Slides for .NET 3.5 Client Profile 5.2.0.0. Copyright 2004-2011 Aspose Pty Ltd. target name=deleteFile delete file=${dist}/package.jar/delete /target target name=copyFile copy file=“src/chang.java” tofile=“c:/TestCopy2.java”/copy拷贝并改名 copy file=src/chang.java todir=c://copy /target [copy] Copying 1 file to c:\ [copy] Copying 1 file to c:\ Evaluation only. Created with Aspose.Slides for .NET 3.5 Client Profile 5.2.0.0. Copyright 2004-2011 Aspose Pty Ltd. Evaluation only. Created with Aspose.Slides for .NET 3.5 Client Profile 5.2.0.0. Copyright 2004-2011 Aspose Pty Ltd. zip destfile=${dist}/pacage.zip basedir=compile/zip 基于compile目录 把 dist打包 Evaluation only. Created with Aspose.Slides for .NET 3.5 Client Profile 5.2.0.0. Copyright 2004-2011 Aspose Pty Ltd. * Evaluation only. Created with Aspose.Slides for .NET 3.5 Client Profile 5.2.0.0. Copyright 2004-2011 Aspose Pty Ltd. Ant是标准xml文件 ant -f build.xml 指定编译的文件 Evaluation only. Created with Aspose.Slides for .NET 3.5 Client Profile 5.2.0.0. Copyright 2004-2011 Aspose Pty Ltd. Ant 的根是project (顶级元素) ?xml version=1.0 encoding=utf-8 ? project default=init target name=init mkdir dir=HelloWorld\a\b “/ /target /project 在当前目录下创建名字叫HelloWorld的文件夹 Delete为删除目录(不为空也能删, java不为空 不行) Evaluation only. Created with Aspose.Slides for .NET 3.5 Client Profile 5.2.0.0. Copyright 2004-2011 Aspose Pty Ltd. Evaluation only. Created with Aspose.Slides for .NET 3.5 Client Profile 5.2.0.0. Copyright 2004-2011 Aspose Pty Ltd. Evaluation only. Created with Aspose.Slides for .NET 3.5 Client Profile 5.2.0.0. Copyright 2004-2011 Aspose Pty Ltd. project default=“second” 默认执行second target name=init mkdir dir=HelloWorld/ mkdir dir=nihao/ /target target name=second depends=init delete dir=nihao/ /target /project 在init后面执行second property name=hello value=welcome/ target name=init mkdir dir=${he

文档评论(0)

1亿VIP精品文档

相关文档