# Execute ANT to perform the requested build target
$JAVA_HOME/bin/java -classpath $CP:$CLASSPATH org.apache.tools.ant.Main \
-Dtomcat.home=$TOMCAT_HOME "$@"
+
+
+#
+# execute postbuild script if present
+
+if [ -f ./build.post ]; then
+ echo "Executing build.post"
+ sh build.post
+fi
+
public final class DatabaseAdaptorPostgresql implements DatabaseAdaptor{
- private static String url = "jdbc:postgresql://localhost:5432/mir";
+// private static String url = "jdbc:postgresql://localhost:5432/mir";
+// just testing
+
+ private static String url = "jdbc:postgresql://localhost:5432/mir_unstable";
private static String driver = "org.postgresql.Driver";
public String getDriver() {
configHash.put("Database.poolMax", "10");
configHash.put("Database.poolLog", "/tmp/pool.log");
configHash.put("Database.poolResetTime", "1.0");
+
+ // just for testing
+ configHash.put("Database.Username", "postgres");
+ configHash.put("Database.Password", "");
}
public static void setUsername(String user) {
public static void setDefaultLimit(int limit) {
configHash.put("Database.Limit", Integer.toString(limit));
}
-
+
public static void setPoolMin(int min) {
configHash.put("Database.poolMin", Integer.toString(min));
}