• Views
  • Iteration Report
  • My Iteration Report
  •  
OMERO.server
  • Login
  • Help/Guide
  • About Trac
  • Preferences
  • Wiki
  • Timeline
  • Roadmap
  • Browse Source
  • View Tickets
  • Search

Context Navigation

  • ← Previous Change
  • Next Change →

Changeset 1063 for branches/omero_ds_fix

Show
Ignore:
Timestamp:
11/02/06 18:05:42 (2 years ago)
Author:
jmoore
Message:

First try at a fix. Moves omero-ds.xml to /etc

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  
    123123                        for use by the user to configure the install. 
    124124                --> 
    125                 <copy todir="${dist.dir}/etc"> 
     125                <copy todir="${dist.dir}/etc" overwrite="true"> 
    126126                        <fileset dir="${omero.home}/etc"> 
    127127                                <exclude name="local.properties"/> 
    128128                        </fileset> 
    129129                </copy> 
     130                <concat destfile="${dist.dir}/etc/omero.properties" append="true"> 
     131                        <filelist dir="${app.comp}" files="product.properties"/> 
     132                </concat> 
    130133 
    131134                <!--  
  • branches/omero_ds_fix/components/antlib/resources/omero.xml

    r1057 r1063  
    4242 
    4343        <!-- 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"/> 
    4646        <import file="${classpath.file}"/> <!-- imports global.xml --> 
    4747 
    … …  
    6060 
    6161        <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 
    6274                <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"/> 
    6784                        </fileset> 
    6885                </jar> 
     86                <delete dir="${temp.dir}"/> 
    6987        </target> 
    7088 
    71         <target name="setup-db"> 
     89        <target name="setup-db" depends="classpath-define"> 
    7290                <sql_run> 
    7391                        <transaction src="sql/ddl.sql"/> 
  • branches/omero_ds_fix/components/app/build.xml

    r1057 r1063  
    77<project name="app" default="help" basedir="."> 
    88 
    9         <property name="artifact.packaging" value="ear"/> 
     9        <property name="artifact.packaging"  value="ear"/> 
     10        <property file="product.properties"/> 
    1011 
    1112        <property name="classpath.file" value="classpath.xml"/> 
    1213        <import file="${classpath.file}"/> 
    13  
    14         <property name="product.name"     value="Omero Server"/> 
    15         <property name="product.version"  value="3.0" /> 
    1614 
    1715   <!-- 
    … …  
    3634       
    3735      <!-- 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}"> 
    4039         <replacefilter token="@@@JDBC.URL@@@" value="${hibernate.connection.url}"/> 
    4140         <replacefilter token="@@@JDBC.DRIVER@@@" value="${hibernate.connection.driver_class}"/> 
    … …  
    5453         <fileset dir="${resrc.dir}" includes="ejb.properties"/> 
    5554         <fileset dir="${resrc.dir}" includes="jboss-service.xml"/> 
    56          <fileset dir="${target.dir}" includes="omero-ds.xml" /> 
    5755         <fileset dir="${target.dir}/libs" includes="*.jar" /> 
     56         <fileset file="${temp.file}"/> 
    5857         <manifest> 
    5958            <attribute name="Product-Name"      value="${product.name}"/> 
    … …  
    7069      </jar> 
    7170 
    72       <delete file="${target.dir}/omero-ds.xml" /> 
     71      <delete file="${temp.file}" /> 
    7372 
    7473   </target> 
  • branches/omero_ds_fix/etc/omero.properties

    r726 r1063  
    55# build-time and run-time 
    66# 
     7# To override the name of the application,  
     8# uncomment the below. 
     9omero.product=GlencoeDME 
    710omero.version=3.0-TRUNK 
    811omero.repo.local=${omero.home}/lib/repository 
    … …  
    3134#omero.repo.local=${user.home}/.m2/repository/ 
    3235#omero.repo.remote=file://${omero.home}/lib/repository/ 
    33  

Download in other formats:

  • Unified Diff
  • Zip Archive

Trac Powered

Powered by Trac 0.11
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/