Michael[tm] Smith avatar Michael[tm] Smith committed 6d915a7

added support for building custom page header/footer (b=691, r=hsivonen)
http://bugzilla.validator.nu/show_bug.cgi?id=691

Comments (0)

Files changed (1)

 deploymentTarget = None
 noSelfUpdate = 0
 useLocalCopies = 0
+pageTemplate = None
 
 downloadedDeps = 0
 
   os.chdir("..")
 
 def buildValidator():
+  if pageTemplate:
+    ioJar  = os.path.join("util", "dist", "io-xml-util.jar")
+    pageEmitter = os.path.join("validator", "src", "nu", "validator", "servlet", "PageEmitter.java")
+    runCmd('"%s" -cp %s nu.validator.tools.SaxCompiler %s %s' % (javaCmd, ioJar, pageTemplate, pageEmitter))
   classPath = os.pathsep.join(dependencyJarPaths() 
                               + jarNamesToPaths(["non-schema", 
                                                 "io-xml-util",
     elif arg.startswith("--script="):
       script = arg[9:]
     elif arg.startswith("--name="):
-      script = arg[7:]
+      serviceName = arg[7:]
     elif arg.startswith("--genericpath="):
       (genericHost, genericPath) = splitHostSpec(arg[14:])
     elif arg.startswith("--html5path="):
       (html5Host, html5Path) = splitHostSpec(arg[12:])
     elif arg.startswith("--parsetreepath="):
       (parsetreeHost, parsetreePath) = splitHostSpec(arg[16:])
+    elif arg.startswith("--page-template="):
+      pageTemplate = arg[16:]
     elif arg == '--ajp=on':
       useAjp = 1
     elif arg == '--ajp=off':
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.