Exemplo n.º 1
0
        protected BuildfileLoader LoadChildFile(string file, WrenchProject proj)
        {
            if (!File.Exists(file))
            {
                //throw new Exception ("Expected but didn't find buildfile at " + file);
                proj.Log.Error(2005, "Expected but didn't find a buildfile at " + file + ".", null);
                return(null);
            }

            BuildfileLoader bp = new BuildfileLoader(file, proj.Log);

            if (bp.ParseErrors > 0)
            {
                return(null);
            }
            return(bp);
        }
Exemplo n.º 2
0
	protected BuildfileLoader LoadChildFile (string file, WrenchProject proj) {
	    if (!File.Exists (file)) {
		//throw new Exception ("Expected but didn't find buildfile at " + file);
		proj.Log.Error (2005, "Expected but didn't find a buildfile at " + file + ".", null);
		return null;
	    }
	    
	    BuildfileLoader bp = new BuildfileLoader (file, proj.Log);
	    
	    if (bp.ParseErrors > 0)
		return null;
	    return bp;
	}