Esempio n. 1
0
        public bool Finish(BundleManager bm, IWarningLogger log)
        {
            if (DeclarationLoc == null)
            {
                throw ExHelp.App("WP Finish, basis {0}", Basis);
            }

            if (namecontext.SetManager(bm, log))
            {
                return(true);
            }

            if (DoneRequesting(namecontext, log))
            {
                return(true);
            }

            foreach (WrenchTarget wt in DefinedTargets)
            {
                if (wt.DoFixup(namecontext, log))
                {
                    return(true);
                }
            }

            return(false);
        }
Esempio n. 2
0
        public bool SetManager(BundleManager bm, IWarningLogger logger)
        {
            if (bm == null)
            {
                throw new ArgumentNullException();
            }
            if (this.bm != null)
            {
                throw new Exception("Already have manager set");
            }

            this.bm = bm;

            // This is pretty weak.

            foreach (string ns in nsqueue.Keys)
            {
                if (UseNamespace(ns, nsqueue[ns], logger))
                {
                    return(true);
                }
            }

            return(false);
        }
Esempio n. 3
0
		public bool LoadBundles (BundleManager bm, IWarningLogger log)
		{
		    foreach (System.Reflection.AssemblyName aname in Refs) {
			if (bm.LoadBundle (aname, log))
			    return true;
		    }

		    return false;
		}
Esempio n. 4
0
	public bool SetManager (BundleManager bm, IWarningLogger logger) 
	{
	    if (bm == null)
		throw new ArgumentNullException ();
	    if (this.bm != null)
		throw new Exception ("Already have manager set");

	    this.bm = bm;
	    
	    // This is pretty weak.

	    foreach (string ns in nsqueue.Keys)
	    	if (UseNamespace (ns, nsqueue[ns], logger))
	    	    return true;

	    return false;
	}
Esempio n. 5
0
	public bool Finish (BundleManager bm, IWarningLogger log) 
	{
	    if (DeclarationLoc == null)
		throw ExHelp.App ("WP Finish, basis {0}", Basis);

	    if (namecontext.SetManager (bm, log))
		return true;

	    if (DoneRequesting (namecontext, log))
		return true;

	    foreach (WrenchTarget wt in DefinedTargets) {
		if (wt.DoFixup (namecontext, log))
		    return true;
	    }

	    return false;
	}
Esempio n. 6
0
	public ProjectManager () 
	{
	    this.bm = new BundleManager ();
	}
Esempio n. 7
0
	public void Dispose () {
	    if (disposed)
		return;
	    
	    if (proj != null) {
		proj.Dispose ();
		proj = null;
	    }

	    if (log != null) {
		log.Save (ss);
		log = null;
	    }

	    if (ProfileStateUsage) {
		Console.Error.WriteLine ("GRAPH STATE USAGE PROFILE:");
		Console.Error.WriteLine ("{0}", graph);
	    }

	    graph = null;
	    ss = null;
	    bm = null;

	    disposed = true;
	}
Esempio n. 8
0
 void AddVersionedReference(string name, string vers)
 {
     pinfo.AddRef(BundleManager.MakeName(name, vers));
 }
Esempio n. 9
0
 void AddUnversionedReference(string name)
 {
     pinfo.AddRef(BundleManager.MakeName(name));
 }