Changeset 20600


Ignore:
Timestamp:
2009-09-14T13:26:29+12:00 (15 years ago)
Author:
oranfry
Message:

moved all instructions within targets in init.xml, so it can be 'imported' without anything being executed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • release-kits/shared/core/ant-scripts/init.xml

    r20543 r20600  
    22<project name="rk-init">
    33
    4     <!-- load in static properties from build.properties -->
    5     <property file="${rk.name}-build.properties" />
    6 
    7     <!-- CONSTANTS (overridable in build.properties) -->
    8 
    9     <!-- svn root -->
    10     <property name="svn.root" value="http://svn.greenstone.org" />
    11 
    12     <!-- default revision and branch path -->
    13     <property name="branch.path" value="trunk" />
    14     <property name="branch.revision" value="HEAD" />
     4    <!-- CHECK PRE-CONDITIONS  -->
     5    <target name="init">
     6
     7        <!-- load in static properties from build.properties -->
     8        <property file="${rk.name}-build.properties" />
     9
     10        <!-- CONSTANTS (overridable in build.properties) -->
     11
     12        <!-- svn root -->
     13        <property name="svn.root" value="http://svn.greenstone.org" />
     14
     15        <!-- default revision and branch path -->
     16        <property name="branch.path" value="trunk" />
     17        <property name="branch.revision" value="HEAD" />
    1518   
    16     <!-- the minimum version of java which the installer should be run with (this gets used in search4j) -->
    17     <property name="java.min.version" value="1.4.0_00"/>
    18 
    19     <!-- create a localised basedir property -->
    20     <path id="basedir.path"><pathelement location="${basedir}"/></path>
    21     <property name="basedir.local" refid="basedir.path"/>
    22 
    23     <!-- current date and time -->
    24     <tstamp>
    25         <format property="current.month" pattern="MMM"/>
    26         <format property="current.year" pattern="yyyy"/>
    27         <format property="date" pattern="yyyy.MM.dd"/>
    28     </tstamp>
    29 
    30     <!-- BUNDLED JAVA INFO -->
    31     <!-- the bundled javas are kept in shared/linux/wrapper and shared/windows/wrapper in the repository -->
    32     <!-- change this info when the bundled version changes -->
    33     <!-- linux -->
    34     <property name="linux-java.installer" value="jre_bin"/>
    35     <property name="bundled.version.linux-java" value="1.6.0_05"/> <!-- set this to the version number of java in the above archive -->
    36     <property name="linux-java.extracted" value="jre"/> <!-- set this to the name of the top level directory in the above archive -->
    37     <property name="component.bytesize.linux-java" value="101245987"/> <!-- set this to the size of the extract archive -->
    38 
    39     <!-- windows -->
    40     <property name="windows-java.installer" value="jre.exe"/>
    41     <property name="bundled.version.windows-java" value="1.6.0_07"/> <!-- set this to the version number of java in the above archive -->
    42     <property name="windows-java.extracted" value="jre"/> <!-- set this to the name of the top level directory in the above archive -->
    43     <property name="component.bytesize.windows-java" value="75000000"/> <!-- set this to the size of the extract archive -->
    44 
    45     <!-- version numbers of other bundled things -->
    46     <property name="bundled.version.imagemagick" value="6.4.3"/>
    47     <property name="bundled.version.ghostscript" value="8.63"/>
    48     <property name="bundled.version.tomcat" value="6.0.20"/>
     19        <!-- the minimum version of java which the installer should be run with (this gets used in search4j) -->
     20        <property name="java.min.version" value="1.4.0_00"/>
     21
     22        <!-- create a localised basedir property -->
     23        <path id="basedir.path"><pathelement location="${basedir}"/></path>
     24        <property name="basedir.local" refid="basedir.path"/>
     25
     26        <!-- current date and time -->
     27        <tstamp>
     28            <format property="current.month" pattern="MMM"/>
     29            <format property="current.year" pattern="yyyy"/>
     30            <format property="date" pattern="yyyy.MM.dd"/>
     31        </tstamp>
     32
     33        <!-- BUNDLED JAVA INFO -->
     34        <!-- the bundled javas are kept in shared/linux/wrapper and shared/windows/wrapper in the repository -->
     35        <!-- change this info when the bundled version changes -->
     36        <!-- linux -->
     37        <property name="linux-java.installer" value="jre_bin"/>
     38        <property name="bundled.version.linux-java" value="1.6.0_05"/> <!-- set this to the version number of java in the above archive -->
     39        <property name="linux-java.extracted" value="jre"/> <!-- set this to the name of the top level directory in the above archive -->
     40        <property name="component.bytesize.linux-java" value="101245987"/> <!-- set this to the size of the extract archive -->
     41
     42        <!-- windows -->
     43        <property name="windows-java.installer" value="jre.exe"/>
     44        <property name="bundled.version.windows-java" value="1.6.0_07"/> <!-- set this to the version number of java in the above archive -->
     45        <property name="windows-java.extracted" value="jre"/> <!-- set this to the name of the top level directory in the above archive -->
     46        <property name="component.bytesize.windows-java" value="75000000"/> <!-- set this to the size of the extract archive -->
     47
     48        <!-- version numbers of other bundled things -->
     49        <property name="bundled.version.imagemagick" value="6.4.3"/>
     50        <property name="bundled.version.ghostscript" value="8.63"/>
     51        <property name="bundled.version.tomcat" value="6.0.20"/>
    4952   
    50     <!-- CLASSPATH -->
    51     <path id="project.classpath">
    52 
    53         <!-- our classes -->
    54         <fileset dir="${rk.home}/core">
    55             <include name="ant-tasks/antelope/AntelopeTasks_3.4.2.jar"/>
    56             <include name="ant-tasks/orangevolt/roxes-win32forjava-1.1.1.jar"/>
    57             <include name="ant-tasks/orangevolt/orangevolt-ant-tasks-1.3.8.jar"/>
    58             <include name="ant-tasks/svnant/lib/ganymed.jar"/>
    59             <include name="ant-tasks/svnant/lib/svnClientAdapter.jar"/>
    60             <include name="ant-tasks/svnant/lib/svnant.jar"/>
    61             <include name="ant-tasks/svnant/lib/svnjavahl.jar"/>
    62             <include name="ant-tasks/svnant/lib/svnkit.jar"/>
    63             <include name="ant-tasks/greenstone/anttasks.jar"/>
    64             <include name="ant-tasks/7z-ant/7z.jar"/>
    65             <include name="lib/crypt.jar"/>
    66             <include name="lib/serializer.jar"/>
    67             <include name="lib/xalan.jar"/>
    68             <include name="lib/xercesImpl.jar"/>
    69             <include name="lib/xml-apis.jar"/>
    70             <include name="ant-installer/lib/ant-installer-ext.jar"/>
    71             <include name="ant-installer/lib/ant-installer.jar"/>
    72         </fileset>
    73 
    74     </path>
    75 
    76     <!-- SELF DEFINED TASKS AND TYPES -->
    77     <taskdef name="if" classname="ise.antelope.tasks.IfTask" classpathref="project.classpath"/>
    78     <taskdef name="try" classname="ise.antelope.tasks.TryTask" classpathref="project.classpath"/>
    79     <taskdef name="math" classname="ise.antelope.tasks.MathTask" classpathref="project.classpath"/>
    80     <taskdef name="svn" classname="org.tigris.subversion.svnant.SvnTask" classpathref="project.classpath"/>
    81     <taskdef name="sevenzip" classname="org.apache.tools.ant.SevenZip" classpathref="project.classpath"/>
    82     <taskdef name="installer" classname="org.tp23.antinstaller.taskdefs.Installer" classpathref="project.classpath"/>
    83     <typedef name="rsr" classname="org.greenstone.anttasks.RegexSearchReplace" classpathref="project.classpath"/>
    84     <typedef name="dcff" classname="org.greenstone.anttasks.DeleteChunkFromFile" classpathref="project.classpath"/>
    85     <typedef name="rsplit" classname="org.greenstone.anttasks.SplitResource" classpathref="project.classpath"/>
    86     <typedef name="get-property-value" classname="org.greenstone.anttasks.GetPropertyValue" classpathref="project.classpath"/>
     53        <!-- CLASSPATH -->
     54        <path id="project.classpath">
     55
     56            <!-- our classes -->
     57            <fileset dir="${rk.home}/core">
     58                <include name="ant-tasks/antelope/AntelopeTasks_3.4.2.jar"/>
     59                <include name="ant-tasks/orangevolt/roxes-win32forjava-1.1.1.jar"/>
     60                <include name="ant-tasks/orangevolt/orangevolt-ant-tasks-1.3.8.jar"/>
     61                <include name="ant-tasks/svnant/lib/ganymed.jar"/>
     62                <include name="ant-tasks/svnant/lib/svnClientAdapter.jar"/>
     63                <include name="ant-tasks/svnant/lib/svnant.jar"/>
     64                <include name="ant-tasks/svnant/lib/svnjavahl.jar"/>
     65                <include name="ant-tasks/svnant/lib/svnkit.jar"/>
     66                <include name="ant-tasks/greenstone/anttasks.jar"/>
     67                <include name="ant-tasks/7z-ant/7z.jar"/>
     68                <include name="lib/crypt.jar"/>
     69                <include name="lib/serializer.jar"/>
     70                <include name="lib/xalan.jar"/>
     71                <include name="lib/xercesImpl.jar"/>
     72                <include name="lib/xml-apis.jar"/>
     73                <include name="ant-installer/lib/ant-installer-ext.jar"/>
     74                <include name="ant-installer/lib/ant-installer.jar"/>
     75            </fileset>
     76
     77        </path>
     78
     79        <!-- SELF DEFINED TASKS AND TYPES -->
     80        <taskdef name="if" classname="ise.antelope.tasks.IfTask" classpathref="project.classpath"/>
     81        <taskdef name="try" classname="ise.antelope.tasks.TryTask" classpathref="project.classpath"/>
     82        <taskdef name="math" classname="ise.antelope.tasks.MathTask" classpathref="project.classpath"/>
     83        <taskdef name="svn" classname="org.tigris.subversion.svnant.SvnTask" classpathref="project.classpath"/>
     84        <taskdef name="sevenzip" classname="org.apache.tools.ant.SevenZip" classpathref="project.classpath"/>
     85        <taskdef name="installer" classname="org.tp23.antinstaller.taskdefs.Installer" classpathref="project.classpath"/>
     86        <typedef name="rsr" classname="org.greenstone.anttasks.RegexSearchReplace" classpathref="project.classpath"/>
     87        <typedef name="dcff" classname="org.greenstone.anttasks.DeleteChunkFromFile" classpathref="project.classpath"/>
     88        <typedef name="rsplit" classname="org.greenstone.anttasks.SplitResource" classpathref="project.classpath"/>
     89        <typedef name="get-property-value" classname="org.greenstone.anttasks.GetPropertyValue" classpathref="project.classpath"/>
    8790   
    88     <!-- DATES IN DIFFERENT LANGUAGES -->
    89     <get-property-value propertiesFile="${rk.home}/core/lib/dates.properties" propertyName="ar.Dates.${current.month}" outputProperty="month.ar"/>
    90     <get-property-value propertiesFile="${rk.home}/core/lib/dates.properties" propertyName="ca.Dates.${current.month}" outputProperty="month.ca"/>
    91     <get-property-value propertiesFile="${rk.home}/core/lib/dates.properties" propertyName="el.Dates.${current.month}" outputProperty="month.el"/>
    92     <get-property-value propertiesFile="${rk.home}/core/lib/dates.properties" propertyName="es.Dates.${current.month}" outputProperty="month.es"/>
    93     <get-property-value propertiesFile="${rk.home}/core/lib/dates.properties" propertyName="fr.Dates.${current.month}" outputProperty="month.fr"/>
    94     <get-property-value propertiesFile="${rk.home}/core/lib/dates.properties" propertyName="lv.Dates.${current.month}" outputProperty="month.lv"/>
    95     <get-property-value propertiesFile="${rk.home}/core/lib/dates.properties" propertyName="mr.Dates.${current.month}" outputProperty="month.mr"/>
    96     <get-property-value propertiesFile="${rk.home}/core/lib/dates.properties" propertyName="ro.Dates.${current.month}" outputProperty="month.ro"/>
    97     <get-property-value propertiesFile="${rk.home}/core/lib/dates.properties" propertyName="ru.Dates.${current.month}" outputProperty="month.ru"/>
    98     <get-property-value propertiesFile="${rk.home}/core/lib/dates.properties" propertyName="vi.Dates.${current.month}" outputProperty="month.vi"/>
    99     <get-property-value propertiesFile="${rk.home}/core/lib/dates.properties" propertyName="zh.Dates.${current.month}" outputProperty="month.zh"/>
    100     <get-property-value propertiesFile="${rk.home}/core/lib/dates.properties" propertyName="default.Dates.${current.month}" outputProperty="month.default"/>
    101 
    102     <!--
    103     <echo level="info">Current Date</echo>
    104     <echo level="info">ar: ${month.ar} ${current.year}</echo>
    105     <echo level="info">ca: ${month.el} ${current.year}</echo>
    106     <echo level="info">el: ${month.el} ${current.year}</echo>
    107     <echo level="info">es: ${month.es} ${current.year}</echo>
    108     <echo level="info">fr: ${month.fr} ${current.year}</echo>
    109     <echo level="info">lv: ${month.lv} ${current.year}</echo>
    110     <echo level="info">mr: ${month.mr} ${current.year}</echo>
    111     <echo level="info">ro: ${month.ro} ${current.year}</echo>
    112     <echo level="info">ru: ${month.ru} ${current.year}</echo>
    113     <echo level="info">vi: ${month.vi} ${current.year}</echo>
    114     <echo level="info">zh: ${month.zh} ${current.year}</echo>
    115     <echo level="info">default: (${month.default} ${current.year})</echo>
    116     -->
    117 
    118     <!-- CHECKS PRE-CONDITIONS  -->
    119     <target name="init">
     91        <!-- DATES IN DIFFERENT LANGUAGES -->
     92        <get-property-value propertiesFile="${rk.home}/core/lib/dates.properties" propertyName="ar.Dates.${current.month}" outputProperty="month.ar"/>
     93        <get-property-value propertiesFile="${rk.home}/core/lib/dates.properties" propertyName="ca.Dates.${current.month}" outputProperty="month.ca"/>
     94        <get-property-value propertiesFile="${rk.home}/core/lib/dates.properties" propertyName="el.Dates.${current.month}" outputProperty="month.el"/>
     95        <get-property-value propertiesFile="${rk.home}/core/lib/dates.properties" propertyName="es.Dates.${current.month}" outputProperty="month.es"/>
     96        <get-property-value propertiesFile="${rk.home}/core/lib/dates.properties" propertyName="fr.Dates.${current.month}" outputProperty="month.fr"/>
     97        <get-property-value propertiesFile="${rk.home}/core/lib/dates.properties" propertyName="lv.Dates.${current.month}" outputProperty="month.lv"/>
     98        <get-property-value propertiesFile="${rk.home}/core/lib/dates.properties" propertyName="mr.Dates.${current.month}" outputProperty="month.mr"/>
     99        <get-property-value propertiesFile="${rk.home}/core/lib/dates.properties" propertyName="ro.Dates.${current.month}" outputProperty="month.ro"/>
     100        <get-property-value propertiesFile="${rk.home}/core/lib/dates.properties" propertyName="ru.Dates.${current.month}" outputProperty="month.ru"/>
     101        <get-property-value propertiesFile="${rk.home}/core/lib/dates.properties" propertyName="vi.Dates.${current.month}" outputProperty="month.vi"/>
     102        <get-property-value propertiesFile="${rk.home}/core/lib/dates.properties" propertyName="zh.Dates.${current.month}" outputProperty="month.zh"/>
     103        <get-property-value propertiesFile="${rk.home}/core/lib/dates.properties" propertyName="default.Dates.${current.month}" outputProperty="month.default"/>
     104        <!--
     105        <echo level="info">Current Date</echo>
     106        <echo level="info">ar: ${month.ar} ${current.year}</echo>
     107        <echo level="info">ca: ${month.el} ${current.year}</echo>
     108        <echo level="info">el: ${month.el} ${current.year}</echo>
     109        <echo level="info">es: ${month.es} ${current.year}</echo>
     110        <echo level="info">fr: ${month.fr} ${current.year}</echo>
     111        <echo level="info">lv: ${month.lv} ${current.year}</echo>
     112        <echo level="info">mr: ${month.mr} ${current.year}</echo>
     113        <echo level="info">ro: ${month.ro} ${current.year}</echo>
     114        <echo level="info">ru: ${month.ru} ${current.year}</echo>
     115        <echo level="info">vi: ${month.vi} ${current.year}</echo>
     116        <echo level="info">zh: ${month.zh} ${current.year}</echo>
     117        <echo level="info">default: (${month.default} ${current.year})</echo>
     118        -->
    120119
    121120        <!-- version number -->
Note: See TracChangeset for help on using the changeset viewer.