Changeset 2716
- Timestamp:
- 01/26/10 10:27:16
- Files:
-
- trunk/build/platforms/jbossService.xml (modified) (4 diffs)
- trunk/build/platforms/runnableService.xml (added)
- trunk/build/platforms/tomcat5Service.xml (modified) (4 diffs)
- trunk/config/bwbuild/jboss/cal.properties (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/build/platforms/jbossService.xml
r2714 r2716 12 12 13 13 <project name="bedework.platformService" default="doHibProps" > 14 <import file="${build.dir}/platforms/runnableService.xml" /> 15 14 16 <target name="doHibProps" > 15 <echo file="${app.dest.classes}/hibernate.properties"> 17 <if> 18 <istrue value="${propval.app.runnable}" /> 19 <then> 20 <antcall target="runnableDoHibProps" inheritRefs="true" /> 21 </then> 22 <else> 23 <echo file="${app.dest.classes}/hibernate.properties"> 16 24 hibernate.query.substitutions true 'T', false 'F', yes 'Y', no 'N' 17 25 hibernate.dialect=${org.bedework.global.hibernate.dialect} … … 26 34 hibernate.jdbc.batch_size=0 27 35 </echo> 36 </else> 37 </if> 28 38 </target> 29 39 … … 33 43 34 44 <target name="addLibs"> 45 <if> 46 <istrue value="${propval.app.runnable}" /> 47 <then> 48 <property name="app.dest.lib" 49 location="${app.dest.home}/lib" /> 50 <antcall target="runnableAddLibs" inheritRefs="true" /> 51 </then> 52 <else> 53 <!-- Library in sar file --> 54 <property name="app.dest.lib" 55 location="${app.dest.webinf}/lib" /> 56 <antcall target="copyLibs" inheritRefs="true" /> 57 </else> 58 </if> 59 </target> 60 61 <!-- ================================================================ 62 Add resources 63 ================================================================ --> 64 65 <target name="addResources"> 66 <if> 67 <istrue value="${propval.app.runnable}" /> 68 <then> 69 <antcall target="runnableAddResources" inheritRefs="true" /> 70 </then> 71 <else> 72 <!-- None for this platform --> 73 </else> 74 </if> 75 </target> 76 77 <!-- ================================================================ 78 Add extras 79 ================================================================ --> 80 81 <target name="addExtras"> 82 <if> 83 <istrue value="${propval.app.runnable}" /> 84 <then> 85 <antcall target="runnableAddExtras" inheritRefs="true" /> 86 </then> 87 <else> 88 <property name="metainf.dir" 89 location="${app.resources.dir}/../META-INF" /> 90 91 <mkdir dir="${app.dest.home}/META-INF" /> 92 93 <echo file="${app.dest.home}/META-INF/jboss-structure.xml"><![CDATA[<?xml version="1.0" encoding="UTF-8"?> 94 <structure> 95 <context> 96 <path name=""/> 97 <metaDataPath> 98 <path name="META-INF"/> 99 </metaDataPath> 100 <classpath> 101 <path name="classes"/> 102 <path name="lib" suffixes=".jar" /> 103 </classpath> 104 </context> 105 </structure> 106 ]]></echo> 107 108 <copy todir="${app.dest.home}/META-INF"> 109 <fileset dir="${metainf.dir}" /> 110 <filterset refid="property.filters" /> 111 </copy> 112 </else> 113 </if> 114 </target> 115 116 <target name="deployService"> 117 <!-- copy the sar - at the moment copy the uncompressed. --> 118 119 <if> 120 <istrue value="${propval.app.runnable}" /> 121 <then> 122 <antcall target="runnableDeployService" inheritRefs="true" /> 123 </then> 124 <else> 125 <if> 126 <isset property="org.bedework.appserver.deploy.dir" /> 127 <then> 128 <property name="app.dest.home" 129 location="${org.bedework.temp.shellscr.home}/${propval.app.zip.name}" /> 130 131 <delete dir="${org.bedework.appserver.deploy.dir}/${propval.app.zip.name}.sar" /> 132 <mkdir dir="${org.bedework.appserver.deploy.dir}/${propval.app.zip.name}.sar" /> 133 <copy todir="${org.bedework.appserver.deploy.dir}/${propval.app.zip.name}.sar"> 134 <fileset dir="${app.dest.home}"/> 135 </copy> 136 </then> 137 </if> 138 </else> 139 </if> 140 </target> 141 142 <!-- ================================================================ 143 Private target to copy libraries 144 ================================================================ --> 145 146 <target name="copyLibs"> 35 147 <!-- hibernate jars --> 36 148 <copy todir="${app.dest.lib}" file="${org.bedework.appjar.antlr}" /> … … 83 195 <copy todir="${app.dest.lib}" file="${org.bedework.appjar.commons-ssl}"/> 84 196 </target> 85 86 <!-- ================================================================87 Add resources88 ================================================================ -->89 90 <target name="addResources">91 <!-- None for this platform -->92 </target>93 94 <!-- ================================================================95 Add extras96 ================================================================ -->97 98 <target name="addExtras">99 <property name="metainf.dir"100 location="${app.resources.dir}/../META-INF" />101 102 <mkdir dir="${app.dest.home}/META-INF" />103 104 <echo file="${app.dest.home}/META-INF/jboss-structure.xml"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>105 <structure>106 <context>107 <path name=""/>108 <metaDataPath>109 <path name="META-INF"/>110 </metaDataPath>111 <classpath>112 <path name="classes"/>113 <path name="lib" suffixes=".jar" />114 </classpath>115 </context>116 </structure>117 ]]></echo>118 119 <copy todir="${app.dest.home}/META-INF">120 <fileset dir="${metainf.dir}" />121 <filterset refid="property.filters" />122 </copy>123 </target>124 125 <target name="deployService">126 <!-- copy the sar - at the moment copy the uncompressed. -->127 128 <if>129 <isset property="org.bedework.appserver.deploy.dir" />130 <then>131 <property name="app.dest.home"132 location="${org.bedework.temp.shellscr.home}/${propval.app.zip.name}" />133 134 <delete dir="${org.bedework.appserver.deploy.dir}/${propval.app.zip.name}.sar" />135 <mkdir dir="${org.bedework.appserver.deploy.dir}/${propval.app.zip.name}.sar" />136 <copy todir="${org.bedework.appserver.deploy.dir}/${propval.app.zip.name}.sar">137 <fileset dir="${app.dest.home}"/>138 </copy>139 </then>140 </if>141 </target>142 197 </project> trunk/build/platforms/tomcat5Service.xml
r2695 r2716 8 8 addExtras: add scripts for runnable versions and META-INF for 9 9 jboss services etc. 10 deployService: deploy the service 10 11 =================================================================== --> 11 12 12 13 <project name="bedework.platformService" default="doHibProps" > 14 <!-- Redirect all targets to the runable service generator --> 15 <import file="${build.dir}/platforms/runnableService.xml" /> 16 13 17 <target name="doHibProps" > 14 <echo file="${app.dest.classes}/hibernate.properties"> 15 hibernate.query.substitutions true 'T', false 'F', yes 'Y', no 'N' 16 hibernate.dialect=${org.bedework.global.hibernate.dialect} 17 hibernate.connection.driver_class=${org.bedework.global.jdbcdriver} 18 hibernate.connection.username=${org.bedework.global.jdbcid} 19 hibernate.connection.password=${org.bedework.global.jdbcpw} 20 hibernate.connection.url=${org.bedework.global.jdbcurl} 21 hibernate.bytecode.use_reflection_optimizer=false 22 hibernate.cache.use_second_level_cache=false 23 # 24 # Here for better debugging 25 # 26 hibernate.jdbc.batch_size=0 27 </echo> 18 <antcall target="runnableDoHibProps" inheritRefs="true" /> 28 19 </target> 29 20 … … 33 24 34 25 <target name="addLibs"> 35 <!-- hibernate jars --> 36 <copy todir="${app.dest.lib}" file="${org.bedework.appjar.antlr}" /> 37 <copy todir="${app.dest.lib}" file="${org.bedework.appjar.asm-attrs}" /> 38 <copy todir="${app.dest.lib}" file="${org.bedework.appjar.asm}" /> 39 <copy todir="${app.dest.lib}" file="${org.bedework.appjar.cglib}" /> 40 <copy todir="${app.dest.lib}" file="${org.bedework.appjar.dom4j}" /> 41 <copy todir="${app.dest.lib}" file="${org.bedework.appjar.ehcache}" /> 42 <copy todir="${app.dest.lib}" file="${org.bedework.appjar.hibernate}" /> 43 <copy todir="${app.dest.lib}" file="${org.bedework.appjar.javassist}" /> 44 <copy todir="${app.dest.lib}" file="${org.bedework.appjar.jgroups}" /> 45 <copy todir="${app.dest.lib}" file="${org.bedework.appjar.jta}" /> 46 <copy todir="${app.dest.lib}" file="${org.bedework.appjar.commons-collections}"/> 47 <copy todir="${app.dest.lib}" file="${org.bedework.appjar.slf4j-api}" /> 48 <copy todir="${app.dest.lib}" file="${org.bedework.appjar.slf4j-log4j12}" /> 49 50 <!-- jms support --> 51 <copy todir="${app.dest.lib}" file="${org.bedework.appjar.activemq-core}" /> 52 <copy todir="${app.dest.lib}" 53 file="${org.bedework.appjar.geronimo-j2ee-management_1.0_spec}" /> 54 <copy todir="${app.dest.lib}" file="${org.bedework.appjar.jms}" /> 55 56 <copy todir="${app.dest.lib}" file="${org.bedework.appjar.commons-logging}"/> 57 58 <!-- core files --> 59 60 <copy todir="${app.dest.lib}" file="${org.bedework.appjar.rpiaccess}" /> 61 <copy todir="${app.dest.lib}" file="${org.bedework.appjar.rpiutil}" /> 62 <copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-davio}" /> 63 64 <copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-annotations}" /> 65 <copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-apiutil}" /> 66 <copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-calcore}" /> 67 <copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-calcorei}" /> 68 <copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-calfacade}" /> 69 <copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-calsvc}" /> 70 <copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-calsvci}" /> 71 <copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-icalendar}" /> 72 <copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-logging}" /> 73 <copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-mail}" /> 74 <copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-sysevents}" /> 75 76 <!-- any extra files--> 77 <copy todir="${app.dest.lib}" > 78 <fileset dir="${org.bedework.temp.extrajars.dir}" /> 79 </copy> 80 81 <!-- Some more standard libs --> 82 <copy todir="${app.dest.lib}" file="${org.bedework.appjar.log4j}"/> 83 <copy todir="${app.dest.lib}" file="${org.bedework.appjar.lucene-core}"/> 84 <copy todir="${app.dest.lib}" file="${org.bedework.appjar.lucene-misc}"/> 85 <copy todir="${app.dest.lib}" file="${org.bedework.appjar.ical4j}"/> 86 <copy todir="${app.dest.lib}" file="${org.bedework.appjar.commons-codec}"/> 87 <copy todir="${app.dest.lib}" file="${org.bedework.appjar.commons-digester}"/> 88 <copy todir="${app.dest.lib}" file="${org.bedework.appjar.commons-httpclient}"/> 89 <copy todir="${app.dest.lib}" file="${org.bedework.appjar.commons-lang}"/> 90 <copy todir="${app.dest.lib}" file="${org.bedework.appjar.commons-ssl}"/> 91 92 <!-- jdbc stuff --> 93 94 <if> 95 <available file="${org.bedework.global.ext.lib}/jdbc" type="dir" /> 96 <then> 97 <!-- jdbc drivers --> 98 <copy todir="${app.dest.lib}" flatten="yes" > 99 <!-- local jdbc drivers --> 100 <fileset dir="${org.bedework.global.ext.lib}/jdbc"> 101 <include name="*.jar"/> 102 </fileset> 103 </copy> 104 </then> 105 <else> 106 <!-- Include the quickstart jdbc driver --> 107 <copy todir="${app.dest.lib}" file="${org.bedework.appjar.hsqldb}"/> 108 </else> 109 </if> 26 <antcall target="runnableAddLibs" inheritRefs="true" /> 110 27 </target> 111 28 … … 115 32 116 33 <target name="addResources"> 117 <property name="app.dest.resources" 118 location="${app.dest.home}/resources" /> 119 120 <mkdir dir="${app.dest.resources}"/> 121 122 <copy tofile="${app.dest.resources}/log4j.xml" 123 file="${org.bedework.runsh.log4j.xml}" 124 failonerror="false" /> 34 <antcall target="runnableAddResources" inheritRefs="true" /> 125 35 </target> 126 36 … … 130 40 131 41 <target name="addExtras"> 132 <!-- =============================================================== 133 Build the classpath 134 =============================================================== --> 42 <antcall target="runnableAddExtras" inheritRefs="true" /> 43 </target> 44 45 <!-- ================================================================ 46 Deploy the service 47 ================================================================ --> 135 48 136 <path id="app.run.path"> 137 <fileset dir="${app.dest.lib}"> 138 <include name="*.jar"/> 139 </fileset> 140 <pathelement location="${app.dest.resources}" /> 141 </path> 142 <pathconvert property="app.run.cp" refid="app.run.path" 143 targetos="unix" > 144 <map from="${app.dest.lib}" to="./lib"/> 145 <map from="${app.dest.resources}" to="./resources"/> 146 </pathconvert> 147 <pathconvert property="app.run.wincp" refid="app.run.path" 148 targetos="windows" > 149 <map from="${app.dest.lib}" to="./lib"/> 150 <map from="${app.dest.resources}" to="./resources"/> 151 </pathconvert> 152 153 <!-- =============================================================== 154 Copy and modify the shell script 155 =============================================================== --> 156 157 <copy tofile="${app.dest.home}/${propval.app.shellscr.name}" 158 file="${app.run.shellscr}" > 159 <filterset> 160 <filter token="CP" 161 value=".:./classes:${app.run.cp}"/> 162 </filterset> 163 <filterset refid="property.filters" /> 164 </copy> 165 166 <copy tofile="${app.dest.home}/${propval.app.batscr.name}" 167 file="${app.run.batscr}" > 168 <filterset> 169 <filter token="CP" 170 value=".;./classes;${app.run.wincp}"/> 171 </filterset> 172 <filterset refid="property.filters" /> 173 </copy> 174 175 <!-- build the zip file --> 176 <mkdir dir="${dist.home}" /> 177 <delete file="${app.zip.file}" /> 178 179 <zip destfile="${app.zip.file}" > 180 <zipfileset prefix="${propval.app.zip.name}" dir="${app.dest.home}" /> 181 </zip> 49 <target name="deployService"> 50 <antcall target="runnableDeployService" inheritRefs="true" /> 182 51 </target> 183 52 </project> trunk/config/bwbuild/jboss/cal.properties
r2714 r2716 382 382 # 383 383 384 org.bedework.app.caldavTest.runnable=yes 384 385 org.bedework.app.caldavTest.project=caldavTest 385 386 org.bedework.app.caldavTest.sou.dir=caldavTest … … 395 396 # 396 397 398 org.bedework.app.test.runnable=yes 397 399 org.bedework.app.test.project=testsuite 398 400 org.bedework.app.test.sou.dir=
