+ /**
+ * Constructs the property setter.
+ *
+ * @param aProps
+ * Properties.
+ */
+ public PropertySetter(Properties aProps) {
+ String propFile = createPropertyFile(aProps);
+ setLocation(new StringResource(propFile));
+ }
+
+ public static String createPropertyFile(Properties aProps) {
+ StringBuffer buf = new StringBuffer();
+
+ for (Object key : aProps.keySet()) {
+ buf.append(key);
+ buf.append("=");
+ buf.append(aProps.get(key));
+ buf.append("\n");
+ }