configurationengine/build.xml
author terytkon
Sat, 06 Nov 2010 16:59:14 +0200
changeset 9 63964d875993
parent 5 d2c80f5cab53
permissions -rw-r--r--
Merge changes to system model generator to SF tip.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
     1
<!--****************************************************************************
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
     2
 * Configuration Engine (ConE) main build file
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
     3
 * This ant build.xml will build, install and test ConE and its plugins
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
     4
 ****************************************************************************-->
4
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
     5
<project name="ConE"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
     6
         default="install">
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
     7
  <property file="common.properties" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
     8
  <property file="linux.properties" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
     9
  <property file="windows.properties" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    10
  <property environment="env" />
5
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents: 4
diff changeset
    11
  <property name="cone.src.dir" value="source/cone"/>
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents: 4
diff changeset
    12
  <property name="cone.src.dir_abs" location="${cone.src.dir}"/>
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents: 4
diff changeset
    13
4
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    14
  <!--
0
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    15
    Build properties, intended to be overridden from the command line
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    16
    where necessary.
4
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    17
        
0
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    18
    E.g. ant install -Dbuild.build_path=C:/my/install/path -Dbuild.plugin_package=symbian
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    19
    -->
4
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    20
  <property name="drive"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    21
            value="" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    22
  <condition property="build.base_path"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    23
             value="${drive}/build"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    24
             else="build">
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    25
    <and>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    26
      <not>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    27
        <equals arg1="${drive}"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    28
                arg2="" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    29
      </not>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    30
      <not>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    31
        <os name="${os.linux.name}" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    32
      </not>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    33
    </and>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    34
  </condition>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    35
  <condition property="build_scripts_dir"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    36
             value="${drive}/${common.build_scripts_dir}"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    37
             else="${common.build_scripts_dir}">
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    38
    <and>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    39
      <not>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    40
        <equals arg1="${drive}"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    41
                arg2="" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    42
      </not>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    43
      <not>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    44
        <os name="${os.linux.name}" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    45
      </not>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    46
    </and>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    47
  </condition>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    48
  <property name="build.plugin_package"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    49
            value="common" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    50
  <!-- <property name="build.base_path" value="build"/> -->
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    51
  <property name="build.cone_install_path"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    52
            value="${build.base_path}/cone" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    53
  <property name="build.bat_export_path"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    54
            value="${build.base_path}/bat" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    55
  <property name="build.cone_pack_path"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    56
            value="${build.base_path}/dist" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    57
  <property name="build.bat_pack_path"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    58
            value="${build.base_path}/dist" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    59
  <property name="build.cone_install_path_abs"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    60
            location="${build.cone_install_path}" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    61
  <property name="build.bat_export_path_abs"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    62
            location="${build.bat_export_path}" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    63
  <property name="build.cone_pack_path_abs"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    64
            location="${build.cone_pack_path}" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    65
  <property name="build.bat_pack_path_abs"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    66
            location="${build.bat_pack_path}" />
5
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents: 4
diff changeset
    67
4
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    68
  <!--
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    69
    <property name="os.linux.name" value="Linux" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    70
    <property name="os.windows" value="Windows 2003, Windows XP, Windows vista" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    71
    -->
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    72
  <property name="pythonversion"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    73
            value="" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    74
  <condition property="os_is_linux">
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    75
    <os name="${os.linux.name}" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    76
  </condition>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    77
  <condition property="pythonversion_defined">
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    78
    <not>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    79
      <equals arg1="${pythonversion}"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    80
              arg2="" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    81
    </not>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    82
  </condition>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    83
  <condition property="drive_defined">
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    84
    <not>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    85
      <equals arg1="${drive}"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    86
              arg2="" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    87
    </not>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    88
  </condition>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    89
  <!-- Set properties based on OS -->
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    90
  <condition property="cmd_name"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    91
             value="${os.linux.cmdname}"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    92
             else="${os.windows.cmdname}">
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    93
    <os name="${os.linux.name}" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    94
  </condition>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    95
  <condition property="cmd_switch"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    96
             value="${os.linux.cmdswitch}"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    97
             else="${os.windows.cmdswitch}">
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    98
    <os name="${os.linux.name}" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
    99
  </condition>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   100
  <condition property="env_path"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   101
             value="${env.PATH}"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   102
             else="${env.Path}">
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   103
    <os name="${os.linux.name}" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   104
  </condition>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   105
  <!-- Set properties based on cmd line arguments -->
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   106
  <condition property="full_path_linux"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   107
             value="${os.linux.userbin}:${env_path}"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   108
             else="${env_path}">
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   109
    <not>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   110
      <equals arg1="${pythonversion}"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   111
              arg2="" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   112
    </not>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   113
  </condition>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   114
  <condition property="full_path_windows"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   115
             value="${os.windows.pythonlocationbase}${pythonversion};${os.windows.pythonlocationbase}${pythonversion}/Scripts;${env_path}"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   116
             else="${env_path}">
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   117
    <not>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   118
      <equals arg1="${pythonversion}"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   119
              arg2="" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   120
    </not>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   121
  </condition>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   122
  <condition property="full_path"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   123
             value="${full_path_linux}"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   124
             else="${full_path_windows}">
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   125
    <os name="${os.linux.name}" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   126
  </condition>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   127
  <condition property="create_symlink">
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   128
    <and>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   129
      <os name="${os.linux.name}" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   130
      <not>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   131
        <equals arg1="${pythonversion}"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   132
                arg2="" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   133
      </not>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   134
    </and>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   135
  </condition>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   136
  <!-- Targets -->
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   137
  <target name="info">
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   138
    <echoproperties />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   139
  </target>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   140
  <!-- Aliases -->
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   141
  <target name="install"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   142
          depends="install-cone" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   143
  <target name="develop"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   144
          depends="develop-cone" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   145
  <target name="test"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   146
          depends="run-bat" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   147
  <target name="doc"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   148
          depends="doc-all" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   149
  <target name="clean">
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   150
    <delete dir="${build.cone_install_path_abs}" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   151
    <delete dir="${build.bat_export_path_abs}" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   152
    <delete dir="${build.cone_pack_path_abs}" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   153
    <delete dir="${build.bat_pack_path_abs}" />
5
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents: 4
diff changeset
   154
4
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   155
  </target>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   156
  <target name="svnversion">
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   157
    <!--
0
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   158
        Call the revision update script without the revision argument
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   159
        so that the revision is reverted back to "" (this should make
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   160
        it so that the working copy has no modifications and the
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   161
        revision will be e.g. "1234" instead of "1234M".
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   162
        -->
4
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   163
    <echo>Revert SVN revision in source/cone/__init__.py</echo>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   164
    <exec executable="python">
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   165
      <arg value="update_svn_revision.py" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   166
      <arg value="source/cone/__init__.py" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   167
    </exec>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   168
    <echo>Determine current working copy revision</echo>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   169
    <exec executable="svnversion"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   170
          failifexecutionfails="false">
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   171
      <redirector outputproperty="svn.version" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   172
    </exec>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   173
    <echo>SVN revision: ${svn.version}</echo>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   174
  </target>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   175
  <target name="svninitupdate"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   176
          depends="svnversion">
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   177
    <echo>Update SVN revision in __init__.py</echo>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   178
    <exec executable="python">
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   179
      <arg value="update_svn_revision.py" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   180
      <arg value="source/cone/__init__.py" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   181
      <arg value="${svn.version}" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   182
    </exec>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   183
  </target>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   184
  <target name="_mount-drive"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   185
          unless="os_is_linux"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   186
          if="drive_defined">
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   187
    <echo message="Mounting drive ${drive} on Windows" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   188
    <exec executable="cmd">
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   189
      <arg value="/c" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   190
      <arg value="subst /D ${drive}" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   191
    </exec>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   192
    <exec executable="cmd">
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   193
      <arg value="/c" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   194
      <arg value="subst ${drive} ." />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   195
    </exec>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   196
  </target>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   197
  <target name="install-cone"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   198
          depends="svninitupdate">
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   199
    <!--
0
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   200
        <echo>$${build.cone_install_path}:     ${build.cone_install_path}</echo>
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   201
        <echo>$${build.cone_install_path_abs}: ${build.cone_install_path_abs}</echo>
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   202
        -->
4
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   203
    <!-- Linux: set the correct python version -->
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   204
    <antcall target="_create-python-version-symlink" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   205
    <!-- Windows: mount drive -->
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   206
    <antcall target="_mount-drive" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   207
    <echo message="OS: ${os.name}" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   208
    <echo message="Python version:" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   209
    <exec executable="${cmd_name}">
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   210
      <env key="PATH"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   211
           path="${full_path}" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   212
      <arg value="${cmd_switch}" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   213
      <arg value="python --version" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   214
    </exec>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   215
    <!-- Run the install script in build-scripts/ -->
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   216
    <echo message="Run ConE install script" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   217
    <exec executable="${cmd_name}"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   218
          dir="${build_scripts_dir}"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   219
          failonerror="true">
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   220
      <env key="PATH"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   221
           value="${full_path}" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   222
      <arg value="${cmd_switch}" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   223
      <arg value='python install_cone.py --target-dir=&quot;${build.cone_install_path_abs}&quot; --plugin-package=&quot;${build.plugin_package}&quot;' />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   224
    </exec>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   225
    <!-- Revert the SVN revision so that it doesn't mark the working copy as modified needlessly -->
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   226
    <echo>Revert SVN revision in source/cone/__init__.py</echo>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   227
    <exec executable="python">
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   228
      <arg value="update_svn_revision.py" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   229
      <arg value="source/cone/__init__.py" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   230
    </exec>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   231
    <echo message="Done" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   232
  </target>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   233
  <target name="build-cone"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   234
          depends="svninitupdate">
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   235
    <!-- Linux: set the correct python version -->
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   236
    <antcall target="_create-python-version-symlink" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   237
    <!-- Windows: mount drive -->
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   238
    <antcall target="_mount-drive" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   239
    <echo message="OS: ${os.name}" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   240
    <echo message="Python version:" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   241
    <exec executable="${cmd_name}">
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   242
      <env key="PATH"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   243
           path="${full_path}" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   244
      <arg value="${cmd_switch}" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   245
      <arg value="python --version" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   246
    </exec>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   247
    <!-- Run the install script in build-scripts/ -->
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   248
    <echo message="Run ConE install script" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   249
    <exec executable="${cmd_name}"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   250
          dir="${build_scripts_dir}"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   251
          failonerror="true">
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   252
      <env key="PATH"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   253
           value="${full_path}" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   254
      <arg value="${cmd_switch}" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   255
      <arg value='python install_cone.py -i build --target-dir=&quot;${build.cone_install_path_abs}&quot; --plugin-package=&quot;${build.plugin_package}&quot;' />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   256
    </exec>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   257
    <!-- Revert the SVN revision so that it doesn't mark the working copy as modified needlessly -->
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   258
    <echo>Revert SVN revision in source/cone/__init__.py</echo>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   259
    <exec executable="python">
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   260
      <arg value="update_svn_revision.py" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   261
      <arg value="source/cone/__init__.py" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   262
    </exec>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   263
    <echo message="Done" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   264
  </target>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   265
  <!--
3
e7e0ae78773e ConE 1.2.11 release
m2lahtel
parents: 0
diff changeset
   266
    Internal target for installing ConE on Windows so that it supports
e7e0ae78773e ConE 1.2.11 release
m2lahtel
parents: 0
diff changeset
   267
    two Python versions.
0
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   268
    
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   269
    Depends on two properties: build.dualversioninstall.path1 and
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   270
    build.dualversioninstall.path2 that must be set to the values of the PATH
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   271
    environment that contains the locations of the two Python installations.
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   272
    -->
4
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   273
  <target name="_install-cone-dualversion-win"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   274
          depends="svninitupdate"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   275
          unless="os_is_linux">
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   276
    <!-- Run the install script using the first Python version-->
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   277
    <echo>Installing with first Python version (PATH=${build.dualversioninstall.path1})</echo>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   278
    <exec executable="python"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   279
          dir="${build_scripts_dir}"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   280
          failonerror="true">
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   281
      <env key="PATH"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   282
           value="${build.dualversioninstall.path1}" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   283
      <arg line='install_cone.py --target-dir=&quot;${build.cone_install_path_abs}&quot; --plugin-package=&quot;${build.plugin_package}&quot;' />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   284
    </exec>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   285
    <!-- Run the install script using the second Python version-->
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   286
    <echo>Installing with second Python version (PATH=${build.dualversioninstall.path2})</echo>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   287
    <exec executable="python"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   288
          dir="${build_scripts_dir}"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   289
          failonerror="true">
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   290
      <env key="PATH"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   291
           value="${build.dualversioninstall.path2}" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   292
      <arg line='install_cone.py --target-dir=&quot;${build.cone_install_path_abs}&quot; --plugin-package=&quot;${build.plugin_package}&quot;' />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   293
    </exec>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   294
    <!-- Revert the SVN revision so that it doesn't mark the working copy as modified needlessly -->
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   295
    <echo>Revert SVN revision in source/cone/__init__.py</echo>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   296
    <exec executable="python">
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   297
      <arg value="update_svn_revision.py" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   298
      <arg value="source/cone/__init__.py" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   299
    </exec>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   300
  </target>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   301
  <!--
3
e7e0ae78773e ConE 1.2.11 release
m2lahtel
parents: 0
diff changeset
   302
    Internal target for installing ConE on Linux so that it supports
e7e0ae78773e ConE 1.2.11 release
m2lahtel
parents: 0
diff changeset
   303
    two Python versions.
e7e0ae78773e ConE 1.2.11 release
m2lahtel
parents: 0
diff changeset
   304
    
e7e0ae78773e ConE 1.2.11 release
m2lahtel
parents: 0
diff changeset
   305
    Depends on two properties: build.dualversioninstall.executable1 and
e7e0ae78773e ConE 1.2.11 release
m2lahtel
parents: 0
diff changeset
   306
    build.dualversioninstall.executable1 that must be set to the Python
e7e0ae78773e ConE 1.2.11 release
m2lahtel
parents: 0
diff changeset
   307
    executables to run the installation (e.g. python2.5 and python2.6)
e7e0ae78773e ConE 1.2.11 release
m2lahtel
parents: 0
diff changeset
   308
    -->
4
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   309
  <target name="_install-cone-dualversion-linux"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   310
          depends="svninitupdate"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   311
          if="os_is_linux">
5
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents: 4
diff changeset
   312
    <echo>Adding execution rights to source/cone</echo>
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents: 4
diff changeset
   313
    <chmod dir="source" file="cone" perm="ugo+rx"/>
4
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   314
    <echo>Installing with first Python version (executable=${build.dualversioninstall.executable1})</echo>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   315
    <exec executable="python"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   316
          dir="${build_scripts_dir}"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   317
          failonerror="true">
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   318
      <arg line='install_cone.py --target-dir=&quot;${build.cone_install_path_abs}&quot; --plugin-package=&quot;${build.plugin_package}&quot; --python-executable=&quot;${build.dualversioninstall.executable1}&quot;' />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   319
    </exec>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   320
    <echo>Installing with second Python version (executable=${build.dualversioninstall.executable2})</echo>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   321
    <exec executable="python"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   322
          dir="${build_scripts_dir}"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   323
          failonerror="true">
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   324
      <arg line='install_cone.py --target-dir=&quot;${build.cone_install_path_abs}&quot; --plugin-package=&quot;${build.plugin_package}&quot; --python-executable=&quot;${build.dualversioninstall.executable2}&quot;' />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   325
    </exec>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   326
    <!-- Revert the SVN revision so that it doesn't mark the working copy as modified needlessly -->
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   327
    <echo>Revert SVN revision in source/cone/__init__.py</echo>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   328
    <exec executable="python">
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   329
      <arg value="update_svn_revision.py" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   330
      <arg value="source/cone/__init__.py" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   331
    </exec>
5
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents: 4
diff changeset
   332
4
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   333
  </target>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   334
  <target name="install-cone-dualversion"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   335
          depends="_install-cone-dualversion-win,_install-cone-dualversion-linux" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   336
  <target name="develop-cone">
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   337
    <!-- Run the install script in build-scripts/ -->
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   338
    <exec executable="python"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   339
          dir="${build_scripts_dir}"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   340
          failonerror="true">
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   341
      <arg line='install_cone.py --target-dir=&quot;${build.cone_install_path_abs}&quot; --plugin-package=&quot;${build.plugin_package}&quot; --install-type develop' />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   342
    </exec>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   343
  </target>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   344
  <!--
0
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   345
    Internal pack target for packing the ConE installation.
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   346
    The actual dependencies to cone-install and cone-install-dualversion are
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   347
    specified in the actual targets below.
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   348
    -->
5
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents: 4
diff changeset
   349
  <target name="_pack" depends="_pack_linux,_pack_windows"/>
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents: 4
diff changeset
   350
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents: 4
diff changeset
   351
  <target name="_pack_linux" if="os_is_linux">
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents: 4
diff changeset
   352
    <!--
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents: 4
diff changeset
   353
        <echo>$${build.cone_pack_path}:     ${build.cone_pack_path}</echo>
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents: 4
diff changeset
   354
        <echo>$${build.cone_pack_path_abs}: ${build.cone_pack_path_abs}</echo>
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents: 4
diff changeset
   355
        -->
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents: 4
diff changeset
   356
    <echo message="Creating zip file" />
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents: 4
diff changeset
   357
    <mkdir dir="${build.cone_pack_path_abs}" />
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents: 4
diff changeset
   358
    <tstamp>
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents: 4
diff changeset
   359
      <format property="lastbuild"
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents: 4
diff changeset
   360
              pattern="yyyyMMddHHmmss" />
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents: 4
diff changeset
   361
    </tstamp>
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents: 4
diff changeset
   362
    <zip destfile="${build.cone_pack_path_abs}/ConE-${common.version}-${build.plugin_package}-${lastbuild}-${svn.version}.zip">
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents: 4
diff changeset
   363
      <fileset dir="${build.cone_install_path_abs}" />
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents: 4
diff changeset
   364
    </zip>
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents: 4
diff changeset
   365
    <exec executable="zip"
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents: 4
diff changeset
   366
          dir="${build.cone_pack_path_abs}">
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents: 4
diff changeset
   367
      <arg value="-j" />
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents: 4
diff changeset
   368
      <arg value="ConE-${common.version}-${build.plugin_package}-${lastbuild}-${svn.version}.zip" />
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents: 4
diff changeset
   369
      <arg value="${build.cone_install_path_abs}/cone" />
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents: 4
diff changeset
   370
    </exec>
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents: 4
diff changeset
   371
  </target>	
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents: 4
diff changeset
   372
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents: 4
diff changeset
   373
  <target name="_pack_windows" unless="os_is_linux">
4
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   374
    <!--
0
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   375
        <echo>$${build.cone_pack_path}:     ${build.cone_pack_path}</echo>
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   376
        <echo>$${build.cone_pack_path_abs}: ${build.cone_pack_path_abs}</echo>
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   377
        -->
4
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   378
    <echo message="Creating zip file" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   379
    <mkdir dir="${build.cone_pack_path_abs}" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   380
    <tstamp>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   381
      <format property="lastbuild"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   382
              pattern="yyyyMMddHHmmss" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   383
    </tstamp>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   384
    <zip destfile="${build.cone_pack_path_abs}/ConE-${common.version}-${build.plugin_package}-${lastbuild}-${svn.version}.zip">
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   385
      <fileset dir="${build.cone_install_path_abs}" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   386
    </zip>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   387
  </target>
5
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents: 4
diff changeset
   388
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents: 4
diff changeset
   389
<!-- Actual pack targets -->
4
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   390
  <target name="pack"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   391
          depends="install-cone">
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   392
    <antcall target="_pack" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   393
  </target>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   394
  <target name="pack-dualversion"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   395
          depends="install-cone-dualversion">
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   396
    <antcall target="_pack" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   397
  </target>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   398
  <target name="export-bat">
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   399
    <!-- Linux: set the correct python version -->
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   400
    <antcall target="_create-python-version-symlink" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   401
    <!-- Run the export script in build-scripts/ -->
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   402
    <exec executable="${cmd_name}"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   403
          dir="${build_scripts_dir}"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   404
          failonerror="true">
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   405
      <env key="PATH"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   406
           value="${full_path}" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   407
      <arg value="${cmd_switch}" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   408
      <arg value='python export_bat.py --target-dir=&quot;${build.bat_export_path_abs}&quot; --plugin-package=&quot;${build.plugin_package}&quot;' />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   409
    </exec>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   410
  </target>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   411
  <target name="pack-bat"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   412
          depends="export-bat">
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   413
    <echo message="Creating zip file" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   414
    <mkdir dir="${build.bat_pack_path_abs}" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   415
    <zip destfile="${build.bat_pack_path_abs}/ConE-BAT-${build.plugin_package}.zip">
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   416
      <fileset dir="${build.bat_export_path_abs}" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   417
    </zip>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   418
  </target>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   419
  <!-- Linux: Create a symbolic link to the Python version used -->
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   420
  <target name="_create-python-version-symlink"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   421
          if="create_symlink">
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   422
    <echo message="Change Python version on Linux" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   423
    <echo message="Deleting old symlink" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   424
    <delete file="${os.linux.userbin}/python" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   425
    <echo message="ln -s -f /usr/bin/${pythonversion} ${os.linux.userbin}/python" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   426
    <exec executable="ln">
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   427
      <arg value="-s" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   428
      <arg value="-f" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   429
      <arg value="/usr/bin/${pythonversion}" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   430
      <arg value="${os.linux.userbin}/python" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   431
    </exec>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   432
  </target>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   433
  <target name="run-bat"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   434
          depends="install-cone, export-bat">
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   435
    <echo message="Running BAT tests..." />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   436
    <echo message="Moving ConE installation under BAT..." />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   437
    <move todir="${build.bat_export_path_abs}/cone">
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   438
      <fileset dir="${build.cone_install_path_abs}" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   439
    </move>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   440
    <exec executable="${cmd_name}"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   441
          dir="${build.bat_export_path_abs}">
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   442
      <env key="PATH"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   443
           path="${full_path}" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   444
      <arg value="${cmd_switch}" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   445
      <arg value="python runtests.py --with-nose" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   446
    </exec>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   447
  </target>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   448
  <target name="run-all-tests"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   449
          depends="build-cone">
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   450
    <echo message="Run all tests" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   451
    <echo message="OS: ${os.name}" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   452
    <!-- Linux: Set the correct Python version -->
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   453
    <antcall target="_create-python-version-symlink" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   454
    <echo message="Python version:" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   455
    <exec executable="${cmd_name}"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   456
          dir="./source">
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   457
      <env key="PATH"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   458
           path="${full_path}" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   459
      <arg value="${cmd_switch}" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   460
      <arg value="python --version" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   461
    </exec>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   462
    <echo message="Run tests" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   463
    <exec executable="${cmd_name}"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   464
          dir="./source">
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   465
      <env key="PATH"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   466
           path="${full_path}" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   467
      <env key="PYTHONPATH"
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   468
           path="${cone_python_path}" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   469
      <arg value="${cmd_switch}" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   470
      <arg value="python runtests.py" />
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   471
    </exec>
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   472
  </target>
5
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents: 4
diff changeset
   473
    <target name="zip-src" depends="svnversion, clean">
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents: 4
diff changeset
   474
            
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents: 4
diff changeset
   475
            <mkdir dir="${build.cone_pack_path_abs}"/>
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents: 4
diff changeset
   476
            
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents: 4
diff changeset
   477
            <tstamp>
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents: 4
diff changeset
   478
                <format property="lastbuild" pattern="yyyyMMdd-HHmmss" />
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents: 4
diff changeset
   479
            </tstamp>
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents: 4
diff changeset
   480
            <property name="zip_abs" location="${build.cone_pack_path_abs}/cone-src-${common.version}-${lastbuild}-r${svn.version}.zip" />
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents: 4
diff changeset
   481
            
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents: 4
diff changeset
   482
            <zip destfile="${zip_abs}">
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents: 4
diff changeset
   483
                <zipfileset dir="${cone.src.dir_abs}">
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents: 4
diff changeset
   484
                    <exclude name="**/tests/**"/>
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents: 4
diff changeset
   485
                    <exclude name="**/*.pyc"/>
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents: 4
diff changeset
   486
                	<exclude name="**/runtests.py"/>
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents: 4
diff changeset
   487
                	<exclude name="test.xml"/>
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents: 4
diff changeset
   488
                	<exclude name="nose_unittests.cfg"/>
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents: 4
diff changeset
   489
                	<exclude name="all.doxygen"/>
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents: 4
diff changeset
   490
                	
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents: 4
diff changeset
   491
                </zipfileset>
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents: 4
diff changeset
   492
                <zipfileset file="RELEASE.TXT"/>
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents: 4
diff changeset
   493
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents: 4
diff changeset
   494
            </zip>
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents: 4
diff changeset
   495
            
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents: 4
diff changeset
   496
            <echo>Zip package located at ${zip_abs}.</echo>
d2c80f5cab53 Updated to version 1.2.14
m2lahtel
parents: 4
diff changeset
   497
        </target>
4
0951727b8815 Updated to 1.2.13 release
m2lahtel
parents: 3
diff changeset
   498
  <import file="generatedoc-build.xml" />
0
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   499
</project>