public BuildfileProviderLoader(string basis, string decl_loc,
                                       SourceSettings ss, string srcrel) : base(basis, decl_loc)
        {
            this.ss = ss;

            if (srcrel != null)
            {
                this.srcrel = srcrel;
            }
            else
            {
                this.srcrel = Path.Combine(SourceSettings.BasisToSubpath(basis),
                                           ss.BuildfileName);
            }
        }
Beispiel #2
0
        protected ProviderLoaderBase(string basis, string decl_loc)
        {
            if (basis == null || basis[0] != '/' || basis[basis.Length - 1] != '/')
            {
                throw ExHelp.Argument(basis, "Invalid basis string `{0}'", basis);
            }

            this.basis = basis;

            if (decl_loc == null)
            {
                this.decl_loc = SourceSettings.BasisToSubpath(basis);
            }
            else
            {
                this.decl_loc = decl_loc;
            }
        }