More working tests.
[castle.git] / MonoRail / Castle.MonoRail.Views.Brail / BooViewEngineOptions.cs
blobefcab11138e8924cb8f56ee6129957c7535c437c
1 // Copyright 2004-2008 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 namespace Castle.MonoRail.Views.Brail
17 using System.Collections;
18 using Boo.Lang.Extensions;
19 using Framework;
21 public class BooViewEngineOptions
23 private readonly IList assembliesToReference = new ArrayList();
24 private readonly IList namespacesToImport = new ArrayList();
25 private bool batchCompile;
26 private string commonScriptsDirectory = "CommonScripts";
27 private bool debug;
28 private string saveDirectory = "Brail_Generated_Code";
29 private bool saveToDisk;
31 public BooViewEngineOptions()
33 AssembliesToReference.Add(typeof(BooViewEngineOptions).Assembly); //Brail's assembly
34 AssembliesToReference.Add(typeof(Controller).Assembly); //MonoRail.Framework's assembly
35 AssembliesToReference.Add(typeof(AssertMacro).Assembly); //Boo.Lang.Extensions assembly
38 public bool Debug
40 get { return debug; }
41 set { debug = value; }
44 public bool SaveToDisk
46 get { return saveToDisk; }
47 set { saveToDisk = value; }
50 public bool BatchCompile
52 get { return batchCompile; }
53 set { batchCompile = value; }
56 public string CommonScriptsDirectory
58 get { return commonScriptsDirectory; }
59 set { commonScriptsDirectory = value; }
62 public string SaveDirectory
64 get { return saveDirectory; }
65 set { saveDirectory = value; }
68 public IList AssembliesToReference
70 get { return assembliesToReference; }
73 public IList NamespacesToImport
75 get { return namespacesToImport; }