configurationengine/source/plugins/common/integration-test/testdata/generate/project/custom/implml/xcreate_file.implml
author terytkon
Sat, 06 Nov 2010 16:59:14 +0200
changeset 9 63964d875993
parent 3 e7e0ae78773e
permissions -rw-r--r--
Merge changes to system model generator to SF tip.

<?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>