JBuilderx uses ANT reading notes
Author: Beijing gambling Schumacher
Prerequisites: Using Ant in JBuilderX, you don't have to configure environment variables. And JBuilderx comes with an Ant.jar package.
As long as you add a Builder.xml file in your project, you can use the ANT tool.
Create a Bulider.xml file in JBuilderx.
XML Version = "1.0"?>
target>
target>
target>
target>
provject>
Label Description:
Project: Item Description.
Property: Ant's variable, use Key-Value to declare an ANT's property, Key is the name of the property.
Value is the value of the attribute, the reference property needs to be used to get the value of the property.
INIT TARGET: ANT initialization task, the task creates a $ {builder} directory to store compiled binaries.
Complie Target: ANT Compilation Task, which will automatically execute the Directory specified by the Depends property before execution.
Dist Target: Ant's deployment task, this task will package binary documents and deploy them into a specified directory. Clean Target: Ant's clear task, this task will delete all files in the build and dist of the directory.
Program description:
This is the global property of Ant, the SRC identifies the storage path of the Java source code that needs to be compiled. Build identifies the storage path of compiled, Class binary files, and the Dist identify the path to the deployment of these Class files.
The remaining procedures are noted in Build.xml.
Summary: The ANT tool implements cross-platform deployment. It is actually using XML to encapsulate the collection of commands to be executed, and all operations are completed by JBulier Ant.