Package org.codehaus.enunciate

Examples of org.codehaus.enunciate.EnunciateException


    else if (!"OFF".equalsIgnoreCase(getJavadocTagHandling())) {
      try {
        JavaDocTagHandlerFactory.setTagHandler((JavaDocTagHandler) Class.forName(getJavadocTagHandling()).newInstance());
      }
      catch (Throwable e) {
        throw new EnunciateException(e);
      }
    }
  }
View Full Code Here


    try {
      processTemplate(getDownloadsTemplateURL(), model);
    }
    catch (TemplateException e) {
      //there's something wrong with the template.
      throw new EnunciateException(e);
    }

  }
View Full Code Here

    model.put("additionalCss", getAdditionalCss());
    try {
      processTemplate(freemarkerXMLProcessingTemplateURL, model);
    }
    catch (TemplateException e) {
      throw new EnunciateException(e);
    }
  }
View Full Code Here

        }
      });
      doc = builder.parse(new FileInputStream(xml));
    }
    catch (Exception e) {
      throw new EnunciateException("Error parsing " + xml, e);
    }

    NodeModel.simplify(doc);
    return NodeModel.wrap(doc.getDocumentElement());
  }
View Full Code Here

      File indexPage = new File(buildDir, getIndexPageName());
      debug("Transforming %s to %s.", docsXml, indexPage);
      transformer.transform(new StreamSource(docsXml), new StreamResult(indexPage));
    }
    catch (TransformerException e) {
      throw new EnunciateException("Error during transformation of the documentation (stylesheet " + xsltURL +
        ", document " + new File(getGenerateDir(), "docs.xml") + ")", e);
    }
  }
View Full Code Here

      out.flush();
      bytes.flush();
      return bytes.toString("utf-8");
    }
    catch (TemplateException e) {
      throw new EnunciateException(e);
    }
  }
View Full Code Here

              debug("Command \"gmcs /help\" failed (" + e.getMessage() + ").");
            }
          }

          if (compileExectuable == null && isRequire()) {
            throw new EnunciateException("C# client code generation is required, but there was no valid compile executable found. " +
              "Please supply one in the configuration file, or set it up on your system path.");
          }

          setCompileExecutable(compileExectuable);
        }
View Full Code Here

        int procCode;
        try {
          procCode = process.waitFor();
        }
        catch (InterruptedException e1) {
          throw new EnunciateException("Unexpected inturruption of the C# compile process.");
        }

        if (procCode != 0) {
          throw new EnunciateException("C# compile failed.");
        }

        enunciate.addArtifact(new FileArtifact(getName(), "csharp.assembly", dll));
        if (docXml.exists()) {
          enunciate.addArtifact(new FileArtifact(getName(), "csharp.docs.xml", docXml));
View Full Code Here

      out.flush();
      bytes.flush();
      return bytes.toString("utf-8");
    }
    catch (TemplateException e) {
      throw new EnunciateException(e);
    }

  }
View Full Code Here

      out.flush();
      bytes.flush();
      return bytes.toString("utf-8");
    }
    catch (TemplateException e) {
      throw new EnunciateException(e);
    }
  }
View Full Code Here

TOP

Related Classes of org.codehaus.enunciate.EnunciateException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.