Exemplo n.º 1
0
Arquivo: Program.cs Projeto: AxFab/amy
        public Delivery(XElement dom, Project project)
            : base(dom)
        {
            FileInfo cur = new FileInfo(".");
              foreach (XElement child in dom.Elements("Source")) {
            string url = child.Value;
            if (url.Contains("*"))
              foreach (string file in Glob.Enumerate(url)) {
            FileInfo fi = new FileInfo(file);
            sources_.Add(fi.FullName.Replace(cur.FullName + '\\', ""));
              }
            else {
              FileInfo fi = new FileInfo(url);
              sources_.Add(fi.FullName.Replace(cur.FullName+'\\', ""));
            }
              }

              dependancies_.Add("System");
              dependancies_.Add("System.Core");
              dependancies_.Add("System.Xml");
              dependancies_.Add("System.Xml.Linq");

              foreach (XElement child in dom.Elements("Reference")) {
            string refer = child.Value;
            references_.Add(project.Delivery(refer));
              }
        }
Exemplo n.º 2
0
Arquivo: Program.cs Projeto: AxFab/amy
 static void Main(string[] args)
 {
     XElement build = XElement.Load("build.xml");
       Project project = new Project(build);
 }