new RUN_build.sh script to Run Ant and new build-pljava.xml
This commit is contained in:
parent
9fa80a9812
commit
49027b7dcc
|
@ -0,0 +1,19 @@
|
|||
# This script rebuilds Adempiere
|
||||
# Ported from Windows script Marek Mosiewicz<marek.mosiewicz@jotel.com.pl>
|
||||
# If you have difficulties, compare it with the Windows version.
|
||||
#
|
||||
# $Header: /cvsroot/adempiere/utils_dev/myDevEnvTemplate.sh,v 1.6 2003/04/27 12:34:16 marekmosiewicz Exp $
|
||||
|
||||
SAVED_DIR=`pwd` #save current dir
|
||||
export ANT_HOME=/e-evolution/adempiere/trunk/tools/lib/
|
||||
cd `dirname $0` #change dir to place where script resides - does not work with sym links
|
||||
export CP=$ANT_HOME/ant.jar:$ANT_HOME/ant-launcher.jar:$ANT_HOME/ant-commons-net.jar:$ANT_HOME/ant-swing.jar:/e-evolution/adempiere/trunk/tools/lib/log4j.jar
|
||||
echo $CLASSPATH
|
||||
echo Building ...
|
||||
#$JAVA_HOME/bin/java -cp $CP -Dant.home="." $ANT_PROPERTIES org.apache.tools.ant.Main create
|
||||
$JAVA_HOME/bin/java -cp $CP -Dant.home="." $ANT_PROPERTIES org.apache.tools.ant.Main create
|
||||
|
||||
echo Done ...
|
||||
|
||||
exit 0
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -105,7 +105,7 @@
|
|||
<include name="**/*.xml" />
|
||||
</fileset>
|
||||
|
||||
<writedatatodatabase usebatchmode="true" batchSize="20" ensureForeignKeyOrder="false" >
|
||||
<writedatatodatabase usebatchmode="false" batchSize="20" ensureForeignKeyOrder="false" >
|
||||
<fileset dir="../data">
|
||||
<include name="**/*.xml" />
|
||||
</fileset>
|
||||
|
|
|
@ -0,0 +1,105 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
Licensed to the Apache Software Foundation (ASF) under one
|
||||
or more contributor license agreements. See the NOTICE file
|
||||
distributed with this work for additional information
|
||||
regarding copyright ownership. The ASF licenses this file
|
||||
to you under the Apache License, Version 2.0 (the
|
||||
"License"); you may not use this file except in compliance
|
||||
with the License. You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing,
|
||||
software distributed under the License is distributed on an
|
||||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
KIND, either express or implied. See the License for the
|
||||
specific language governing permissions and limitations
|
||||
under the License.
|
||||
-->
|
||||
<project default="pljava" name="DdlUtils" basedir=".">
|
||||
<!-- Allow values set at the commandline or in the environment to override the defaults -->
|
||||
<property environment="env" />
|
||||
<!-- Load the jdbc properties as specified by the jdbc.properties.file variable-->
|
||||
<property file="jdbc.properties.postgresql" />
|
||||
<!-- Load the build properties -->
|
||||
<property file="build.properties" />
|
||||
|
||||
|
||||
<!-- The classpath used for running the tasks -->
|
||||
<path id="project.class.path">
|
||||
<fileset dir="../lib">
|
||||
<include name="**/*.jar" />
|
||||
</fileset>
|
||||
</path>
|
||||
|
||||
<target name="init" depends="compile-pljava,install" >
|
||||
<echo message="============================================================" />
|
||||
<echo message=" PostgreSQL database install PLJAVA for Adempiere ERP" />
|
||||
<echo message=" Adempiere Licese is GNU GPL License" />
|
||||
<echo message="============================================================" />
|
||||
<echo message="" file="log/psql.log" append="false" />
|
||||
<echo append="false" file="log/build.log" message="#Build log:${line.separator}${line.separator}" />
|
||||
|
||||
</target>
|
||||
|
||||
<target name="compile-pljava">
|
||||
<echo message="Compile PLJAVA ... "/>
|
||||
<unjar src="pljava/pljava-src-1.3.0.zip" dest="pljava" />
|
||||
<exec dir="pljava/pljava-1.3.0/" executable="make"/>
|
||||
<copy file="pljava/pljava-1.3.0/build/objs/pljava.so"
|
||||
tofile="${postgresql.home}/lib/pljava.so" filtering="yes" overwrite="yes" />
|
||||
|
||||
<exec dir="pljava/pljava-1.3.0/" executable="make">
|
||||
<arg line="install" />
|
||||
<env key="PATH" value="${postgresql.home}/bin:$PATH"/>
|
||||
</exec>
|
||||
<!--copy todir="${postgresql.home}/lib">
|
||||
<fileset dir="${postgresql.home}/lib/pgxs">
|
||||
<include name="libpljava**/*.*"/>
|
||||
</fileset>
|
||||
</copy-->
|
||||
<!--copy todir="${postgresql.home}/lib">
|
||||
<fileset dir="${postgresql.home}/lib/postgresql">
|
||||
<include name="libpljava**/*.*"/>
|
||||
</fileset>
|
||||
</copy-->
|
||||
|
||||
<mkdir dir="${postgresql.home}/jlib"/>
|
||||
<copy file="pljava/pljava-1.3.0/build/deploy.jar"
|
||||
tofile="${postgresql.home}/jlib/deploy.jar" filtering="yes" overwrite="no" />
|
||||
<copy file="pljava/pljava-1.3.0/build/pljava.jar"
|
||||
tofile="${postgresql.home}/jlib/pljava.jar" filtering="yes" overwrite="no" />
|
||||
|
||||
<echo append='true' file="${postgresql.pgdata}/postgresql.conf" message="listen_addresses = '*'${line.separator}"/>
|
||||
<echo append='true' file="${postgresql.pgdata}/postgresql.conf" message="custom_variable_classes = 'pljava'${line.separator}"/>
|
||||
<echo append='true' file="${postgresql.pgdata}/postgresql.conf" message="pljava.classpath = '${postgresql.home}/jlib/pljava.jar'${line.separator}"/>
|
||||
<echo append='true' file="${postgresql.pgdata}/postgresql.conf" message="pljava.release_lingering_savepoints = true${line.separator}"/>
|
||||
<echo append='true' file="${postgresql.pgdata}/postgresql.conf" message="pljava.vmoptions = '-Xmx64M -Dbackchannel.port=48'${line.separator}"/>
|
||||
<echo append='true' file="${postgresql.pgdata}/postgresql.conf" message="pljava.debug = false${line.separator}"/>
|
||||
<echo append='true' file="${postgresql.pgdata}/pg_hba.conf" message="host all all 127.0.01/32 trust${line.separator}"/>
|
||||
|
||||
<!--exec dir="${postgresql.home}/bin" executable="${postgresql.home}/bin/pg_ctl" resultproperty="psql.result" output="log/psql.log" append="true">
|
||||
<arg line="-l log/psql.log restart -D ${postgresql.pgdata}" />
|
||||
</exec-->
|
||||
</target>
|
||||
|
||||
<target name="install">
|
||||
|
||||
<path id="pljava.class.path">
|
||||
<fileset dir="../lib">
|
||||
<include name="**/*.jar" />
|
||||
</fileset>
|
||||
<pathelement location="${postgresql.home}/jlib/deploy.jar"/>
|
||||
<pathelement location="${postgresql.home}/jlib/pljava.jar"/>
|
||||
</path>
|
||||
|
||||
<echo message="Installing PLJAVA ... "/>
|
||||
<java classname="org.postgresql.pljava.deploy.Deployer">
|
||||
<arg line="-install -host ${postgresql.host} -port ${postgresql.port} -database ${postgresql.database} -user ${postgresql.user} -password ${postgresql.password}"/>
|
||||
<classpath refid="pljava.class.path"/>
|
||||
</java>
|
||||
|
||||
|
||||
</target>
|
||||
</project>
|
|
@ -1,6 +1,9 @@
|
|||
postgresql.home=C:/Program Files/PostgreSQL/8.2
|
||||
postgresql.home=/home/postgres/ADEmpiere/postgresql/8.2.1
|
||||
postgresql.pgdata=/home/postgres/ADEmpiere/postgresql/8.2.1/pgdata
|
||||
|
||||
postgresql.database=adempiere
|
||||
postgresql.user=adempiere
|
||||
postgresql.password=adempiere1
|
||||
sqlj.jar.url=file:///d:/Opensource/Applications/Adempiere/sqlj/sqlj.jar
|
||||
postgresql.password=adempiere
|
||||
postgresql.host=localhost
|
||||
postgresql.port=5432
|
||||
sqlj.jar.url=file:///e-evolution/adempiere/trunk/sqlj/sqlj.jar
|
||||
|
|
|
@ -38,6 +38,22 @@
|
|||
<echo message="----- Loading Adempiere Seed data -----" />
|
||||
<ant antfile="build-ddl.xml" target="writeDataToDb" />
|
||||
</target>
|
||||
|
||||
<!-- ==================================================== -->
|
||||
<!-- Init -->
|
||||
<!-- ==================================================== -->
|
||||
<target name="setupInit" >
|
||||
<!-- Environment variables -->
|
||||
<condition property="isWindows">
|
||||
<os family="windows" />
|
||||
</condition>
|
||||
</target>
|
||||
|
||||
<target name="install-pljava" depends="setupInit" unless="isWindows"
|
||||
description="Non Windows Setup" >
|
||||
<echo message="----- Loading PLJAVa to Linux " />
|
||||
<ant antfile="build-pljava.xml" target="init" />
|
||||
</target>
|
||||
|
||||
<target name="load-functions">
|
||||
<echo append="false" file="load_sqlj_functions.sql">
|
||||
|
@ -101,8 +117,8 @@
|
|||
<target name="load">
|
||||
<echo message="Loading file ${file.name}" />
|
||||
<exec dir="${postgresql.home}/bin" executable="${postgresql.home}/bin/psql" resultproperty="psql.result" output="log/psql.log" append="true">
|
||||
<arg line="${postgresql.database}" />
|
||||
<arg line="${postgresql.user}" />
|
||||
<arg line="-d ${postgresql.database} -q" />
|
||||
<arg line="-U ${postgresql.user}" />
|
||||
<arg line="-f ${file.name}" />
|
||||
<env key="PGPASSWORD" value="${postgresql.password}" />
|
||||
</exec>
|
||||
|
|
|
@ -11,9 +11,9 @@ ddlutils.platform=PostgreSQL
|
|||
|
||||
datasource.class=org.apache.commons.dbcp.BasicDataSource
|
||||
datasource.driverClassName=org.postgresql.Driver
|
||||
datasource.url=jdbc:postgresql://localhost/adempiere
|
||||
datasource.url=jdbc:postgresql://localhost:5432/adempiere
|
||||
datasource.username=adempiere
|
||||
datasource.password=adempiere1
|
||||
datasource.password=adempiere
|
||||
|
||||
#
|
||||
# PostgreSQL comes with its own DataSource implementations which can be configured like this:
|
||||
|
@ -31,6 +31,7 @@ datasource.password=adempiere1
|
|||
# additional properties for the pooling datasource:
|
||||
#datasource.dataSourceName=pooling datasource
|
||||
#datasource.initialConnections=5
|
||||
|
||||
#datasource.maxConnections=20
|
||||
|
||||
ddlutils.schema=adempiere
|
||||
ddlutils.schema=adempiere
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
|
||||
CREATE SCHEMA adempiere;
|
||||
|
||||
SET search_path TO adempiere,sqlj;
|
||||
|
||||
SELECT sqlj.install_jar('file:///e-evolution/adempiere/trunk/sqlj/sqlj.jar', 'sqlj', true);
|
||||
|
||||
SELECT sqlj.set_classpath('adempiere', 'sqlj');
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
Manifest-Version: 1.0
|
||||
Created-By: 1.5.0_08 (Sun Microsystems Inc.)
|
||||
|
Loading…
Reference in New Issue