public virtual string GetImportedVocabFile() {
string vocabName = g.GetOptionString("tokenVocab");
string f = Path.Combine(g.tool.libDirectory,
vocabName +
CodeGenerator.VOCAB_FILE_EXTENSION);
if (File.Exists(f)) {
return f;
}
// We did not find the vocab file in the lib directory, so we need
// to look for it in the output directory which is where .tokens
// files are generated (in the base, not relative to the input
// location.)
f = Path.Combine(g.tool.outputDirectory, vocabName + CodeGenerator.VOCAB_FILE_EXTENSION);
return f;
}
}