Package com.objfac.prebop.ant

Examples of com.objfac.prebop.ant.Filetype


    fFileCount++;
    String oldname = inFile.getCanonicalPath();
    String newname = outFile.getCanonicalPath();
    String ext = getExtension(oldname);
    Filetype ft = (Filetype) fTypeMap.get(ext);
    if (ft != null) {
      String outext = ft.getOutextension();
      newname = oldname.substring(0, oldname.length()-ext.length())+outext;
      preprocessFile(inFile, newname, ft);
    }
    if (!oldname.equals(newname))
      copyFile(inFile, oldname);
View Full Code Here


          String oldname = outdirPath + name;
          String newname = null;
          if (!fCopied.contains(oldname)) {
            fCopied.add(oldname);
            String ext = getExtension(name);
            Filetype ft = (Filetype) fTypeMap.get(ext);
            if (ft != null) {
              String outext = ft.getOutextension();
              newname = outdirPath + name.substring(0, name.length()-ext.length())+outext;
              fCopied.add(newname);
              preprocessFile(file, newname, ft);
            }
            if (!oldname.equals(newname))
View Full Code Here

      }
    }
    buf = null;
   
    HashMap typeMap = new HashMap();
    Filetype jtype = new Filetype();
    jtype.setName("Java");
    jtype.setExtensions("java");
    jtype.setCommentbegin("/*");
    jtype.setCommentend("*/");
    typeMap.put("java", jtype);
     
    Filetype xtype = new Filetype();
    xtype.setName("XML");
    xtype.setExtensions("xml");
    xtype.setCommentbegin("<!--");
    xtype.setCommentend("-->");
    typeMap.put("xml", xtype);
   
    Preprocessor prep = new Preprocessor();
    try {
      prep.preprocess(indir, outdir, vars, exclude, typeMap, replace, merge);
View Full Code Here

TOP

Related Classes of com.objfac.prebop.ant.Filetype

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.