From b57651f539a20ca5b1e4bb50eb2737eac648d622 Mon Sep 17 00:00:00 2001 From: Erik Hatcher Date: Fri, 1 Feb 2002 22:29:21 +0000 Subject: [PATCH] Add -propertyfile command-line option. git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271043 13f79535-47bb-0310-9956-ffa450edef68 --- WHATSNEW | 4 +++ docs/manual/running.html | 29 ++++++++-------- src/main/org/apache/tools/ant/Main.java | 44 +++++++++++++++++++++++-- 3 files changed, 62 insertions(+), 15 deletions(-) diff --git a/WHATSNEW b/WHATSNEW index 2c5551061..9738198f7 100644 --- a/WHATSNEW +++ b/WHATSNEW @@ -139,6 +139,10 @@ Other changes: * you can now specify environment variables in the and tasks if the fork attribute has been set to true. + +* -propertyfile command-line option has been added to load an entire + property file just as -D properties are declared (as user properties). + -D properties take precedence over -propertyfile specified ones. Changes from Ant 1.4 to Ant 1.4.1 =========================================== diff --git a/docs/manual/running.html b/docs/manual/running.html index b6a8a7b7e..96189aa5c 100644 --- a/docs/manual/running.html +++ b/docs/manual/running.html @@ -62,19 +62,22 @@ if one was specified, followed by a list of those targets without one.

Command-line Options Summary

ant [options] [target [target2 [target3] ...]]
 Options:
--help                  print this message
--projecthelp           print project help information
--version               print the version information and exit
--quiet                 be extra quiet
--verbose               be extra verbose
--debug                 print debugging information
--emacs                 produce logging information without adornments
--logfile file          use given file for log output
--logger classname      the class that is to perform logging
--listener classname    add an instance of class as a project listener
--buildfile file        use specified buildfile
--find file             search for buildfile towards the root of the filesystem and use the first one found
--Dproperty=value       set property to value
+  -help                  print this message
+  -projecthelp           print project help information
+  -version               print the version information and exit
+  -quiet                 be extra quiet
+  -verbose               be extra verbose
+  -debug                 print debugging information
+  -emacs                 produce logging information without adornments
+  -logfile <file>        use given file for log
+  -logger <classname>    the class which is to perform logging
+  -listener <classname>  add an instance of class as a project listener
+  -buildfile <file>      use given buildfile
+  -D<property>=<value>   use value for given property
+  -propertyfile <name>   load all properties from file with -D
+                         properties taking precedence
+  -find <file>           search for buildfile towards the root of the
+                         filesystem and use it
 

For more information about -logger and -listener see the section add an instance of class as a project listener" + lSep); msg.append(" -buildfile use given buildfile" + lSep); msg.append(" -D= use value for given property" + lSep); + msg.append(" -propertyfile load all properties from file with -D" + lSep); + msg.append(" properties taking precedence" + lSep); msg.append(" -find search for buildfile towards the root of the" + lSep); msg.append(" filesystem and use it" + lSep); System.out.println(msg.toString());