1) You don’t need to set variable – basedir. You can simply use it ${basedir}. And it will be the folder where build.xml resides.
2) To run some target, you can pass in a variable. Like, a variable only existed and mentioned in target run, you can call it like this -- ant run -Daction=store
3) A lot of open source tools supply ant related tasks, like maven and ant-contrib
There are 2 ways to integrate them into ant.
<Way 1--easy> Drop the required jar into ant’s lib directory.
<Way 2--difficult> via <typedef> declaration in build.xml. Example:
<taskdef resource="net/sf/antcontrib/antcontrib.properties">
<classpath>
<pathelement location="${ant.Contrib.location}" />
</classpath>
</taskdef>
${ant.Contrib.location}= C:/lib/ant/ant-contrib-0.6.jar
4) If you are running on a multiuser development machine, and you don't have administrative rights to put a JAR file into the ANT_HOME/lib directory, don't worry. You can put the maven-ant-tasks-2.0.8.jar file in the ~/.ant/lib directory. Ant will also automatically look for any JAR files in this directory.
5) How to check additional jar files in ant lib?
$ant -diagnostics | grep maven | grep bytes
6)
分享到:
相关推荐
调整参数后引起,ORA-00838: Specified value of MEMORY_TARGET is too small, needs to be at least 3 2768M 的解决方案
small c++ how to program 5th ppt 01
《small c++ how to program》fifth edition code~ quickly to download.
However, they typically contain only a small subset of all possible facts. Link prediction is a task of inferring missing facts based on existing ones. We propose TuckER, a relatively simple but ...
In addition to providing more robust methods for knowledge graph embedding, we provide a provably-convergent, linear tensor factorization algorithm. We demonstrate the efficacy of our models for the ...
MotionLayout-Playground,Small MotionLayout samples to support a few talks and demo. It doesn't intended to be any example for good coding
一种让人冲动的语言! ...Small Basic allows third-party libraries to be plugged in with ease, making it possible for the community to extend the experience in fun and interesting ways.
Essential Computer Security provides the vast home user and small office computer market with the information they must know in order to understand the risks of computing on the Internet and what they...
Every day organizations large and small fall victim to attacks on their data. Encryption provides a shield to help ...Covers all that a SQL Server database administrator needs to know about encryption
目标检测论文,Augmentation for small object detection.pdf
small how to c++ 英文版课件
Start Small, Stay Small is a step-by-step guide to launching a self-funded startup. If you're a desktop, mobile or web developer, this book is your blueprint to getting your startup off the ground ...
This comprehensive resource covers everything you need to know about small cell networks, from design, to analysis, optimization and deployment. Detailing fundamental concepts as well as more advanced...
albert_small_zh_googlealbert_small_zh_googlealbert_small_zh_googlealbert_small_zh_googlealbert_small_zh_googlealbert_small_zh_googlealbert_small_zh_googlealbert_small_zh_googlealbert_small_zh_...
TrInc: Small Trusted Hardware for Large Distributed Systems.
all sizes—from small groups to entire economies—in the 21st century. The authors take this assertion for granted requiring no further comment or proof. We live in a knowledge economy, one where ...
This is a small Project I made for makeing banners for your webpages. you can set the size of banners you want to create and set the sizes you like to have and text colour.
适用于有限存储系统(即手持式和专用微型计算设备)的一组连贯且易于使用的模式。 包括C ++和Java中的示例。