/// <inheritdoc /> public CopyComponentCore Create(BuildComponentCore parent) { return(new InheritDocumentationComponent(parent)); }
//===================================================================== /// <summary> /// Constructor /// </summary> /// <param name="parent">The parent build component</param> /// <param name="sourceDocument">The source XPath document</param> /// <param name="sourceXPath">The source XPath expression</param> /// <param name="targetXPath">The target XPath expression</param> public CopyFromFileCommand(BuildComponentCore parent, XPathDocument sourceDocument, string sourceXPath, string targetXPath) : base(parent, sourceXPath, targetXPath) { this.SourceDocument = sourceDocument; }
//===================================================================== /// <summary> /// Constructor /// </summary> /// <param name="parent">The parent build component</param> public InheritDocumentationComponent(BuildComponentCore parent) : base(parent) { }
//===================================================================== /// <summary> /// Constructor /// </summary> /// <param name="parent">The parent build component</param> /// <param name="basePath">The base path in which to find the files</param> /// <param name="fileXPath">The file XPath expression used to get the file from which to copy elements</param> /// <param name="sourceXPath">The source XPath expression</param> /// <param name="targetXPath">The target XPath expression</param> public CopyFromFilesCommand(BuildComponentCore parent, string basePath, string fileXPath, string sourceXPath, string targetXPath) : base(parent, sourceXPath, targetXPath) { this.BasePath = basePath; this.SourceFile = XPathExpression.Compile(fileXPath); }