Example #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;
		}
Example #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);
        }
Example #3
0
        public TypeDocumenter(BundleDocumenter owner)
        {
            if (owner == null)
            {
                throw new ArgumentNullException();
            }

            this.owner = owner;
        }
Example #4
0
		public TypeDocumenter (BundleDocumenter owner) {
			if (owner == null)
				throw new ArgumentNullException ();

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