From ba37bf7991e099b567f8cd5a09178893ff55bb9c Mon Sep 17 00:00:00 2001
From: Conor MacNeill by Version 1.0 - 2000/11/02 Version 1.1 - 2001/01/28 Use nested Use nested
+
-
Table of Contents
@@ -53,7 +54,7 @@ are lost. Work is being done to make this task a bit more "human friendly".
Parameters specified as nested elements
Entry
-<entry>
+<entry>
elements to specify actual modifcations to the property file itself
@@ -94,7 +109,9 @@ After running, the file would now look like
@@ -68,17 +69,31 @@ elements to specify actual modifcations to the property file itself
value
- Value to set for the key the property name/value pair
+ Value to set (=), to add (+) or subtract (-)
Yes
type
- Manipulate the value as type: int, date
- No, but must be used if opertion attribute used
+ Regard the value as : int, date or string (default)
+ No
+ operation
- If type is date, this cane be "now" or "never". If the type is int, only "-" and "+" may be used.
+ "+" or "=" (default) for all datatypes
+
"-" (for date and int only).
+ No
+
+
+ default
+ Initial value to set for a property if it is not
+ already defined in the property file.
+
+ For type date, two additional keywordsw are allowed: "now" or "never".No
+
+
pattern
+ For int and date type only. If present, Values will
+ be paresed and formated accordingly.
No
#Thu Nov 02 23:41:47 EST 2000
+anint=1
akey=avalue
adate=2000/11/02 23\:41
-anint=1
+formated.int=0014
+formated.date=028 17\:34
+To produce dates relative from today : +
+ +<propertyfile + file="my.properties" + comment"My properties" > + <entry key="formated.date-1" + type="date" default="now" pattern="DDD" + operation="-" value="1"/> + <entry key="formated.tomorrow" + type="date" default="now" pattern="DDD" + operation="+" value="1"/> +</propertyfile> +
+Concatenation of strings : +
+Each time called, a "." will be appended to "progress" +<propertyfile + file="my.properties" + comment"My properties" > + <entry key="progress" default="" operation="+" value="."/> +</propertyfile> +