예제 #1
0
        private string[] ListSourceFolders(TemplateData templateData)
        {
            if (templateData.Parameters().Find <bool>(TemplateParameter.ResourceFile, false))
            {
                return(_resourceFolder);
            }
            if (templateData.Parameters().Find <bool>(TemplateParameter.SchemataFile, false))
            {
                return(_schemataFolder);
            }
            if (templateData.Parameters().Find <bool>(TemplateParameter.PomSection, false))
            {
                return(new String[] { });
            }
            var packageName      = templateData.Parameters().Find <string>(TemplateParameter.PackageName);
            var tempSourceFolder = _sourceFolder.ToList();

            tempSourceFolder.AddRange(packageName.Split(new string[] { "\\." }, StringSplitOptions.None));
            return(tempSourceFolder.ToArray());
        }