当前位置:网站首页>Ant Usage Summary (II): description of related commands
Ant Usage Summary (II): description of related commands
2022-06-23 06:00:00 【linchaolong】
stay ant Installation directory manual Directory is ant Description document , open index.xml, Click on Using Apache ant There are instructions .
Related command description
Specify profile
project
target
property
import
condition
<property name="a" value="aaa" />
<!--
<property name="b" value="bbb" />
-->
<!-- If the property is set b Then the value is ${b}, Otherwise, it's worth ${a}-->
<condition property="val" value="${b}" else="${a}">
<!-- Determine whether the specified attribute is set -->
<isset property="b" />
</condition>propertyfile
<propertyfile file="auto.prop">
<!-- preservation auto.umeng.channel=${a} To the file -->
<entry key="auto.umeng.channel" value="${a}" />
</propertyfile>copy
delete
move
javac
java
<classpath>
<pathelement location="xxx.jar" />
<pathelement path="classpath" />
</classpath>
</java>
jar
if
<!-- If the condition holds , Call print -->
<if>
<!-- Judge whether the specified attribute value is true -->
<!--
<istrue value="${a}" />
-->
<!-- Determine whether the specified attribute is set -->
<!--
<isset property="prop"/>
-->
<!-- Determine if two values are equal -->
<equals arg1="${channel}" arg2="2" />
<then>
<antcall target="print" />
</then>
</if>script
<script language="javascript">
<![CDATA[
project.setProperty("time",Math.floor((new Date()).getTime()/1000));
]]>
</script>Time stamp
<tstamp>
<format property="time"
pattern="yy.M.d.HHmm" />
</tstamp>Add custom jar To ant Of classpath
<!-- add to ant-contrib-1.0b3.jar To classpath -->
<taskdef resource="net/sf/antcontrib/antcontrib.properties">
<classpath>
<pathelement location="${env.ANT_ROOT}\lib\ant-contrib-1.0b3.jar" />
</classpath>
</taskdef>ant Implementing iterations in
download ant-contrib, And will ant-contrib-1.0b3.jar Copy the document to ANT The installation directory .
Download address :
channel = ${channel}

Replace the specified string
| < | < | Less than no. |
| > | > | More than no. |
| & | & | and |
| ' | ' | Single quotation marks |
| " | " | Double quotes |
边栏推荐
- jvm-02.有序性保证
- 工作积累-判断GPS是否打开
- ant使用总结(一):使用ant自动打包apk
- 金融科技之高效办公(一):自动生成信托计划说明书
- Centos7部署radius服务-freeradius-3.0.13-15.el7集成mysql
- ORB_SLAM2运行
- ant使用总结(三):批量打包apk
- True MySQL interview question (XXII) -- condition screening and grouping screening after table connection
- iNFTnews | 加密之家从宇宙寄来的明信片,你会收到哪一张?
- PAT 乙等 1014 C语言
猜你喜欢

iNFTnews | 加密之家从宇宙寄来的明信片,你会收到哪一张?

jvm-06.垃圾回收器

True MySQL interview question (XXII) -- condition screening and grouping screening after table connection

jvm-01.指令重排

What benefits have digital collections enabled the real industry to release?

Prometheus, incluxdb2.2 installation and flume_ Export download compile use

数字化工厂建设可划分为三个方面

ant使用总结(三):批量打包apk

Deploy docker and install MySQL in centos7

Centos7 installation of postgresql8.2.15 and creation of stored procedures
随机推荐
Pyinstaller 打包pyttsx3 出错
[OWT] OWT client native P2P E2E test vs2017 build 6: modify script automatic generation vs Project
Leetcode topic resolution divide two integers
True MySQL interview question (24) -- row column exchange
ssm项目搭建
Advanced Mathematics (Seventh Edition) Tongji University exercises 1-7 personal solutions
Pat class B 1023 minimum decimals
Digital collections - new investment opportunities
新课上线 | 每次 5 分钟,轻松玩转阿里云容器服务!
ant使用总结(一):使用ant自动打包apk
PAT 乙等 1016 C语言
How to specify the output path of pig register Project Log
Use of visdom
Wireshark TS | video app cannot play
True MySQL interview question (21) - Finance - overdue loan
Leetcode topic analysis: factorial training zeroes
Pat class B 1021 digit statistics
Jvm: when a method is overloaded, the specific method to call is determined by the static type of the incoming parameter rather than the actual type of the parameter
jvm-01. Instruction rearrangement
The traditional Internet like platform may no longer exist, and a new industry integrating industrial characteristics and Internet characteristics