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.