当前位置:网站首页>Ant advanced -path and fileset
Ant advanced -path and fileset
2022-07-27 10:12:00 【51CTO】
One <path/> and <classpath/>
You can use it. ":" and ";" As a separator , Specify something similar to PATH and CLASSPATH References to .Ant The separator will be converted into the separator used by the current system .
When you need to specify a value similar to the path , You can use nested elements . The general form is
location Property specifies relative to project A file and directory of the base directory , and path Property accepts a comma or semicolon separated list of locations .path Properties are generally used as predefined paths , In other cases , There should be more than one location attribute .
For brevity ,classpath Tags support their own path and location attribute . therefore :
Can be written by Jane :
The above example constructs a path value including :{classpath} The path of , follow lib All under directory jar file , Next is classes Catalog .
If you want to be in more than one task Use the same path-like structure, You can use it. <path> Elements define them ( And target At the same level ), And then through id Property reference .
path-like structure It may include the other path-like structurede References to ( By nesting <path> Elements ):
What I mentioned earlier is about <classpath> For <path> It also works , Such as :
Can be written as :
<path id="base.path" path="{classpath}"/>
Two fileset
1)FileSet It's a set of files , These files can be found under the base directory tree and are related to the specified PatternSets and Selectors matching .FileSet The structure of is similar to the following :
2)patternset Generally used as FileSet Child elements , Used to help filter files . It can contain the following sub elements :include,exclude,includes,excludes,includesfile,excludesfile.
FileSet It implicitly contains a patternset Elements , So it can be FileSet It directly contains patterset The elements in , for example <include>, <includesfile>, <exclude> and <excludesfile> .
As follows patternset contain std Under subdirectories java file , If professional The definition also includes prof Under the java file , But the name does not contain Test The file of .
3)Selector Generally used as FileSet Child elements , Used to help filter files .
Common core selector Yes :
End !
author :iTech
WeChat official account : cicdops
github: https://github.com/cicdops/cicdops

边栏推荐
- ACL2021最佳论文出炉,来自字节跳动
- Shell函数、系统函数、basename [string / pathname] [suffix] 可以理解为取路径里的文件名称 、dirname 文件绝对路径、自定义函数
- 备战金九银十Android面试准备(含面试全流程,面试准备工作面试题和资料等)
- PCL各模块概述(1.6)
- vs2019社区版下载教程(详细)
- 超赞的卡尔曼滤波详解文章
- Oracle RAC 19C PDB instance is down
- Flash memory usage and stm32subemx installation tutorial [day 3]
- Concurrent Park and unpark description
- 线代004
猜你喜欢

Failure of CUDA installation nsight visual studio edition failed

Ant高级-path和fileset

Anchor Free检测器:CenterNet

Understand chisel language. 23. Chisel sequential circuit (III) -- detailed explanation of chisel shift register

pytorch中对BatchNorm2d()函数的理解

Overview of PCL modules (1.6)

ACL2021最佳论文出炉,来自字节跳动

Acl2021 best paper released, from ByteDance

Interview JD T5, was pressed on the ground friction, who knows what I experienced?

Snowflake vs. Databricks谁更胜一筹?2022年最新战报
随机推荐
Looking for a job for 4 months, interviewing 15 companies and getting 3 offers
Text processing tool in shell, cut [option parameter] filename Description: the default separator is the built-in variable of tab, awk [option parameter] '/pattern1/{action1}filename and awk
How to restore the original version after installing Hal Library
Final examination paper of engineering materials
Provincial Emergency Management Department: Guangzhou can strive to promote the experience of emergency safety education for children
C # set different text watermarks for each page of word
Configuration of pytorch deep learning environment based on cuda10.0
Understand chisel language. 23. Chisel sequential circuit (III) -- detailed explanation of chisel shift register
[cloud native • Devops] master the container management tool rancher
RobotFramework+Eclispe环境安装篇
学习Typescript(一)
Acl2021 best paper released, from ByteDance
Robotframework+eclispe environment installation
File upload of native input tag
Brush the title "sword finger offer" day03
01_ Movie recommendation (contentbased)_ Object portrait
Understand chisel language. 26. Chisel advanced input signal processing (II) -- majority voter filtering, function abstraction and asynchronous reset
Ant高级-task
Visual slam lecture notes (I): Lecture 1 + Lecture 2
Pytorch installation (very detailed)