final String targetID = getProp().getPropertyString(
ScriptProperties.CODE_CONFIG_TARGET_FILE);
final File targetFile = getScript().resolveFilename(targetID);
// get other options
final TargetLanguage targetLanguage = getProp().getPropertyTargetLanguage(
ScriptProperties.CODE_CONFIG_TARGET_LANGUAGE);
final boolean embedData = getProp().getPropertyBoolean(
ScriptProperties.CODE_CONFIG_EMBED_DATA);
EncogLogging.log(EncogLogging.LEVEL_DEBUG, "Beginning code generation");
EncogLogging.log(EncogLogging.LEVEL_DEBUG, "target file:" + targetID);
EncogLogging.log(EncogLogging.LEVEL_DEBUG, "target language:" + targetLanguage.toString());
EncogCodeGeneration code = new EncogCodeGeneration(targetLanguage);
code.setEmbedData(embedData);
code.generate(getAnalyst());
code.save(targetFile);