MR-381 - Upgrading Boo to latest trunk.
[castle.git] / MonoRail / Castle.MonoRail.Views.Brail / BooViewEngineOptions.cs
blob6123be72682f68fb3b96c6b013e8052c6b8ea0de
1 // Copyright 2004-2007 Castle Project - http://www.castleproject.org/
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
15 using System;
16 using System.Text;
18 namespace Castle.MonoRail.Views.Brail
20 using System.Collections;
21 using Castle.MonoRail.Framework;
23 public class BooViewEngineOptions
25 bool debug;
26 bool batchCompile;
27 bool saveToDisk;
28 string commonScriptsDirectory = "CommonScripts";
29 string saveDirectory = "Brail_Generated_Code";
30 readonly IList assembliesToReference = new ArrayList();
31 readonly IList namespacesToImport = new ArrayList();
33 public bool Debug
35 get { return debug; }
36 set { debug = value; }
39 public bool SaveToDisk
41 get { return saveToDisk; }
42 set { saveToDisk = value; }
45 public bool BatchCompile
47 get { return batchCompile; }
48 set { batchCompile = value; }
51 public string CommonScriptsDirectory
53 get { return commonScriptsDirectory; }
54 set { commonScriptsDirectory = value; }
57 public string SaveDirectory
59 get { return saveDirectory; }
60 set { saveDirectory = value; }
63 public IList AssembliesToReference
65 get { return assembliesToReference; }
68 public IList NamespacesToImport
70 get { return namespacesToImport; }
73 public BooViewEngineOptions()
75 AssembliesToReference.Add(typeof(BooViewEngineOptions).Assembly);//Brail's assembly
76 AssembliesToReference.Add(typeof(Controller).Assembly);//MonoRail.Framework's assembly
77 AssembliesToReference.Add(typeof(Boo.Lang.Extensions.AssertMacro).Assembly);//Boo.Lang.Extensions assembly