Downloads Documentation Community Contribute Demo






Show Sidebar
Login | Register

Changeset 5388

Show
Ignore:
Timestamp:
08/28/08 16:57:35 (3 months ago)
Author:
tmdugan
Message:

-- openmrs logic-api-refactoring

* continuation of previous commit

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • openmrs/branches/logic-api-refactoring/.project

    r4095 r5388  
    11<?xml version="1.0" encoding="UTF-8"?> 
    22<projectDescription> 
    3         <name>openmrs</name> 
     3        <name>openmrs-trunk</name> 
    44        <comment></comment> 
    55        <projects> 
  • openmrs/branches/logic-api-refactoring/build.xml

    r5168 r5388  
    9393                        regexp="${openmrs.database.version.expected.regexp}" 
    9494                        select="\1" 
    95                         defaultValue="${openmrs.version.major}.${openmrs.version.minor}.0.0"  
     95                        defaultValue="${openmrs.version.major}.${openmrs.version.minor}.0.00"  
    9696                        casesensitive="false" /> 
    9797                <propertyregex property="openmrs.database.version.expected.short" 
     
    9999                        regexp="${openmrs.version.major}\.${openmrs.version.minor}\.${openmrs.version.maintenance}\.([0-9][0-9]+)" 
    100100                        select="\1" 
    101                         defaultValue="Invalid Database Version" /> 
     101                        defaultValue="00" /> 
    102102                 
    103103                <loadfile srcfile="${openmrs.version.revision.filename}" property="repositoryFileInput" /> 
     
    113113                        </then> 
    114114                        <else> 
    115                                 <!-- SVN 1.4+ does not use XML format, just grab 4th line --> 
     115                                <!-- SVN 1.4+ does not use XML format, just grab 11th line --> 
    116116                                <propertyregex property="openmrs.version.revision" 
    117117                                        input="${repositoryFileInput}" 
    118                                         regexp="^(.*)\n(.*)\n(.*)\n(.*)
    119                                         select="\4
     118                                        regexp="^(.*)\n(.*)\n(.*)\n(.*)\n(.*)\n(.*)\n(.*)\n(.*)\n(.*)\n(.*)\n(.*)\n
     119                                        select="\11
    120120                                        defaultValue="? (error in post-1.4 revision regexp)" />                          
    121121                        </else> 
     
    219219                 
    220220                <!-- move files over that are required for modules to use this test-openmrs-api*.jar file --> 
    221                 <copy todir="${build.dir}/org/openmrs/test" file="${test.dir}/api/org/openmrs/test/TestingApplicationContext.xml" /> 
     221                <copy todir="${build.dir}/org/openmrs/test/testutil" file="${test.dir}/api/org/openmrs/test/testutil/TestingApplicationContext.xml" /> 
    222222                <copy todir="${build.dir}/org/openmrs/test/include" file="${test.dir}/api/org/openmrs/test/include/initialInMemoryTestDataSet.xml" /> 
     223                 
     224                <!-- copy the extra files to the build dir in case an ant-clean was just done --> 
     225                <copy todir="${build.dir}"> 
     226                        <!-- dbunit files for db and api tests --> 
     227                        <fileset dir="${test.dir}/api" includes="**/*.xml"/> 
     228                        <!-- module files for module tests --> 
     229                        <fileset dir="${test.dir}/api" includes="**/*.omod"/> 
     230                </copy> 
    223231                 
    224232        </target> 
     
    233241                                <exclude name="**/web/test/*.class" /> 
    234242                                <include name="**/test/*.class" /> 
    235                                 <include name="org/openmrs/test/TestingApplicationContext.xml" /> 
    236243                                <include name="org/openmrs/test/include/initialInMemoryTestDataSet.xml" /> 
    237244                        </fileset> 
     245                        <!-- Put this xml in a separate fileset so that its in the root of the jar file --> 
     246                        <fileset file="${build.dir}/org/openmrs/test/testutil/TestingApplicationContext.xml" /> 
    238247                </jar> 
    239248        </target> 
     
    278287                                <include name="**/messages*.properties"/> 
    279288                                <include name="**/images/**/*" /> 
    280                         </fileset>                       
     289                                <!-- This fileset doesn't exclude /web/test so that  
     290                                         developers can easily test files --> 
     291                        </fileset> 
    281292                </copy> 
    282293        </target> 
     
    335346         
    336347        <target name="package-web" depends="package-web-init" description="create webapp war file"> 
    337                 <war destfile="${dist.dir}/${webapp.name}.war" basedir="web" excludes="**/web.xml" webxml="${dist.dir}/web/web.xml" duplicate="add"> 
     348                <war destfile="${dist.dir}/${webapp.name}.war" basedir="web" excludes="**/web.xml, **/test/" webxml="${dist.dir}/web/web.xml" duplicate="add"> 
    338349                        <classes dir="${build.dir}"> 
    339350                                <include name="**/web/**/*.class" /> 
     
    360371         
    361372        <target name="package-web-without-libs" depends="package-web-init" description="create webapp war file without libs"> 
    362                 <war destfile="${dist.dir}/${webapp.name}.war" basedir="web" excludes="**/web.xml" webxml="${dist.dir}/web/web.xml" duplicate="add"> 
     373                <war destfile="${dist.dir}/${webapp.name}.war" basedir="web" excludes="**/web.xml, **/test/" webxml="${dist.dir}/web/web.xml" duplicate="add"> 
    363374                        <classes dir="${build.dir}" > 
    364375                                <include name="**/web/**/*.class" /> 
     
    572583                                <fileset dir="${build.dir}"> 
    573584                                        <include name="**/*Test.class" /> 
    574                                         <exclude name="org/openmrs/test/BaseContextSensitiveTest.class" /> 
    575                                         <exclude name="org/openmrs/test/BaseModuleContextSensitiveTest.class" /> 
     585                                        <exclude name="**/*BaseContextSensitiveTest.class" /> 
     586                                        <exclude name="**/*BaseModuleContextSensitiveTest.class" /> 
    576587                                        <exclude name="org/openmrs/web/taglib/SummaryTest.class" /> 
    577588                                </fileset>