org.opengts.util
Class CompiletimeVars

java.lang.Object
  extended by org.opengts.util.CompiletimeVars

public class CompiletimeVars
extends java.lang.Object

Create compile-time contant source module


Nested Class Summary
static class CompiletimeVars.NoOverwriteException
          Exception for file exists, but overwrite not specified
 
Constructor Summary
CompiletimeVars()
           
 
Method Summary
static java.lang.String getConditionalSource(java.lang.String outputText)
          Apply conditionals to specified source
static java.io.File getOutputFile(java.io.File directory, java.lang.String outputName, boolean overwrite)
          Gets the output file
static void main(java.lang.String[] argv)
          Main entry point for testing/debugging
static void writeOutputSource(java.lang.String inputSource, java.io.File outputFile)
          Apply replacements/conditionals and write output
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompiletimeVars

public CompiletimeVars()
Method Detail

getConditionalSource

public static java.lang.String getConditionalSource(java.lang.String outputText)
Apply conditionals to specified source


getOutputFile

public static java.io.File getOutputFile(java.io.File directory,
                                         java.lang.String outputName,
                                         boolean overwrite)
                                  throws CompiletimeVars.NoOverwriteException,
                                         java.io.IOException
Gets the output file

Throws:
CompiletimeVars.NoOverwriteException
java.io.IOException

writeOutputSource

public static void writeOutputSource(java.lang.String inputSource,
                                     java.io.File outputFile)
                              throws java.io.IOException
Apply replacements/conditionals and write output

Throws:
java.io.IOException

main

public static void main(java.lang.String[] argv)
Main entry point for testing/debugging

Parameters:
argv - Comand-line arguments