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)
分享到:
相关推荐
small c++ how to program 5th ppt 01
《Small C++ How to Program》是Paul Deitel与Harvey Deitel合著的一本经典C++编程教程,现在已经更新到了第五版。这本书以其易懂的风格和丰富的实例,深受初学者和进阶学习者的欢迎。这里提供的代码压缩包包含了书...
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 ...
一种让人冲动的语言! ...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...
Get started in the world of software development: go from zero knowledge of programming to comfortably writing small to medium-sized programs in Python. Programming can be intimidating (especially ...
《Learn to Program with Small Basic》是一本专门针对儿童和少年编程教学的书籍,由Majed Marji和Ed Price编写,通过微软出品的Small Basic编程语言教授编程知识。该书旨在为初学者提供一种易于学习的编程方式,使...
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中的示例。
java_small_project_for_learning.rar java_small_project_for_learning.rar java_small_project_for_learning.rar java_small_project_for_learning.rar
TTFviewer_is_a_small_tool_for_developers_to_view_a_TTFviewer
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_...
Docker containers have revolutionized the software supply chain in small and big enterprises. Never before has a new technology so rapidly penetrated the top 500 enterprises worldwide. Companies that ...
Carefully researched over ten years and eagerly anticipated by the agile community, Crystal Clear: A Human-Powered Methodology for Small Teams is a lucid and practical introduction to running a ...