Exemple #1
0
def create_meta(target, source, env):
	output_file = file( str( target[0] ), 'wb' )
	xsdDict = loadXML( str( source[0] ) )
	# TODO: Add here things like real location (rep & path), test results & sv/hg diff status

	output_file.write( convert.metaXsdDict2stgCodeHeader() )
	output_file.write( '\n' )
	output_file.write( convert.metaXsdDict2stgStrings( xsdDict ) )
	output_file.write( '\n' )
	output_file.write( convert.metaXsdDict2stgDictionaryCode( xsdDict ) )

	output_file.close()
Exemple #2
0
    def stgMeta(target, source, env):
        dir = os.path.dirname(target[0].abspath)
        if not os.path.exists(dir):
            os.makedirs(dir)

        meta = file(target[0].abspath, 'w')
        xsdDict = loadXML(source[0].abspath)
        # TODO: Add here things like real location (rep & path), test results & sv/hg diff status

        meta.write(convert.metaXsdDict2stgCodeHeader() + '\n')
        meta.write(convert.metaXsdDict2stgStrings(xsdDict) + '\n')
        meta.write(convert.metaXsdDict2stgDictionaryCode(xsdDict))

        meta.close()
Exemple #3
0
    def stgMeta(target, source, env):
        dir = os.path.dirname(target[0].abspath)
        if not os.path.exists(dir):
            os.makedirs(dir)

        meta = file(target[0].abspath, 'w')
        xsdDict = loadXML(source[0].abspath)
        # TODO: Add here things like real location (rep & path), test results & sv/hg diff status

        meta.write( convert.metaXsdDict2stgCodeHeader() + '\n' )
        meta.write( convert.metaXsdDict2stgStrings( xsdDict ) + '\n' )
        meta.write( convert.metaXsdDict2stgDictionaryCode( xsdDict ) )

        meta.close()