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