Changeset 1063 for branches/omero_ds_fix
- Timestamp:
- 11/02/06 18:05:42 (2 years ago)
- Location:
- branches/omero_ds_fix
- Files:
-
- 1 added
- 1 removed
- 4 modified
- 1 copied
-
build.xml (modified) (1 diff)
-
components/antlib/resources/omero.xml (modified) (2 diffs)
-
components/app/build.xml (modified) (4 diffs)
-
components/app/product.properties (added)
-
components/app/resources/omero-ds.xml (deleted)
-
etc/omero-ds.xml (copied) (copied from trunk/components/app/resources/omero-ds.xml)
-
etc/omero.properties (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/omero_ds_fix/build.xml
r1057 r1063 123 123 for use by the user to configure the install. 124 124 --> 125 <copy todir="${dist.dir}/etc" >125 <copy todir="${dist.dir}/etc" overwrite="true"> 126 126 <fileset dir="${omero.home}/etc"> 127 127 <exclude name="local.properties"/> 128 128 </fileset> 129 129 </copy> 130 <concat destfile="${dist.dir}/etc/omero.properties" append="true"> 131 <filelist dir="${app.comp}" files="product.properties"/> 132 </concat> 130 133 131 134 <!-- -
branches/omero_ds_fix/components/antlib/resources/omero.xml
r1057 r1063 42 42 43 43 <!-- This overrides the classpath.file properties of all the components. --> 44 <property name="ant.resources" value="${basedir}/components/antlib/resources/"/>45 <property name="classpath.file" value="${ant.resources}/dist-classpath.xml"/>44 <property name="ant.resources" value="${basedir}/components/antlib/resources/"/> 45 <property name="classpath.file" value="${ant.resources}/dist-classpath.xml"/> 46 46 <import file="${classpath.file}"/> <!-- imports global.xml --> 47 47 … … 60 60 61 61 <target name="update"> 62 63 <!-- copied from app/build.xml refactor --> 64 <tempfile property="temp.dir"/> 65 <mkdir dir="${temp.dir}"/> 66 <copy file="${etc.dir}/omero-ds.xml" todir="${temp.dir}" /> 67 <replace file="${temp.dir}/omero-ds.xml"> 68 <replacefilter token="@@@JDBC.URL@@@" value="${hibernate.connection.url}"/> 69 <replacefilter token="@@@JDBC.DRIVER@@@" value="${hibernate.connection.driver_class}"/> 70 <replacefilter token="@@@JDBC.USERNAME@@@" value="${hibernate.connection.username}"/> 71 <replacefilter token="@@@JDBC.PASSWORD@@@" value="${hibernate.connection.password}"/> 72 </replace> 73 62 74 <jar update="true" 63 destfile="${omero.home}/omero-app-${omero.version}.ear"> 64 <fileset dir="${etc.dir}"> 65 <include name="omero.properties"/> 66 <include name="hibernate.properties"/> 75 destfile="${artifact.final.name}.ear"> 76 <fileset dir="${basedir}"> 77 <include name="etc/local.properties"/> 78 <include name="etc/local.properties.example"/> 79 <include name="etc/omero.properties"/> 80 <include name="etc/hibernate.properties"/> 81 </fileset> 82 <fileset dir="${temp.dir}"> 83 <include name="omero-ds.xml"/> 67 84 </fileset> 68 85 </jar> 86 <delete dir="${temp.dir}"/> 69 87 </target> 70 88 71 <target name="setup-db" >89 <target name="setup-db" depends="classpath-define"> 72 90 <sql_run> 73 91 <transaction src="sql/ddl.sql"/> -
branches/omero_ds_fix/components/app/build.xml
r1057 r1063 7 7 <project name="app" default="help" basedir="."> 8 8 9 <property name="artifact.packaging" value="ear"/> 9 <property name="artifact.packaging" value="ear"/> 10 <property file="product.properties"/> 10 11 11 12 <property name="classpath.file" value="classpath.xml"/> 12 13 <import file="${classpath.file}"/> 13 14 <property name="product.name" value="Omero Server"/>15 <property name="product.version" value="3.0" />16 14 17 15 <!-- … … 36 34 37 35 <!-- DataSource with replacement. --> 38 <copy file="${resrc.dir}/omero-ds.xml" todir="${target.dir}" /> 39 <replace file="${target.dir}/omero-ds.xml"> 36 <tempfile property="temp.file"/> 37 <copy file="${etc.dir}/omero-ds.xml" tofile="${temp.file}" /> 38 <replace file="${temp.file}"> 40 39 <replacefilter token="@@@JDBC.URL@@@" value="${hibernate.connection.url}"/> 41 40 <replacefilter token="@@@JDBC.DRIVER@@@" value="${hibernate.connection.driver_class}"/> … … 54 53 <fileset dir="${resrc.dir}" includes="ejb.properties"/> 55 54 <fileset dir="${resrc.dir}" includes="jboss-service.xml"/> 56 <fileset dir="${target.dir}" includes="omero-ds.xml" />57 55 <fileset dir="${target.dir}/libs" includes="*.jar" /> 56 <fileset file="${temp.file}"/> 58 57 <manifest> 59 58 <attribute name="Product-Name" value="${product.name}"/> … … 70 69 </jar> 71 70 72 <delete file="${t arget.dir}/omero-ds.xml" />71 <delete file="${temp.file}" /> 73 72 74 73 </target> -
branches/omero_ds_fix/etc/omero.properties
r726 r1063 5 5 # build-time and run-time 6 6 # 7 # To override the name of the application, 8 # uncomment the below. 9 omero.product=GlencoeDME 7 10 omero.version=3.0-TRUNK 8 11 omero.repo.local=${omero.home}/lib/repository … … 31 34 #omero.repo.local=${user.home}/.m2/repository/ 32 35 #omero.repo.remote=file://${omero.home}/lib/repository/ 33
