DownloadKit/config.xml
author Shabe Razvi <shaber@symbian.org>
Mon, 15 Mar 2010 18:05:35 +0000
changeset 16 d14e8ee6e64a
permissions -rw-r--r--
Add job to allow download of a PDK over the web.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
16
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
     1
<?xml version='1.0' encoding='UTF-8'?>
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
     2
<project>
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
     3
  <actions/>
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
     4
  <description>&lt;img align=&quot;center&quot; src=&quot;http://developer.symbian.org/img/skin1209/header_bg.gif&quot; /&gt;&#xd;
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
     5
&lt;h3&gt;Description&lt;/h3&gt;&#xd;
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
     6
&lt;p&gt;&#xd;
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
     7
This project will download a Symbian Kit based upon the revision provided. It makes use of the &lt;a href=&quot;http://developer.symbian.org/wiki/index.php/How_to_download_a_PDK&quot;&gt;downloadkit.py&lt;/a&gt; tool to download the kit into a target location that you&apos;ve specified.&#xd;
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
     8
&lt;/p&gt; &#xd;
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
     9
&#xd;
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    10
&lt;h3&gt;Prerequisites&lt;/h3&gt;&#xd;
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    11
The following tools must already be installed and in your PATH -&#xd;
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    12
&lt;br&gt;&lt;br&gt;&#xd;
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    13
&lt;li&gt;&lt;a href=&quot;http://www.activestate.com/activepython/downloads/&quot;&gt;Python&lt;/a&gt; 2.63 or later&#xd;
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    14
&lt;li&gt;&lt;a href=&quot;http://mercurial.selenic.com/ Mercurial&quot;&gt;Mercurial&lt;/a&gt;&#xd;
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    15
&lt;li&gt;&lt;a href=&quot;http://www.7-zip.org/&quot;&gt;7zip&lt;/a&gt;&#xd;
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    16
</description>
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    17
  <keepDependencies>false</keepDependencies>
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    18
  <properties>
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    19
    <hudson.model.ParametersDefinitionProperty>
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    20
      <parameterDefinitions>
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    21
        <hudson.model.StringParameterDefinition>
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    22
          <name>DOWNLOAD_TO</name>
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    23
          <description>The directory to download the kit zipfiles to</description>
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    24
          <defaultValue>C:\PDK</defaultValue>
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    25
        </hudson.model.StringParameterDefinition>
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    26
        <hudson.model.StringParameterDefinition>
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    27
          <name>VERSION</name>
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    28
          <description>Label of version to download e.g. 
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    29
&lt;li&gt;2.0.2
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    30
&lt;li&gt;3.0.h</description>
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    31
          <defaultValue></defaultValue>
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    32
        </hudson.model.StringParameterDefinition>
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    33
        <hudson.model.BooleanParameterDefinition>
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    34
          <name>NO_SRC</name>
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    35
          <description>Don&apos;t download any of the source code available directly from Mercurial</description>
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    36
          <defaultValue>false</defaultValue>
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    37
        </hudson.model.BooleanParameterDefinition>
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    38
        <hudson.model.BooleanParameterDefinition>
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    39
          <name>NO_WINSCW</name>
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    40
          <description>Don&apos;t download the winscw emulator</description>
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    41
          <defaultValue>false</defaultValue>
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    42
        </hudson.model.BooleanParameterDefinition>
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    43
        <hudson.model.BooleanParameterDefinition>
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    44
          <name>NO_UNZIP</name>
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    45
          <description>Just download, don&apos;t unzip or delete any files</description>
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    46
          <defaultValue>false</defaultValue>
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    47
        </hudson.model.BooleanParameterDefinition>
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    48
        <hudson.model.BooleanParameterDefinition>
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    49
          <name>NO_DELETE</name>
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    50
          <description>Do not delete files after unzipping</description>
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    51
          <defaultValue>true</defaultValue>
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    52
        </hudson.model.BooleanParameterDefinition>
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    53
        <hudson.model.StringParameterDefinition>
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    54
          <name>USERNAME</name>
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    55
          <description>Enter your Symbian developer web user name</description>
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    56
          <defaultValue></defaultValue>
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    57
        </hudson.model.StringParameterDefinition>
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    58
        <hudson.model.PasswordParameterDefinition>
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    59
          <name>PASSWORD</name>
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    60
          <description>Enter your Symbian developer web password</description>
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    61
          <defaultValue></defaultValue>
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    62
        </hudson.model.PasswordParameterDefinition>
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    63
      </parameterDefinitions>
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    64
    </hudson.model.ParametersDefinitionProperty>
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    65
  </properties>
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    66
  <scm class="hudson.scm.NullSCM"/>
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    67
  <canRoam>true</canRoam>
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    68
  <disabled>false</disabled>
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    69
  <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    70
  <triggers class="vector"/>
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    71
  <concurrentBuild>true</concurrentBuild>
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    72
  <builders>
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    73
    <hudson.tasks.BatchFile>
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    74
      <command>@ECHO OFF
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    75
IF NOT EXIST C:\Symbian\utilities\.hg GOTO CLONE
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    76
hg pull --update -R C:\Symbian\utilities
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    77
GOTO DOWNLOADKIT
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    78
:CLONE
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    79
hg clone https://developer.symbian.org/oss/MCL/utilities/ C:\Symbian\utilities
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    80
:DOWNLOADKIT
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    81
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    82
mkdir %DOWNLOAD_TO%\%VERSION%
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    83
cd /d %DOWNLOAD_TO%\%VERSION%
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    84
IF &quot;%NO_SRC%&quot;==&quot;true&quot; ( SET NO_SRC=--nosrc) ELSE (SET NO_SRC=)
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    85
IF &quot;%NO_WINSCW%&quot;==&quot;true&quot; ( SET NO_WINSCW=--nowinscw) ELSE (SET NO_WINSCW=)
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    86
IF &quot;%NO_UNZIP%&quot;==&quot;true&quot; ( SET NO_UNZIP=--nounzip) ELSE (SET NO_UNZIP=)
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    87
IF &quot;%NO_DELETE%&quot;==&quot;true&quot; ( SET NO_DELETE=--nodelete) ELSE (SET NO_DELETE=)
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    88
@ECHO ON
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    89
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    90
C:\Symbian\utilities\downloadkit\downloadkit.py %NO_UNZIP% %NO_SRC% %NO_WINSCW% %NO_DELETE% %VERSION% --username=%USERNAME% --password=%PASSWORD%
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    91
exit 0</command>
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    92
    </hudson.tasks.BatchFile>
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    93
  </builders>
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    94
  <publishers/>
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    95
  <buildWrappers/>
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    96
  <customWorkspace>D:\</customWorkspace>
d14e8ee6e64a Add job to allow download of a PDK over the web.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    97
</project>