Changeset 1991

Show
Ignore:
Timestamp:
12/20/08 00:51:29
Author:
douglm
Message:

Fix up the jboss build

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/config/bwbuild/default/cal.options.xml

    r1988 r1991  
    2828        <publicCalendarUri>/cal</publicCalendarUri> 
    2929        <personalCalendarUri>/ucal</personalCalendarUri> 
     30 
     31        <!-- CardDAV server locations --> 
     32        <publicCardDAVUri>http://localhost:8080/carddav</publicCardDAVUri> 
     33        <personalCardDAVUri>http://localhost:8080/ucarddav</personalCardDAVUri> 
    3034 
    3135        <module> 
  • trunk/config/bwbuild/default/cal.properties

    r1988 r1991  
    101101# 
    102102# ------------------------------------------------------------------------ 
    103 #   Common context for javasscript, resources etc. 
     103#   Common context for javascript, resources etc. 
    104104# ------------------------------------------------------------------------ 
    105105# Enable building of a common context for common javascript. 
  • trunk/config/bwbuild/jboss/build.properties

    r1807 r1991  
    1616compile.debug=yes 
    1717 
    18 org.bedework.appserver.dir=${env.BEDEWORK_HOME}/jboss-4.2.2.GA 
     18org.bedework.appserver.dir=${user.home}/drop2/jboss/jboss-4.2.2.GA 
    1919 
    2020org.bedework.config.properties=${env.BEDEWORK_CONFIG}/democal.properties 
  • trunk/config/bwbuild/jboss/democal.options.xml

    r1937 r1991  
    2323        <portalPlatform>your-portal</portalPlatform> 
    2424         --> 
     25 
     26        <!-- uris to cross link apps - of dubious usefulness --> 
     27        <publicAdminUri>/caladmin</publicAdminUri> 
     28        <publicCalendarUri>/cal</publicCalendarUri> 
     29        <personalCalendarUri>/ucal</personalCalendarUri> 
     30 
     31        <!-- CardDAV server locations --> 
     32        <publicCardDAVUri>http://localhost:8080/carddav</publicCardDAVUri> 
     33        <personalCardDAVUri>http://localhost:8080/ucarddav</personalCardDAVUri> 
    2534 
    2635        <module> 
     
    308317             ================================================================== --> 
    309318        <Usercaldav classname="org.bedework.calfacade.configs.CalDAVConfig"> 
     319          <appType>usercaldav</appType> 
    310320          <publicAdmin>false</publicAdmin> 
    311321          <guestMode>false</guestMode> 
     
    329339             ================================================================== --> 
    330340        <Pubcaldav classname="org.bedework.calfacade.configs.CalDAVConfig"> 
     341          <appType>publiccaldav</appType> 
    331342          <publicAdmin>false</publicAdmin> 
    332343          <guestMode>true</guestMode> 
     
    348359 
    349360        <!-- ================================================================== 
     361                          CalDAV test suite 
     362             ================================================================== --> 
     363        <caldavTest classname="org.bedework.calfacade.configs.ConfigCommon"> 
     364          <appType>caldavTest</appType> 
     365          <publicAdmin>false</publicAdmin> 
     366          <guestMode>false</guestMode> 
     367        </caldavTest> 
     368 
     369        <!-- ================================================================== 
     370                          bedework test suite 
     371             ================================================================== --> 
     372        <test classname="org.bedework.calfacade.configs.ConfigCommon"> 
     373          <appType>testsuite</appType> 
     374          <publicAdmin>false</publicAdmin> 
     375          <guestMode>false</guestMode> 
     376        </test> 
     377 
     378        <!-- ================================================================== 
    350379                          Dump restore program dumpres 
    351380             ================================================================== --> 
    352381        <dumpres classname="org.bedework.calfacade.configs.DumpRestoreConfig"> 
    353382          <debug>true</debug> 
     383          <appType>dumprestore</appType> 
     384          <guestMode>true</guestMode> 
    354385          <debugEntity>false</debugEntity> 
    355386          <superGroupName>campusAdminGroups</superGroupName> 
  • trunk/config/bwbuild/jboss/democal.properties

    r1956 r1991  
    1818# 
    1919# Define the names of the applications we want to build 
    20 org.bedework.install.app.names=bwconfig,CalAdmin,EventSubmit,Events,SoEDept,UserCal,Pubcaldav,Usercaldav,caldavTest,test,dumpres 
     20org.bedework.install.app.names=CalAdmin,EventSubmit,Events,SoEDept,UserCal,Pubcaldav,Usercaldav,caldavTest,test,dumpres 
    2121 
    2222# 
     
    4040# build/platforms/<platform>War.xml 
    4141org.bedework.global.deploy.platform=tomcat5 
    42  
     42
     43# ------------------------------------------------------------------------ 
     44# Properties enabling and controlling ear file build 
     45# ------------------------------------------------------------------------ 
     46 
     47# Comment this out to disable ear build. 
    4348org.bedework.global.build.ear=yes 
    4449org.bedework.global.ear.name=rpical 
     
    4954org.bedework.global.ear.lib.excludes=commons-logging*,log4j*,jgroup*,servlet.jsp* 
    5055 
    51 # uris to cross link apps - of dubious usefulness 
    52 org.bedework.global.public.admin.uri=/caladmin 
    53 org.bedework.global.public.calendar.uri=/cal 
    54 org.bedework.global.personal.calendar.uri=/ucal 
    55  
     56
     57# The ear can be zipped or left unzipped. Zipped can be useful for copying 
     58# Jboss will not tolerate zipped ears and unzipped wars. 
     59 
     60# Comment out or set to "no" to disable zipped ear file 
     61org.bedework.global.ear.zipped=yes 
     62 
     63# How would you like your wars sir? zipped or unzipped? 
     64org.bedework.global.ear.wars.zipped=yes 
    5665# 
    5766# ------------------------------------------------------------------------ 
     
    91100org.bedework.jboss.config.dir=${org.bedework.appserver.dir}/server/${org.bedework.jboss.config} 
    92101 
    93 # where we deploy 
     102# where we deploy 
    94103org.bedework.appserver.deploy.dir=${org.bedework.jboss.config.dir}/webapps 
    95104 
     
    111120org.bedework.jetspeed2.deploy.dir=${org.bedework.appserver.deploy.dir}/jetspeed/WEB-INF/deploy 
    112121 
    113 # This is where we copy common xsl and javascript for inclusion by xsl and generated 
    114 # content. Relative to org.bedework.appserver.dir 
    115 org.bedework.global.common.deploydir=/server/${org.bedework.jboss.config}/deploy/jboss-web.deployer/ROOT.war/bedework-common 
    116  
    117122#  Set to yes if you want your log4j.xml overwritten 
    118123org.bedework.deploy.log4j.config=no 
     
    124129# ------------------------------------------------------------------------ 
    125130# 
     131# ------------------------------------------------------------------------ 
     132#   Common context for javascript, resources etc. 
     133# ------------------------------------------------------------------------ 
     134# A common context for common javascript and other resources. 
     135# This context will be deployed along with the applications. 
     136# 
     137# This is necessary to deal with problems delivering commmon code from the same 
     138# server when the root context is defined to be an application rather than the 
     139# normal web server default. 
     140# 
     141org.bedework.global.build.common.context.name=bedework-common 
     142org.bedework.global.build.common.context.root=/bedework-common 
     143org.bedework.global.build.common.context.war.name=bedework-common 
     144org.bedework.global.build.common.context.deploy.dir=/webapps 
    126145# 
    127146# ------------------------------------------------------------------- 
  • trunk/config/bwbuild/liferay5/cal.options.xml

    r1937 r1991  
    2323        <portalPlatform>your-portal</portalPlatform> 
    2424         --> 
     25 
     26        <!-- uris to cross link apps - of dubious usefulness --> 
     27        <publicAdminUri>/caladmin</publicAdminUri> 
     28        <publicCalendarUri>/cal</publicCalendarUri> 
     29        <personalCalendarUri>/ucal</personalCalendarUri> 
     30 
     31        <!-- CardDAV server locations --> 
     32        <publicCardDAVUri>http://localhost:8080/carddav</publicCardDAVUri> 
     33        <personalCardDAVUri>http://localhost:8080/ucarddav</personalCardDAVUri> 
    2534 
    2635        <module> 
  • trunk/config/bwbuild/liferay5/cal.properties

    r1956 r1991  
    4040# build/platforms/<platform>War.xml 
    4141org.bedework.global.deploy.platform=tomcat5 
    42  
    43 # uris to cross link apps - of dubious usefulness 
    44 org.bedework.global.public.admin.uri=/caladmin 
    45 org.bedework.global.public.calendar.uri=/cal 
    46 org.bedework.global.personal.calendar.uri=/ucal 
    4742 
    4843# 
  • trunk/config/configs/democal.options.xml

    r1988 r1991  
    2828        <publicCalendarUri>/cal</publicCalendarUri> 
    2929        <personalCalendarUri>/ucal</personalCalendarUri> 
     30 
     31        <!-- CardDAV server locations --> 
     32        <publicCardDAVUri>http://localhost:8080/carddav</publicCardDAVUri> 
     33        <personalCardDAVUri>http://localhost:8080/ucarddav</personalCardDAVUri> 
    3034 
    3135        <module> 
  • trunk/deployment/build.xml

    r1952 r1991  
    6464    <property name="org.bedework.common.resources" 
    6565              location="${app.root.dir}/resources" /> 
     66 
     67    <property name="org.bedework.global.build.common.context.war.name" 
     68              value="bw-common" /> 
     69 
     70    <!-- Where we put ear stuff --> 
     71    <if> 
     72      <isset property="org.bedework.global.build.ear" /> 
     73      <then> 
     74        <property name="app.ear.file.name" 
     75                  value="${org.bedework.global.ear.name}.ear" /> 
     76 
     77        <if> 
     78          <equals arg1="${org.bedework.global.ear.zipped}" 
     79                  arg2="yes" /> 
     80          <then> 
     81            <property name="org.bedework.ear.dir" 
     82                      location="${dist.home}/${org.bedework.global.ear.name}" /> 
     83            <property name="org.bedework.ear.file" 
     84                      location="${dist.home}/${org.bedework.global.ear.name}.ear" /> 
     85          </then> 
     86          <else> 
     87            <property name="org.bedework.ear.dir" 
     88                      location="${dist.home}/${org.bedework.global.ear.name}.ear" /> 
     89          </else> 
     90        </if> 
     91 
     92        <property name="org.bedework.ear.templib" 
     93                  location="${org.bedework.ear.dir}/lib" /> 
     94        <property name="org.bedework.ear.properties.dir" 
     95                  location="${org.bedework.temp.dir}/ear-properties" /> 
     96 
     97        <property name="org.bedework.ear.properties.jar" 
     98                  location="${org.bedework.ear.dir}/bw-ear-properties.jar"/> 
     99 
     100        <delete dir="${org.bedework.ear.dir}" /> 
     101        <mkdir dir="${org.bedework.ear.dir}" /> 
     102 
     103        <delete dir="${org.bedework.ear.templib}" /> 
     104        <mkdir dir="${org.bedework.ear.templib}" /> 
     105 
     106        <delete dir="${org.bedework.ear.properties.dir}" /> 
     107        <mkdir dir="${org.bedework.ear.properties.dir}" /> 
     108      </then> 
     109    </if> 
     110 
     111    <property name="org.bedework.global.context.roots" 
     112              location="${org.bedework.temp.dir}/context-roots.properties" /> 
    66113 
    67114    <if> 
  • trunk/deployment/resources/build.xml

    r1956 r1991  
    114114          </then> 
    115115        </if> 
     116 
     117    <!-- Add the contex root to the file. Note that newline is required --> 
     118    <echo file="${org.bedework.global.context.roots}" append="yes"> 
     119${propval.app.war.name}.context=${org.bedework.global.build.common.context.root} 
     120    </echo> 
    116121<!-- 
    117122      </then> 
  • trunk/deployment/termination/webapp/build.xml

    r1938 r1991  
    1111    <dirname property="this.dir" file="${ant.file}"/> 
    1212 
    13     <property name="app.ear.file.name" 
    14               value="${org.bedework.global.ear.name}.ear" /> 
    15     <property name="app.ear.file" 
    16               location="${dist.home}/${app.ear.file.name}" /> 
    1713  </target> 
    1814 
     
    4339 
    4440        <!-- We have to drop some of the libraries so they don't conflict --> 
    45         <copy toDir="${ear.dir}"> 
    46           <fileset dir="${org.bedework.temp.dir}/earlib
     41        <copy toDir="${org.bedework.ear.dir}"> 
     42          <fileset dir="${org.bedework.ear.templib}
    4743                   excludes="${org.bedework.global.ear.lib.excludes}" /> 
    4844        </copy> 
    4945 
     46        <echo message="outFile=${org.bedework.ear.dir}/META-INF/application.xml 
     47                        warDir=${org.bedework.temp.dir}/wars 
     48                        contexts=${org.bedework.global.context.roots}" /> 
     49 
    5050        <applicationXml displayName="Bedework calendar suite" 
    51                         outFile="${ear.dir}/META-INF/application.xml" 
     51                        outFile="${org.bedework.ear.dir}/META-INF/application.xml" 
    5252                        warDir="${org.bedework.temp.dir}/wars" 
    5353                        contexts="${org.bedework.global.context.roots}"> 
    54           <fileset dir="${ear.dir}"> 
     54          <fileset dir="${org.bedework.ear.dir}"> 
    5555            <include name="*.jar"/> 
    5656          </fileset> 
    5757        </applicationXml> 
    5858 
    59         <manifest file="${ear.dir}/META-INF/MANIFEST.MF" /> 
     59        <manifest file="${org.bedework.ear.dir}/META-INF/MANIFEST.MF" /> 
    6060 
    61         <copy toDir="${ear.dir}"> 
    62           <fileset dir="${org.bedework.temp.wars.home}"/> 
    63         </copy> 
     61        <if> 
     62          <equals arg1="${org.bedework.global.ear.wars.zipped}" 
     63                  arg2="yes" /> 
     64          <then> 
     65            <copy toDir="${org.bedework.ear.dir}"> 
     66              <fileset dir="${dist.home}" 
     67                       includes="*.war" /> 
     68            </copy> 
     69          </then> 
     70          <else> 
     71            <copy toDir="${org.bedework.ear.dir}"> 
     72              <fileset dir="${org.bedework.temp.wars.home}"/> 
     73            </copy> 
     74          </else> 
     75        </if> 
    6476 
    65         <zip destfile="${app.ear.file}" 
    66              basedir="${ear.dir}"/> 
     77        <if> 
     78          <equals arg1="${org.bedework.global.ear.zipped}" 
     79                  arg2="yes" /> 
     80          <then> 
     81             <zip destfile="${org.bedework.ear.file}" 
     82                 basedir="${org.bedework.ear.dir}"/> 
     83          </then> 
     84        </if> 
    6785 
    6886        <!-- copy the ear - at the moment copy the uncompressed. --> 
     
    7492            <mkdir dir="${org.bedework.appserver.deploy.dir}/${app.ear.file.name}" /> 
    7593            <copy todir="${org.bedework.appserver.deploy.dir}/${app.ear.file.name}"> 
    76               <fileset dir="${ear.dir}"/> 
     94              <fileset dir="${org.bedework.ear.dir}"/> 
    7795            </copy> 
    7896          </then> 
  • trunk/deployutil/src/org/bedework/deployment/ApplicationXmlTask.java

    r1869 r1991  
    175175          contextRoot = contextProps.getProperty(warName + ".context"); 
    176176 
     177          if (contextRoot == null) { 
     178            throw new BuildException("No context root defined for " + warName); 
     179          } 
     180 
    177181          if (contextRoot.length() == 0) { 
    178182            contextRoot = "/"; 
     
    200204      wtr.close(); 
    201205    } catch (BuildException be) { 
     206      be.printStackTrace(); 
    202207      throw be; 
    203208    } catch (Throwable t) { 
     209      t.printStackTrace(); 
    204210      throw new BuildException(t); 
    205211    }