Cleaned up build.xml.
authormj <mj>
Sat, 6 Apr 2002 20:07:04 +0000 (20:07 +0000)
committermj <mj>
Sat, 6 Apr 2002 20:07:04 +0000 (20:07 +0000)
Changed the way the database is populated so that it works with a
password protected PostgreSQL installation.

build.xml
dbscripts/help_arttype.sql
dbscripts/help_imgcolor.sql
dbscripts/help_imgform.sql
dbscripts/help_imglay.sql
dbscripts/help_imgtype.sql
dbscripts/help_lang.sql
dbscripts/help_rights.sql
dbscripts/help_users.sql
dbscripts/populate_mediatyp.sql

index d26d695..c68923d 100755 (executable)
--- a/build.xml
+++ b/build.xml
 
 <!-- No customization required after this line -->
 
+  <property environment="env"/>
   <property name="dist.home"      value="${deploy.home}"/>
   <property name="deploy.webinf"  value="${deploy.home}/WEB-INF"/>
   <property name="deploy.classes" value="${deploy.webinf}/classes"/>
   <property name="dist.src"       value="${app.name}.jar"/>
   <property name="dist.war"       value="${app.name}.war"/>
   <property name="javadoc.home"   value="${deploy.home}/javadoc"/>
+  <property name="tomcat.home"    value="${env.TOMCAT_HOME}"/>
 
-  <!-- If you want to use the very good jikes compiler, uncomment this
-  <property name="build.compiler"   value="jikes"/>-->
+  <!-- If you want to use the very good jikes compiler, uncomment this 
+  <property name="build.compiler"   value="jikes"/> -->
 
-  <!-- The following 3 properties seem redundant -->
-  <property name="java.home"             value="/usr/lib/j2sdk1.3/"/>
-  <property name="java.localhome" value="/usr/share/java/"/>
-  <property name="tomcat.home"    value="/usr/share/tomcat/"/>
 
 
   <!-- Construct the classpath -->
     <fileset dir="lib">
       <include name="*.jar"/>
     </fileset>
-<!--    <fileset dir="${java.home}/lib">
-      <include name="tools.jar"/>
-      <include name="rt.jar"/>
-    </fileset>
-    <fileset dir="${java.localhome}">
-      <include name="*.jar"/>
-    </fileset>
     <pathelement path="${tomcat.home}/lib/tomcat.jar"/>
--->
+       <fileset dir="${tomcat.home}/lib/common">
+               <include name="*.jar" />
+       </fileset>
   </path>
 
 
     <copy   todir="${deploy.classes}/bundles">
       <fileset dir="bundles" includes="**/*.properties"/>
     </copy>
-  <!-- I really don't think this is needed by default. maybe make it a targe?
-    -mh -->
-       <!--<exec executable="./perms.sh"/>-->
+  </target>
+
+
+
+  <target name="perms">
+       <exec executable="./perms.sh"/>
   </target>
 
 
index 2c7680b..a58ed98 100755 (executable)
@@ -1,5 +1,5 @@
 UPDATE "pg_class" SET "reltriggers" = 0 WHERE "relname" !~ '^pg_';
-\connect - postgres
+-- \connect - postgres
 INSERT INTO "article_type" VALUES (0,'OpenPosting');
 INSERT INTO "article_type" VALUES (1,'Newswire');
 INSERT INTO "article_type" VALUES (2,'Feature');
index d4d08fd..1f28846 100755 (executable)
@@ -1,5 +1,5 @@
 UPDATE "pg_class" SET "reltriggers" = 0 WHERE "relname" !~ '^pg_';
-\connect - postgres
+-- \connect - postgres
 INSERT INTO "img_color" VALUES (0,'--');
 INSERT INTO "img_color" VALUES (3,'color (16)');
 INSERT INTO "img_color" VALUES (4,'color (256)');
index 96e177c..e6f4343 100755 (executable)
@@ -1,5 +1,5 @@
 UPDATE "pg_class" SET "reltriggers" = 0 WHERE "relname" !~ '^pg_';
-\connect - postgres
+-- \connect - postgres
 INSERT INTO "img_format" VALUES (0,'jpeg','jpg','image/jpg','jpeg nur vom original bearbeiten');
 INSERT INTO "img_format" VALUES (1,'gif','gif','image/gif',NULL);
 BEGIN TRANSACTION;
index 9b7165f..7da0148 100755 (executable)
@@ -1,5 +1,5 @@
 UPDATE "pg_class" SET "reltriggers" = 0 WHERE "relname" !~ '^pg_';
-\connect - postgres
+-- \connect - postgres
 INSERT INTO "img_layout" VALUES (0,'--');
 INSERT INTO "img_layout" VALUES (1,'quer');
 INSERT INTO "img_layout" VALUES (2,'hoch');
index dc3c15a..4145c55 100755 (executable)
@@ -1,5 +1,5 @@
 UPDATE "pg_class" SET "reltriggers" = 0 WHERE "relname" !~ '^pg_';
-\connect - postgres
+-- \connect - postgres
 INSERT INTO "img_type" VALUES (0,'--');
 INSERT INTO "img_type" VALUES (1,'Plakat');
 INSERT INTO "img_type" VALUES (2,'Photo');
index ca3356c..3486bc0 100755 (executable)
@@ -1,5 +1,5 @@
 UPDATE "pg_class" SET "reltriggers" = 0 WHERE "relname" !~ '^pg_';
-\connect - postgres
+-- \connect - postgres
 INSERT INTO "language" VALUES (0,'deutsch','de');
 INSERT INTO "language" VALUES (1,'english','en');
 BEGIN TRANSACTION;
index ae5d787..851eb01 100755 (executable)
@@ -1,5 +1,5 @@
 UPDATE "pg_class" SET "reltriggers" = 0 WHERE "relname" !~ '^pg_';
-\connect - postgres
+-- \connect - postgres
 INSERT INTO "rights" VALUES (0,'keine angabe',NULL);
 INSERT INTO "rights" VALUES (1,'indymedia','rechte liegen bei indymedia');
 INSERT INTO "rights" VALUES (2,'rechte bei autor/innen',NULL);
index 42cb663..c46fddf 100755 (executable)
@@ -1,5 +1,5 @@
 UPDATE "pg_class" SET "reltriggers" = 0 WHERE "relname" !~ '^pg_';
-\connect - postgres
+-- \connect - postgres
 INSERT INTO "webdb_users" VALUES (1,'open','','f');
 INSERT INTO "webdb_users" VALUES (2,'redaktion','indymedia','t');
 INSERT INTO "webdb_users" VALUES (3,'tollendorf','indymedia','t');
index 4ca9fd6..55d61e4 100755 (executable)
@@ -8,7 +8,8 @@
 --
 
 
-\connect - de_indy
+-- \connect - de_indy
+
 -- Disable triggers
 UPDATE "pg_class" SET "reltriggers" = 0 WHERE "relname" = 'media_type';