Changeset 1230


Ignore:
Timestamp:
Jul 20, 2011, 7:04:29 PM (6 years ago)
Author:
stefan
Message:
 
Location:
trunk/tools
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/src/jlatexeditor/tools/PackageParser.scala

    r1225 r1230  
    66import collection.mutable._
    77import org.apache.commons.lang.StringEscapeUtils
    8 import com.sun.deploy.Environment
    98
    109/**
     10 * Parser for latex cls and sty files.
     11 *
    1112 * @author Stefan Endrullis <stefan@endrullis.de>
    1213 */
     
    5556    texmfDirs.foreach(dir => parse(packs, classes, dir))
    5657
    57     writeXmlFile("packages.xml", packs)
    58     writeXmlFile("docclasses.xml", classes)
     58    writeXmlFile("packages.xml", null, packs)
     59    writeXmlFile("docclasses.xml", "templates/built-in-docclasses.xml", classes)
    5960
    6061    /*
     
    7374  }
    7475
    75   def writeXmlFile(file: String, packages: MutableList[Package]) {
     76  def writeXmlFile(file: String, templateFile: String, packages: MutableList[Package]) {
    7677    val out = new PrintStream(file)
    7778    out.println("<packages>")
     79    if (templateFile != null) {
     80      out.println(new File(templateFile).getContent)
     81    }
    7882    for (pack <- packages) {
    7983      val optionsPackString = if(pack.options.isEmpty) "" else " options=\"" + pack.options.mkString(",") + "\"";
  • trunk/tools/src/jlatexeditor/tools/UsageCounter.scala

    r1218 r1230  
    3434        println(name)
    3535        val usageCountFor = lastValue.getOrElse(name, {
    36           Thread.sleep(100);
     36          Thread.sleep(1000);
    3737          "" + GoogleCodeSearch.determineUsageCountForLatexCode(getCode(name))
    3838        })
Note: See TracChangeset for help on using the changeset viewer.