Exemplo n.º 1
0
		public int Launch () {
			if (RemainingArguments.Length != 2) {
				DoAbout ();
				return 1;
			}

			try {
				assy = Assembly.LoadFrom (RemainingArguments[0]);
			} catch (Exception e) {
				Console.Error.WriteLine ("Could not load assembly {0}: {1}",
							 RemainingArguments[0], e);
				return 1;
			}

			docpath = RemainingArguments[1];
			if (!Directory.Exists (docpath)) {
				Console.Error.WriteLine ("Documentation directory {0} does not exist!",
							 docpath);
				return 1;
			}

			BundleDocumenter bd = new BundleDocumenter (assy, docpath);

			try {
				bd.Document ();
			} catch (Exception e) {
				Console.Error.WriteLine ("Error in docs generation: {0}", e);
				return 1;
			}

			return 0;
		}
Exemplo n.º 2
0
        public int Launch()
        {
            if (RemainingArguments.Length != 2)
            {
                DoAbout();
                return(1);
            }

            try {
                assy = Assembly.LoadFrom(RemainingArguments[0]);
            } catch (Exception e) {
                Console.Error.WriteLine("Could not load assembly {0}: {1}",
                                        RemainingArguments[0], e);
                return(1);
            }

            docpath = RemainingArguments[1];
            if (!Directory.Exists(docpath))
            {
                Console.Error.WriteLine("Documentation directory {0} does not exist!",
                                        docpath);
                return(1);
            }

            BundleDocumenter bd = new BundleDocumenter(assy, docpath);

            try {
                bd.Document();
            } catch (Exception e) {
                Console.Error.WriteLine("Error in docs generation: {0}", e);
                return(1);
            }

            return(0);
        }
Exemplo n.º 3
0
        public TypeDocumenter(BundleDocumenter owner)
        {
            if (owner == null)
            {
                throw new ArgumentNullException();
            }

            this.owner = owner;
        }
Exemplo n.º 4
0
		public TypeDocumenter (BundleDocumenter owner) {
			if (owner == null)
				throw new ArgumentNullException ();

			this.owner = owner;
		}
Exemplo n.º 5
0
 public RuleDocumenter(BundleDocumenter owner) : base(owner)
 {
 }
Exemplo n.º 6
0
 public MatcherDocumenter(BundleDocumenter owner) : base(owner)
 {
 }
Exemplo n.º 7
0
 public ProviderDocumenter(BundleDocumenter owner) : base(owner)
 {
 }
Exemplo n.º 8
0
 public ResultDocumenter(BundleDocumenter owner) : base(owner)
 {
 }
Exemplo n.º 9
0
		public RegexMatcherDocumenter (BundleDocumenter owner) : base (owner) {}
Exemplo n.º 10
0
		public RuleDocumenter (BundleDocumenter owner) : base (owner) {}
Exemplo n.º 11
0
		public ProviderDocumenter (BundleDocumenter owner) : base (owner) {}
Exemplo n.º 12
0
		public ResultDocumenter (BundleDocumenter owner) : base (owner) {}