<project name="SDK-specific targets for generating JSON parser etc." default="noDefault">

    <target name="compileParserGenerator">
        <delete dir="${output}" quiet="true"/>
        <mkdir dir="${output}" />

        <property name="jsonLibPath" value="${sdkPluginSource}/lib/json_simple/json_simple-1.1.jar"/>
        <javac destdir="${output}"
            srcdir="${sdkPluginSource}/src-dynamic-impl/parser:${sdkPluginSource}/src:${protocol_source_path}"
            classpath="${jsonLibPath}"
        >
            <include name="**/${root_source_file_name}"/>
        </javac>
    </target>
    
    <target name="generateJsonParser">
        <property name="jsonLibPath" value="${sdkPluginSource}/lib/json_simple/json_simple-1.1.jar"/>
        <java classname="${mainClassName}" classpath="${generatorCP}:${jsonLibPath}" failonerror="true">
            <arg value="--output-dir=${outputDir}"/>
        </java>
    </target>

</project>
