예제 #1
0
파일: scons.py 프로젝트: wzhang1994/gale
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()
예제 #2
0
파일: stg.py 프로젝트: wzhang1994/gale
    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()
예제 #3
0
파일: stg.py 프로젝트: eandbsoftware/gale
    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()