Changeset 1938
- Timestamp:
- 10/30/08 15:35:48
- Files:
-
- trunk/build/buildwar.xml (modified) (14 diffs)
- trunk/build/loadDeployConfig.xml (modified) (2 diffs)
- trunk/build/platforms (added)
- trunk/build/platforms/jbossWar.xml (added)
- trunk/build/platforms/tomcat5War.xml (added)
- trunk/build/portals/jetspeed2War.xml (modified) (2 diffs)
- trunk/config/bwbuild/.platform (moved) (moved from trunk/config/bwbuild/.standalone) (1 prop)
- trunk/config/bwbuild/.platform/ear.properties (added)
- trunk/config/bwbuild/.platform/standalone.properties (modified) (1 diff)
- trunk/config/bwbuild/.portal/common-resources/jetspeed2-portlet.psml (added)
- trunk/config/bwbuild/default/build.properties (modified) (2 diffs)
- trunk/config/bwbuild/default/cal.properties (modified) (11 diffs)
- trunk/config/bwbuild/jboss/democal.properties (modified) (10 diffs)
- trunk/config/bwbuild/liferay5/cal.properties (modified) (10 diffs)
- trunk/config/configs/democal.properties (modified) (10 diffs)
- trunk/config/configs/metadata.xml (modified) (1 diff)
- trunk/deployment/build.xml (modified) (3 diffs)
- trunk/deployment/deployprops.xml (modified) (1 diff)
- trunk/deployment/freebusyAggregator/jboss (deleted)
- trunk/deployment/freebusyAggregator/webapp/build.xml (modified) (1 diff)
- trunk/deployment/publiccaldav/jboss (deleted)
- trunk/deployment/publiccaldav/webapp/build.xml (modified) (1 diff)
- trunk/deployment/resources/build.xml (modified) (6 diffs)
- trunk/deployment/resources/common-context/WEB-INF/web.xml (modified) (1 diff)
- trunk/deployment/termination/jboss (deleted)
- trunk/deployment/termination/webapp/build.xml (modified) (2 diffs)
- trunk/deployment/usercaldav/jboss (deleted)
- trunk/deployment/usercaldav/webapp/build.xml (modified) (1 diff)
- trunk/deployment/webadmin/jboss (deleted)
- trunk/deployment/webadmin/portlet/jetspeed2-portlet.psml (deleted)
- trunk/deployment/webadmin/webapp/build.xml (modified) (1 diff)
- trunk/deployment/webconfig/jboss (deleted)
- trunk/deployment/webconfig/webapp/build.xml (modified) (1 diff)
- trunk/deployment/webpublic/portlet/jetspeed2-portlet.psml (deleted)
- trunk/deployment/webpublic/webapp/build.xml (modified) (1 diff)
- trunk/deployment/websubmit/jboss (deleted)
- trunk/deployment/websubmit/portlet/jetspeed2-portlet.psml (deleted)
- trunk/deployment/websubmit/webapp/build.xml (modified) (1 diff)
- trunk/deployment/webuser/jboss (deleted)
- trunk/deployment/webuser/portlet/jetspeed2-portlet.psml (deleted)
- trunk/deployment/webuser/portlet/portlet.xml (modified) (1 diff)
- trunk/deployment/webuser/webapp/build.xml (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/build/buildwar.xml
r1937 r1938 19 19 application properties, the directory we build in 20 20 and the name of war and ear files. 21 cal.j2ee Defined if this is a j2ee application22 cal.j2ee.jboss Defined if this is a jboss application23 cal.strutsapp Defined if this is a struts application24 21 These should be defined in the build properties for the application. 25 22 … … 50 47 </if> 51 48 52 <target name="init" depends="init.common,init.j2ee,init.standalone" /> 49 <import file="${build.dir}/platforms/${org.bedework.global.deploy.platform}War.xml" /> 50 51 <target name="init" depends="init.common"> 52 <if> 53 <isset property="org.bedework.global.build.ear" /> 54 <then> 55 <!-- Common library in ear file --> 56 <property name="app.dest.lib" 57 location="${org.bedework.ear.templib}" /> 58 59 <!-- Properties all go into a single jar file at termination --> 60 <property name="app.dest.classes" 61 location="${org.bedework.ear.properties.dir}" /> 62 </then> 63 <else> 64 <!-- Library in war file --> 65 <property name="app.dest.lib" 66 location="${app.dest.webinf}/lib" /> 67 68 <!-- Properties in the war file --> 69 <property name="app.dest.classes" 70 location="${app.dest.webinf}/classes" /> 71 </else> 72 </if> 73 <property name="app.dest.properties" 74 location="${app.dest.classes}/properties/calendar" /> 75 </target> 53 76 54 77 <target name="init.common"> … … 62 85 <property name="app.dest.metainf" 63 86 location="${app.dest.war}/META-INF" /> 64 <property name="app.dest.classes"65 location="${app.dest.webinf}/classes" />66 <property name="app.dest.properties"67 location="${app.dest.classes}/properties/calendar" />68 87 69 88 <!--temp web.xml location --> … … 94 113 </target> 95 114 96 <target name="init.standalone" if="org.bedework.global.build.standalone.app">97 98 <property name="app.dest.lib"99 location="${app.dest.webinf}/lib" />100 </target>101 102 <target name="init.j2ee" if="org.bedework.global.j2ee.platform">103 <property name="app.dest.lib"104 location="${org.bedework.temp.dir}/earlib" />105 </target>106 107 115 <target name="build" depends="init"> 108 116 <echo message="**************************************************" /> … … 131 139 =============================================================== --> 132 140 133 <available file="${app.sou.dir}/properties" type="dir" 134 property="org.bedework.properties.dir.exists" /> 135 136 <available file="${app.sou.properties}" type="file" 137 property="org.bedework.servlet.properties.exists" /> 138 139 <available file="${app.sou.dir}/war/docs" type="dir" 140 property="org.bedework.war.docs.exists" /> 141 142 <antcall target="copy.properties" inheritRefs="true" /> 143 <antcall target="copy.servlet.properties" inheritRefs="true" /> 144 <antcall target="copy.war.docs" inheritRefs="true" /> 141 <if> 142 <available file="${app.sou.dir}/war/docs" type="dir" /> 143 <then> 144 <copy todir="${app.dest.docs}"> 145 <fileset dir="${app.sou.dir}/war/docs" /> 146 </copy> 147 </then> 148 </if> 149 150 <!-- =============================================================== 151 Any property files we need for configuration, other than the 152 standard struts file, should be in the "${app.sou.dir}/properties 153 directory. They will be copied into the appropriate place for the 154 war and transformed by the above filter. 155 =============================================================== --> 156 <if> 157 <available file="${app.sou.dir}/properties" type="dir" /> 158 <then> 159 <copy todir="${app.dest.properties}" overwrite="yes" > 160 <fileset dir="${app.sou.dir}/properties" 161 includes="*.properties"/> 162 <filterset refid="property.filters" /> 163 </copy> 164 </then> 165 </if> 166 167 <copy todir="${app.dest.classes}"> 168 <fileset dir="${app.sou.dir}/war/WEB-INF/classes" 169 includes="*"/> 170 <filterset refid="property.filters" /> 171 </copy> 145 172 146 173 <!-- Create the runtime options file --> … … 152 179 <filter token="RPI-DEBUG" value="${app.debug.val}"/> 153 180 </filterset> 181 <filterset refid="property.filters" /> 182 </copy> 183 184 <copy tofile="${app.dest.classes}/servlet.properties" file="${app.sou.properties}"> 185 <filterset refid="property.filters" /> 186 </copy> 187 188 <!-- =============================================================== 189 Add hibernate jars and property files from calendar api. 190 =============================================================== --> 191 192 <copy todir="${app.dest.classes}"> 193 <fileset dir="${org.bedework.project.calendarapi}/calCore/resources/properties" /> 194 <filterset refid="property.filters" /> 195 </copy> 196 197 <copy todir="${app.dest.classes}"> 198 <fileset dir="${org.bedework.project.calendarapi}/calCore/resources/hbms" /> 154 199 <filterset refid="property.filters" /> 155 200 </copy> … … 177 222 ${propval.app.war.name}.context=${propval.app.context.root} 178 223 </echo> 179 180 <!-- ===============================================================181 Add hibernate jars and property files from calendar api.182 =============================================================== -->183 184 <copy todir="${app.dest.classes}">185 <fileset dir="${org.bedework.project.calendarapi}/calCore/resources/properties" />186 <filterset refid="property.filters" />187 </copy>188 189 <copy todir="${app.dest.classes}">190 <fileset dir="${org.bedework.project.calendarapi}/calCore/resources/hbms" />191 <filterset refid="property.filters" />192 </copy>193 224 194 225 <copy todir="${app.dest.lib}" file="${org.bedework.appjar.antlr}" /> … … 202 233 <copy todir="${app.dest.lib}" file="${org.bedework.appjar.jta}" /> 203 234 204 <antcall target="jboss-stuff" inheritRefs="true" />205 235 <antcall target="bexchange-stuff" inheritRefs="true" /> 206 236 <antcall target="domino-stuff" inheritRefs="true" /> … … 229 259 <copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-appcommon}" /> 230 260 231 <!-- any extra files-->232 <copy todir="${app.dest.lib}" >233 <fileset dir="${org.bedework.temp.extrajars.dir}" />234 </copy>235 236 <!-- Some more standard libs -->237 <if>238 <not>239 <isset property="org.bedework.build.for.jboss"/>240 </not>241 <then>242 <copy todir="${app.dest.lib}" file="${org.bedework.appjar.log4j}"/>243 </then>244 </if>245 261 <copy todir="${app.dest.lib}" file="${org.bedework.appjar.lucene-core}"/> 246 262 <copy todir="${app.dest.lib}" file="${org.bedework.appjar.lucene-misc}"/> … … 260 276 <copy todir="${app.dest.lib}" file="${org.bedework.appjar.smtp}" /> 261 277 262 <!-- add the jdbcdriver if defined 263 Disable this - shouldn't be adding jdbc drivers to the war file 264 <if> 265 <isset property="app.jdbcdriver.jar"/> 266 <then> 267 <copy todir="${app.dest.lib}" file="${app.jdbcdriver.jar}"/> 268 </then> 269 </if> 270 --> 271 272 <!-- tomcat --> 273 <antcall target="add.tomcat" inheritRefs="true" /> 278 <!-- any extra files--> 279 <copy todir="${app.dest.lib}" > 280 <fileset dir="${org.bedework.temp.extrajars.dir}" /> 281 </copy> 282 283 <!-- Platform specific --> 284 <antcall target="doPlatform" inheritRefs="true" /> 274 285 275 286 <!-- build the war file --> … … 281 292 basedir="${app.dest.war}" 282 293 excludes="WEB-INF/web.xml" /> 283 </target>284 285 <target name="add.tomcat" if="org.bedework.global.deploy.on.tomcat">286 <property name="propval.app.tomcat.context.xml"287 location="${app.sou.dir}/war/META-INF/context.xml" />288 <resolveFile name="app.tomcat.context.xml"289 file="${propval.app.tomcat.context.xml}"290 base="${app.sou.dir}"/>291 292 <copy tofile="${app.dest.metainf}/context.xml"293 file="${app.tomcat.context.xml}"294 overwrite="yes" >295 <filterset refid="property.filters" />296 </copy>297 </target>298 299 <target name="copy.properties" if="org.bedework.properties.dir.exists">300 <!-- ===============================================================301 Any property files we need for configuration, other than the302 standard struts file, should be in the "${app.sou.dir}/properties303 directory. They will be copied into the appropriate place for the304 war and transformed by the above filter.305 =============================================================== -->306 <copy todir="${app.dest.properties}" overwrite="yes" >307 <fileset dir="${app.sou.dir}/properties"308 includes="*.properties"/>309 <filterset refid="property.filters" />310 </copy>311 </target>312 313 <target name="copy.servlet.properties">314 <copy todir="${app.dest.classes}">315 <fileset dir="${app.sou.dir}/war/WEB-INF/classes"316 includes="*"/>317 <filterset refid="property.filters" />318 </copy>319 </target>320 321 <target name="copy.war.docs" if="org.bedework.war.docs.exists">322 <copy todir="${app.dest.docs}">323 <fileset dir="${app.sou.dir}/war/docs" />324 </copy>325 294 </target> 326 295 … … 366 335 </fileset> 367 336 </copy> 368 369 <if>370 <not>371 <isset property="xalan.in.tomcat.common.endorsed" />372 </not>373 <then>374 <copy todir="${app.dest.lib}" file="${org.bedework.appjar.xalan}"/>375 </then>376 </if>377 337 378 338 <if> … … 383 343 </if> 384 344 345 <copy todir="${app.dest.lib}" file="${org.bedework.appjar.xalan}"/> 385 346 <copy todir="${app.dest.lib}" file="${org.bedework.appjar.struts}"/> 386 347 … … 395 356 <copy todir="${app.dest.lib}" file="${org.bedework.appjar.jstl-standard}"/> 396 357 </target> 397 398 <!-- =================================================================399 If this is a j2ee app the following gets executed.400 We create an uodated jboss-web.xml file (for jboss) and a ear401 ================================================================= -->402 403 <target name="jboss-stuff" if="org.bedework.build.for.jboss">404 <copy todir="${app.dest.webinf}"405 file="${app.sou.dir}/war/WEB-INF/jboss-web.xml">406 <filterset refid="property.filters" />407 </copy>408 409 <if>410 <isset property="propval.app.virtual.host" />411 <then>412 <replace file="${app.dest.webinf}/jboss-web.xml">413 <replacetoken><![CDATA[<!-- Virtual host -->]]></replacetoken>414 <replacevalue><![CDATA[<virtual-host>@VIRTUAL-HOST@</virtual-host>415 ]]>416 </replacevalue>417 </replace>418 <replace file="${app.dest.webinf}/jboss-web.xml">419 <replacefilter token="@VIRTUAL-HOST@" value="${propval.app.virtual.host}"/>420 </replace>421 </then>422 </if>423 </target>424 425 <target name="build.ear" if="cal.j2ee">426 <ant antfile="${buildear}"427 inheritRefs="true" target="build" />428 </target>429 358 </project> trunk/build/loadDeployConfig.xml
r1937 r1938 39 39 40 40 <property name="org.bedework.config.portal.home" 41 value="${org.bedework.config .home}/.portal/${org.bedework.global.portal.platform}" />41 value="${org.bedework.configurations.home}/.portal/${org.bedework.global.portal.platform}" /> 42 42 43 43 <property name="org.bedework.config.portal.common.home" 44 value="${org.bedework.config .home}/.portal/common-resources" />44 value="${org.bedework.configurations.home}/.portal/common-resources" /> 45 45 46 46 <echo message="******************* load from ${org.bedework.config.portal.home}/portal.properties" /> … … 48 48 </then> 49 49 <else> 50 <echo message="******************* load from ${org.bedework.config .home}/.standalone/standalone.properties" />51 <property file="${org.bedework.config .home}/.standalone/standalone.properties" />50 <echo message="******************* load from ${org.bedework.configurations.home}/.standalone/standalone.properties" /> 51 <property file="${org.bedework.configurations.home}/.platform/standalone.properties" /> 52 52 </else> 53 </if> 54 55 <if> 56 <isset property="org.bedework.global.build.ear"/> 57 <then> 58 <property file="${org.bedework.configurations.home}/.platform/ear.properties" /> 59 </then> 53 60 </if> 54 61 trunk/build/portals/jetspeed2War.xml
r1937 r1938 54 54 55 55 <copy tofile="${app.dest.webinf}/portlet.psml" 56 file="${org.bedework. deploy.type.dir}/portlet/jetspeed2-portlet.psml"56 file="${org.bedework.config.portal.common.home}/jetspeed2-portlet.psml" 57 57 overwrite="yes" 58 58 failonerror="no" > … … 65 65 </not> 66 66 <then> 67 <replace file="${app.dest.webinf}/ struts-config.xml">67 <replace file="${app.dest.webinf}/portlet.psml"> 68 68 <replacetoken><![CDATA[<!-- Security constraints go here -->]]></replacetoken> 69 69 <replacevalue><