buildframework/helium/tools/preparation/synergy/buildmanagement.ant.xml
changeset 588 c7c26511138f
parent 217 0f5e3a7fb6af
equal deleted inserted replaced
587:85df38eb4012 588:c7c26511138f
    69 if database == None:
    69 if database == None:
    70     raise Exception("database attribute is not defined.")
    70     raise Exception("database attribute is not defined.")
    71 
    71 
    72 import nokia.nokiaccm
    72 import nokia.nokiaccm
    73 import ccm.extra
    73 import ccm.extra
    74 from com.nokia.ant.types.ccm import SessionSet
    74 from com.nokia.helium.ccmtask.ant.types import SessionSet
    75 import traceback
    75 import traceback
    76         
    76         
    77 session = None
    77 session = None
    78 if cache != None:
    78 if cache != None:
    79     p = ccm.extra.CachedSessionProvider(cache=str(cache))
    79     p = ccm.extra.CachedSessionProvider(cache=str(cache))
    87 asession = sessionset.createSession()
    87 asession = sessionset.createSession()
    88 asession.setAddr(str(session.addr()))
    88 asession.setAddr(str(session.addr()))
    89 project.addReference(str(reference), sessionset)
    89 project.addReference(str(reference), sessionset)
    90     </scriptdef>
    90     </scriptdef>
    91 
    91 
    92     <!-- Target to test ccm-task. -->
       
    93     <target name="try-ccm-task" if="run.ccm">
       
    94         <hlm:ccm>
       
    95             <hlm:update project="mc_4032_component_branches-mc_4031_0650" />
       
    96         </hlm:ccm>
       
    97     </target>
       
    98 
       
    99     <!-- Target to test ccm-task. -->
       
   100     <target name="try-ccm-task2" if="run.ccm">
       
   101         <hlm:createSessionMacro database="to1tobet" reference="test.session" />
       
   102         <hlm:ccm verbose="false">
       
   103             <!-- Defining some session to use. -->
       
   104             <hlm:sessionset refid="test.session" />
       
   105 
       
   106 
       
   107             <!-- Do something ...-->
       
   108             <hlm:addtask folder="tr1test1#2079">
       
   109                 <task name="tr1test1#5310" />
       
   110             </hlm:addtask>
       
   111             <!--<hlm:update project="mc_4032_component_branches-mc_4031_0650"/>-->
       
   112             <hlm:snapshot project="helium-to1tobet#helium_3.0:project:vc1s60p1#1" dir="c:\test" fast="true" recursive="true" />
       
   113             <hlm:close />
       
   114         </hlm:ccm>
       
   115     </target>
       
   116     <!-- Target to test ccm-checkout. -->
       
   117     <target name="try-ccm-task3" if="run.ccm">
       
   118         <hlm:createSessionMacro database="tr1test1" reference="test.session" />
       
   119         <hlm:ccm verbose="false">
       
   120             <!-- Defining some session to use. -->
       
   121             <hlm:sessionset refid="test.session" />
       
   122             <hlm:checkout project="Hello_World-8.2:project:tr1test1#1" release="Hello_World/next" />
       
   123             <hlm:close />
       
   124         </hlm:ccm>
       
   125     </target>
       
   126 
       
   127     <!-- Target to test ccm-work_area. -->
       
   128     <target name="try-ccm-task4" if="run.ccm">
       
   129         <hlm:createSessionMacro database="tr1test1" reference="test.session" />
       
   130         <hlm:ccm verbose="false">
       
   131             <!-- Defining some session to use. -->
       
   132             <hlm:sessionset refid="test.session" />
       
   133             <hlm:workarea project="Hello_World-8.3:project:tr1test1#1" maintain="True" />
       
   134             <hlm:close />
       
   135         </hlm:ccm>
       
   136     </target>
       
   137 
    92 
   138 </project>
    93 </project>