public BuildPipelineBuilder(TextReader reader, BuildScriptParser parser, IBuildContext context) : this(context) { try { while (reader.Peek() >= 0) { var line = reader.ReadLine(); var step = parser.Parse(m_context, line); if (step is EmptyStep) { continue; } Append(step); } } catch { throw; } finally { reader.Dispose(); } }
/// <summary> /// ビルドスクリプトファイルから作成 /// </summary> public BuildPipelineBuilder(string filePath, BuildScriptParser parser, IBuildContext context = null) : this(new StreamReader(filePath), parser, context) { }