Apache Ant, a tool for automating software compilation, testing, deployment, and more, is mostly used for software development in Java environments.Ant is written in the pure Java language, so it has a good cross-platform nature. Simple to operate. Ant is made up of a built-in task and optional tasks. The ant runtime requires an XML file (build file).
ArticleDirectory
1. adopt consistent encoding specifications
3. Use a single Build File
4. Provide good help
5. Clear tasks
6. Use ant to manage task subordination
7. Define and reuse the file path
8. Define proper task subordination
9. Use attributes
10. Keep the build process independent
11. Use the version control system
12. Use ant as the "minimum denominator"
1
Java Ant build. xml
1. What is antAnt is a build tool2. What is buildingThe concept can be found everywhere. For the image, you need to take the code from somewhere, compile it, copy it to somewhere, and so on. Of course, this is not only the same, but it is mainly used to do this.3. ant benefitsCross-platform-Because ant is implemented in java, It is cross-platf
source > --Compile The Java code from ${SRC to ${build}-- > javac srcdir= "${src}" destdir= "${build}" /> target > ; target name= "clean" description= "clean up" > --Delete The ${build} and ${dist directory Trees-- > Delete dir= "${build}" span>/> Delete dir= "${dist}" /> target > Project
Carefully observed, except that name, description these names are easy to understand, other laws that can be
Implementation of Zip/tar compression and decompression
Java actually provides support for compressed formats such as ZIP, but why is ant used here?
There are two main reasons:1. Java-provided classes for include Chinese characters in the path, file name support is not good enough, you use other third-party software to decompress when there will be garbled. Ant.jar supports file names or paths that includ
for three UI:
Elementui Button.scss
iview button.less
Ant Desgin button.less
I can see that the iview and ant desgin buttons are in the same style with less and the structure includes mixins and buttons, and the names are very similar, and the Elementui button style is written in sass. Follow-up Plan parsing component Elementui, iview,
1. What is antAnt is a build tool2. What is buildingThe concept can be found everywhere. For the image, you need to take the code from somewhere, compile it, copy it to somewhere, and so on. Of course, this is not only the same, but it is mainly used to do this.3. Ant benefitsCross-platform-Because ant is implemented in Java, It is cross-platformEasy to use-compared with ant's brother makeClear syntax-same
When it comes to ant in English, people naturally think of ants. When it comes to another word make, people naturally think about building tools. Who would associate these two words with each other? So what's so weird about ant? This article will reveal the answer to you.
what is AntApache Ant is a Java based build tool. In theory, make tools like unix/linux C pr
Reprint Address: http://www.cnblogs.com/wufengxyz/archive/2011/11/24/2261797.html1, what is antAnt is the build tool2, what is buildThe concept can be found everywhere, in the image, you have to take the code from somewhere, compile, and then copy it to a place and so on, of course, not only with this, but mainly to do thisBenefits of 3,antCross-platform-because Ant is implemented in Java, it's cross-platformSimple to use--compared to Ant's brother ma
Document directory
1. adopt consistent encoding specifications
3. Use a single Build File
4. Provide good help
5. Clear tasks
6. Use ant to manage task subordination
7. Define and reuse the file path
8. Define proper task subordination
9. Use attributes
10. Keep the build process independent
11. Use the version control system
12. Use ant as the "minimum denominator"
13. Use the zipfileset attr
modifying properties in Environment variables
Increase the------c:\ant\bin before the Path property, so you can use ant
The Build.xml file contains one project and at least one target element, and the target element contains one or more task elements, and the task is an executable code.
The root element is project, three properties Name,default,basedir
Name Specifies the project
Ant support has been built in eclipse. Create a new build. xml file in the project. Double-click eclipse to open the edit file with anteditor. Right-click build. xml and run ant. In the displayed dialog box, you can set the call parameters, running directory, running target, class path, and attributes.
After the settings are complete, run. The output result is displayed in the output window, and the outp
1033: [ZJOI2008] kill ant antbuster time
limit: Sec
Memory Limit: ten MB
Submit: 583
Solved: 230
[Submit] [Status]
DescriptionRecently, Jia Jia fan on a fun little game: Antbuster. The rules of the game are very simple: on a map, the upper left corner is the ant nest, the lower right corner is the cake, the ants will continue to crawl out of the nest, trying to move the cake back
Prior to the introduction of Jenkins inside the findbugs mainly using MAVEN, but in many cases, the project uses ant for compiling and packaging, through the Jenkins Ant findbugs combination of the way can be continuous integration. Jenkins is characterized by the ease of integration of these tools, in order to reduce the coupling with the engineering itself, so the idea is that the
Ant was written based on the XML file when building the file. The default name is build. xml.
Bulid. xml example
Ant searches for build. xml by default.
Ant targetname performs the action under a targe of build. xml by default.
If other file names are used, use ant-
Recently, I am working on an e-book generation project. I need to automatically package an APK with different package names online based on the e-book content resources and add content information such as various marketing channels, to interact with the backend, one-click generation is required. Therefore, the Android project must be packaged and generated on the server. Because the server is a javastuserver and has no image interface, only one comman
First, build Jenkins environment and configure Gradle environmentOnline construction Jenkins A lot of tutorials, here no longer repeat, the main next Jenkins configuration Gradle environmentClick "Manage Jenkins"1.Search and install Gradle plugin in "Manage Plugins"2, in the "Configure System" configuration point to your computer in the Gradle path (before this step of course to download Gradle)
Ii. Create a new Jenkins project and set up the build Gradle configuration item1, click New Ite
, but check their names, the following example assumes that you use the Ivy namespace (ivy:xxx Task), but for ant1.5 you cannot use namespaces, and if you want to follow the task definition above you can use ivy-xxx tasks.
If you use an ant version below 1.5.1, you can't use the Ivy task ... You should call Ivy as an external program.
2 call Ivy from ant: Start
not only easy to implement and debug, but also easy to understand and maintain. This Web application can run on a dedicated Web server or a PC. the operating system can be Windows, Linux, or Mac OS. The required software packages include the Java Runtime Environment (JDK 1.4 or later), the latest Tomcat version (Tomacat 4 or later), and Ant development tool (Ant or later ).
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.