Fix build.xml on migration directories
This commit is contained in:
parent
7b1b08201c
commit
2dd4d29ea3
|
@ -1,50 +0,0 @@
|
||||||
<project name="migrate-db-oracle-340s-351a" default="run-scripts" basedir=".">
|
|
||||||
<property file="../../oracle.properties" />
|
|
||||||
<path id="lib.path">
|
|
||||||
<fileset dir="../../../tools/lib">
|
|
||||||
<include name="**/*.jar" />
|
|
||||||
</fileset>
|
|
||||||
</path>
|
|
||||||
<taskdef resource="net/sf/antcontrib/antlib.xml">
|
|
||||||
<classpath>
|
|
||||||
<fileset dir="../../../tools/lib">
|
|
||||||
<include name="**/*.jar" />
|
|
||||||
</fileset>
|
|
||||||
</classpath>
|
|
||||||
</taskdef>
|
|
||||||
|
|
||||||
<target name="init">
|
|
||||||
<echo message="============================================================" />
|
|
||||||
<echo message=" Oracle database migration tool for Adempiere ERP" />
|
|
||||||
<echo message=" Adempiere Licese is GNU GPL License" />
|
|
||||||
<echo message="============================================================" />
|
|
||||||
<echo message="" file="sqlplus.log" append="false" />
|
|
||||||
<echo append="false" file="build.log" message="#Build log:${line.separator}${line.separator}" />
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="run-scripts" depends="init">
|
|
||||||
<echo message="----- Running migration SQL scripts -----" />
|
|
||||||
<echo file="sqlplus.log" append="true" message="${line.separator}#Run Scripts:${line.separator}${line.separator}" />
|
|
||||||
<foreach param="file.name" target="load">
|
|
||||||
<path>
|
|
||||||
<fileset dir=".">
|
|
||||||
<include name="*.sql" />
|
|
||||||
</fileset>
|
|
||||||
</path>
|
|
||||||
</foreach>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="load">
|
|
||||||
<echo message="Loading file ${file.name}" />
|
|
||||||
<exec dir="${oracle.home}/bin" executable="${oracle.home}/bin/sqlplus" resultproperty="sqlplus.result" output="sqlplus.log" append="true">
|
|
||||||
<arg line="${oracle.connect.param}" />
|
|
||||||
<arg line="@${file.name}" />
|
|
||||||
</exec>
|
|
||||||
<echo message="File ${file.name} status ${sqlplus.result}" />
|
|
||||||
<echo append="true" file="build.log">File ${file.name} status ${sqlplus.result}</echo>
|
|
||||||
<echo append="true" file="build.log" message="${line.separator}" />
|
|
||||||
</target>
|
|
||||||
|
|
||||||
</project>
|
|
||||||
|
|
||||||
|
|
|
@ -1,50 +0,0 @@
|
||||||
<project name="migrate-db-postgre-340s-351a" default="run-scripts" basedir=".">
|
|
||||||
<property file="../../postgresql.properties" />
|
|
||||||
<path id="lib.path">
|
|
||||||
<fileset dir="../../../tools/lib">
|
|
||||||
<include name="**/*.jar" />
|
|
||||||
</fileset>
|
|
||||||
</path>
|
|
||||||
<taskdef resource="net/sf/antcontrib/antlib.xml">
|
|
||||||
<classpath>
|
|
||||||
<fileset dir="../../../tools/lib">
|
|
||||||
<include name="**/*.jar" />
|
|
||||||
</fileset>
|
|
||||||
</classpath>
|
|
||||||
</taskdef>
|
|
||||||
|
|
||||||
<target name="init">
|
|
||||||
<echo message="============================================================" />
|
|
||||||
<echo message=" PostgreSQL database update tool for Adempiere ERP" />
|
|
||||||
<echo message=" Adempiere Licese is GNU GPL License" />
|
|
||||||
<echo message="============================================================" />
|
|
||||||
<echo message="" file="psql.log" append="false" />
|
|
||||||
<echo append="false" file="build.log" message="#Build log:${line.separator}${line.separator}" />
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="run-scripts" depends="init">
|
|
||||||
<echo message="----- Running migration SQL scripts -----" />
|
|
||||||
<echo file="psql.log" append="true" message="${line.separator}#Run Scripts:${line.separator}${line.separator}" />
|
|
||||||
<foreach param="file.name" target="load">
|
|
||||||
<path>
|
|
||||||
<fileset dir=".">
|
|
||||||
<include name="*.sql" />
|
|
||||||
</fileset>
|
|
||||||
</path>
|
|
||||||
</foreach>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="load">
|
|
||||||
<echo message="Loading file ${file.name}" />
|
|
||||||
<exec dir="${postgresql.home}/bin" executable="${postgresql.home}/bin/psql" resultproperty="psql.result" output="psql.log" append="true">
|
|
||||||
<arg line="-h ${postgresql.host}" />
|
|
||||||
<arg line="-d ${postgresql.database} -q" />
|
|
||||||
<arg line="-U ${postgresql.user}" />
|
|
||||||
<arg line="-f ${file.name}" />
|
|
||||||
<env key="PGPASSWORD" value="${postgresql.password}" />
|
|
||||||
</exec>
|
|
||||||
<echo message="File ${file.name} status ${psql.result}" />
|
|
||||||
<echo append="true" file="build.log">File ${file.name} status ${psql.result}</echo>
|
|
||||||
<echo append="true" file="build.log" message="${line.separator}" />
|
|
||||||
</target>
|
|
||||||
</project>
|
|
|
@ -1,50 +0,0 @@
|
||||||
<project name="migrate-db-oracle-351a-352a" default="run-scripts" basedir=".">
|
|
||||||
<property file="../../oracle.properties" />
|
|
||||||
<path id="lib.path">
|
|
||||||
<fileset dir="../../../tools/lib">
|
|
||||||
<include name="**/*.jar" />
|
|
||||||
</fileset>
|
|
||||||
</path>
|
|
||||||
<taskdef resource="net/sf/antcontrib/antlib.xml">
|
|
||||||
<classpath>
|
|
||||||
<fileset dir="../../../tools/lib">
|
|
||||||
<include name="**/*.jar" />
|
|
||||||
</fileset>
|
|
||||||
</classpath>
|
|
||||||
</taskdef>
|
|
||||||
|
|
||||||
<target name="init">
|
|
||||||
<echo message="============================================================" />
|
|
||||||
<echo message=" Oracle database migration tool for Adempiere ERP" />
|
|
||||||
<echo message=" Adempiere Licese is GNU GPL License" />
|
|
||||||
<echo message="============================================================" />
|
|
||||||
<echo message="" file="sqlplus.log" append="false" />
|
|
||||||
<echo append="false" file="build.log" message="#Build log:${line.separator}${line.separator}" />
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="run-scripts" depends="init">
|
|
||||||
<echo message="----- Running migration SQL scripts -----" />
|
|
||||||
<echo file="sqlplus.log" append="true" message="${line.separator}#Run Scripts:${line.separator}${line.separator}" />
|
|
||||||
<foreach param="file.name" target="load">
|
|
||||||
<path>
|
|
||||||
<fileset dir=".">
|
|
||||||
<include name="*.sql" />
|
|
||||||
</fileset>
|
|
||||||
</path>
|
|
||||||
</foreach>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="load">
|
|
||||||
<echo message="Loading file ${file.name}" />
|
|
||||||
<exec dir="${oracle.home}/bin" executable="${oracle.home}/bin/sqlplus" resultproperty="sqlplus.result" output="sqlplus.log" append="true">
|
|
||||||
<arg line="${oracle.connect.param}" />
|
|
||||||
<arg line="@${file.name}" />
|
|
||||||
</exec>
|
|
||||||
<echo message="File ${file.name} status ${sqlplus.result}" />
|
|
||||||
<echo append="true" file="build.log">File ${file.name} status ${sqlplus.result}</echo>
|
|
||||||
<echo append="true" file="build.log" message="${line.separator}" />
|
|
||||||
</target>
|
|
||||||
|
|
||||||
</project>
|
|
||||||
|
|
||||||
|
|
|
@ -1,50 +0,0 @@
|
||||||
<project name="migrate-db-postgre-351a-352a" default="run-scripts" basedir=".">
|
|
||||||
<property file="../../postgresql.properties" />
|
|
||||||
<path id="lib.path">
|
|
||||||
<fileset dir="../../../tools/lib">
|
|
||||||
<include name="**/*.jar" />
|
|
||||||
</fileset>
|
|
||||||
</path>
|
|
||||||
<taskdef resource="net/sf/antcontrib/antlib.xml">
|
|
||||||
<classpath>
|
|
||||||
<fileset dir="../../../tools/lib">
|
|
||||||
<include name="**/*.jar" />
|
|
||||||
</fileset>
|
|
||||||
</classpath>
|
|
||||||
</taskdef>
|
|
||||||
|
|
||||||
<target name="init">
|
|
||||||
<echo message="============================================================" />
|
|
||||||
<echo message=" PostgreSQL database update tool for Adempiere ERP" />
|
|
||||||
<echo message=" Adempiere Licese is GNU GPL License" />
|
|
||||||
<echo message="============================================================" />
|
|
||||||
<echo message="" file="psql.log" append="false" />
|
|
||||||
<echo append="false" file="build.log" message="#Build log:${line.separator}${line.separator}" />
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="run-scripts" depends="init">
|
|
||||||
<echo message="----- Running migration SQL scripts -----" />
|
|
||||||
<echo file="psql.log" append="true" message="${line.separator}#Run Scripts:${line.separator}${line.separator}" />
|
|
||||||
<foreach param="file.name" target="load">
|
|
||||||
<path>
|
|
||||||
<fileset dir=".">
|
|
||||||
<include name="*.sql" />
|
|
||||||
</fileset>
|
|
||||||
</path>
|
|
||||||
</foreach>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="load">
|
|
||||||
<echo message="Loading file ${file.name}" />
|
|
||||||
<exec dir="${postgresql.home}/bin" executable="${postgresql.home}/bin/psql" resultproperty="psql.result" output="psql.log" append="true">
|
|
||||||
<arg line="-h ${postgresql.host}" />
|
|
||||||
<arg line="-d ${postgresql.database} -q" />
|
|
||||||
<arg line="-U ${postgresql.user}" />
|
|
||||||
<arg line="-f ${file.name}" />
|
|
||||||
<env key="PGPASSWORD" value="${postgresql.password}" />
|
|
||||||
</exec>
|
|
||||||
<echo message="File ${file.name} status ${psql.result}" />
|
|
||||||
<echo append="true" file="build.log">File ${file.name} status ${psql.result}</echo>
|
|
||||||
<echo append="true" file="build.log" message="${line.separator}" />
|
|
||||||
</target>
|
|
||||||
</project>
|
|
|
@ -38,7 +38,7 @@
|
||||||
<echo message="Loading file ${file.name}" />
|
<echo message="Loading file ${file.name}" />
|
||||||
<exec dir="${oracle.home}/bin" executable="${oracle.home}/bin/sqlplus" resultproperty="sqlplus.result" output="sqlplus.log" append="true">
|
<exec dir="${oracle.home}/bin" executable="${oracle.home}/bin/sqlplus" resultproperty="sqlplus.result" output="sqlplus.log" append="true">
|
||||||
<arg line="${oracle.connect.param}" />
|
<arg line="${oracle.connect.param}" />
|
||||||
<arg line="@${file.name}" />
|
<arg line='@"${file.name}"'/>
|
||||||
</exec>
|
</exec>
|
||||||
<echo message="File ${file.name} status ${sqlplus.result}" />
|
<echo message="File ${file.name} status ${sqlplus.result}" />
|
||||||
<echo append="true" file="build.log">File ${file.name} status ${sqlplus.result}</echo>
|
<echo append="true" file="build.log">File ${file.name} status ${sqlplus.result}</echo>
|
||||||
|
|
Loading…
Reference in New Issue