Examples of TemplateFile


Examples of com.jverrecchia.initializr.builder.files.TemplateFile

   
    for (File currentFile : mode.getFiles()){
      ZipFile currentZipFile = new ZipFile();
      currentZipFile.setZipPath(currentFile.getRealPath());
      if (currentFile.isModify()){
        currentZipFile.setTemplate(new TemplateFile(currentFile.getTemplatePath()));
        currentZipFile.fillContent(mode);
      }
      else
        currentZipFile.copyContent(currentFile);
      zipFiles.add(currentZipFile);
View Full Code Here

Examples of org.nasutekds.server.tools.makeldif.TemplateFile

        random = new Random();
      }

      String resourcePath = DirectoryServer.getInstanceRoot() + File.separator +
                            PATH_MAKELDIF_RESOURCE_DIR;
      TemplateFile tf = new TemplateFile(resourcePath, random);

      ArrayList<Message> warnings = new ArrayList<Message>();
      try
      {
        tf.parse(templateFile.getValue(), warnings);
      }
      catch (Exception e)
      {
        Message message = ERR_LDIFIMPORT_CANNOT_PARSE_TEMPLATE_FILE.get(
            templateFile.getValue(), e.getMessage());
View Full Code Here

Examples of org.nasutekds.server.tools.makeldif.TemplateFile

        random = new Random();
      }

      String resourcePath = DirectoryServer.getInstanceRoot() + File.separator +
                            PATH_MAKELDIF_RESOURCE_DIR;
      TemplateFile tf = new TemplateFile(resourcePath, random);

      ArrayList<Message> warnings = new ArrayList<Message>();
      try
      {
        tf.parse(templateFile, warnings);
      }
      catch (Exception e)
      {
        Message message = ERR_LDIFIMPORT_CANNOT_PARSE_TEMPLATE_FILE.get(
            templateFile, e.getMessage());
View Full Code Here

Examples of org.nasutekds.server.tools.makeldif.TemplateFile

  public static void makeLdif(String ldifPath,
                              String resourcePath,
                              String templatePath)
       throws IOException, InitializationException, MakeLDIFException
  {
    TemplateFile template = new TemplateFile(resourcePath, new Random(1));
    ArrayList<Message> warnings = new ArrayList<Message>();
    template.parse(templatePath, warnings);
    makeLdif(ldifPath, template);
  }
View Full Code Here

Examples of org.nasutekds.server.tools.makeldif.TemplateFile

  public static void makeLdif(String ldifPath,
                              String resourcePath,
                              String[] templateLines)
       throws IOException, InitializationException, MakeLDIFException
  {
    TemplateFile template = new TemplateFile(resourcePath, new Random(1));
    ArrayList<Message> warnings = new ArrayList<Message>();
    template.parse(templateLines, warnings);
    makeLdif(ldifPath, template);
  }
View Full Code Here

Examples of org.nasutekds.server.tools.makeldif.TemplateFile

        InternalClientConnection connection =
            InternalClientConnection.getRootConnection();
        String makeLDIFPath =
            System.getProperty(TestCaseUtils.PROPERTY_BUILD_ROOT) +
        File.separator + "resource"+File.separator+"MakeLDIF";
        TemplateFile templateFile =
            new TemplateFile(makeLDIFPath, new Random());
        ArrayList<Message> warnings = new ArrayList<Message>();
        templateFile.parse(template, warnings);
        MakeLDIFInputStream ldifEntryStream =
            new MakeLDIFInputStream(templateFile);
        LDIFReader reader =
            new LDIFReader(new LDIFImportConfig(ldifEntryStream));
        for(int i =0; i<numEntries;i++) {
View Full Code Here

Examples of org.openiaml.docs.modeldoc.TemplateFile

  protected void loadInferenceSemantics(final ModeldocFactory factory,
      ModelDocumentation root, String plugin, String pkg,
      String name, File file) throws IOException, SemanticHandlerException {
   
    // create a TemplateFile for this template file
    final TemplateFile templateFile = factory.createTemplateFile();
    templateFile.setPlugin(plugin);
    templateFile.setPackage(pkg);
    templateFile.setName(name);
    root.getReferences().add(templateFile);

    BasicJavadocParser parser = new BasicJavadocParser(getSemanticTagHandlers());
    parser.findJavadocTagsInTextFile(file, this, factory, root, new IJavadocReferenceCreator() {
     
      public JavaElement createReference(String[] lines, int line) {
        Template ref = createTemplate(factory, line, lines);
        if (ref != null) {
          templateFile.getTemplates().add(ref);
        }
        return ref;
      }
     
    });
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.