Ant learning notes (detailed parameters of ant command execution and system attributes of ant)

Source: Internet
Author: User

Original article:Http://hi.baidu.com/yuanzhifeng/blog/item/bd431ff4b6f11f6dddc474e4.html

I. antDetailed Command Execution Parameters

-Buildfile <File>,-file <File>,-F <File>:Specify the position and name of the component to be executed.

-Find <File>,-S <File>:Find the component file and execute the file.

-Help,-P:Show antCommand help information. Show ant in command line-HIs short.

-Version:Show ant.

-Diagnostics: Show antThe running environment and dependent libraries of the Project provide some useful help information for error diagnosis and reporting.

-Quiet,-Q:Hide antExecution prompt output information. The command line will not output a specific target.

-Verbose,-V:Show antDetailed execution information, including the operating system and JavaEnvironment and other information.

-Debug,-D: Show antDebugging information and detailed logsInformation.

-Lib <path>:Specifies the location of a class library (JarFile Location), let antTools can use these class files. PathClass Library file.

-Logfile <File>,-l <File>:Specify antThe log output file during execution allows the log to be output to the specified file instead of the command line output.

For example, execute ant-F test. XML-l c: \ testantlog. LogOutput hundreds of logs to c: \ testantlog. LogGo.

-D <property >=< value>:Used to set some variables, which can be in the targetOr overwrite the set property value.

Example: ant-F test. XML-D src = Hello

Ii. antSystem Properties ($ {}To get the property valueExample: $ {OS. name })

OS. Name:The name of the operating system.

Basedir:The root path referenced by the project.

Ant. Home: antThe root directory location of the tool.

Ant. file:The absolute path of the component file.

Ant. Version: ant.

Ant. java. Version: antDetected JVMVersion.

Ant. Project. Name:The name and information of the currently executed project.

Java. Version: Java.

Java. Home: Java.

Java. Class. Path: JavaThe file location of the class library.

Line. separator:Line Break.

User. Home:User's homeDirectory, in LinuxAnd Unix.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.