configurationengine/source/plugins/common/integration-test/testdata/generate/project/custom/implml/xcreate_file.implml
author m2lahtel
Tue, 10 Aug 2010 14:29:28 +0300
changeset 3 e7e0ae78773e
permissions -rw-r--r--
ConE 1.2.11 release

<?xml version="1.0" encoding="UTF-8"?>
<container xmlns="http://www.symbianfoundation.org/xml/implml/1">
    <tempVariable ref="TempText" type="string" value="jeejeejee"/>
    <tempVariable ref="TempBool" type="boolean" value="true"/>

    <commandml xmlns="http://www.s60.com/xml/commandml/1">
    <condition value="${TempBool} == True">
            <command executable="python" shell="True">
		        <argument value="-c &quot;import os; if not os.path.exists('%CONE_OUT%'): os.makedirs('%CONE_OUT%')&quot;" />
		    </command>
            <command executable="python" shell="True">
		        <argument value="-c &quot;open('%CONE_OUT%/test.txt','w').write('${TempText}')&quot;" />
		    </command>
		</condition>
	    <condition value="${TempBool} == False">   
	        <command executable="python" shell="true">
			    <argument value="-c &quot;open('%CONE_OUT%/test2.txt','w').write('${TempText}')&quot;" />
		    </command>
		</condition>		    
    </commandml>
</container>