testbox.system.coverage.data

Class TemplateCompiler_Lucee

lucee.Component
    extended by testbox.system.coverage.data.TemplateCompiler_Lucee

Copyright Ortus Solutions, Corp www.ortussolutions.com I contain the logic to force a compilation on Railo/Lucee. I will not compile on Adobe ColdFusion, so I require my own CFC.

Class Attributes:
  • synchronized : false
  •  
  • accessors : true
  •  
  • persistent : false
  •  
    Constructor Summary
    init()
    Method Summary
    any compileAndLoad(any filePath)
         Call me to force a .
    any createMapping([any mappingName], [any mappingPath])
    private boolean isWindows()
         Detect if OS is Windows.
    string locateDriveMapping(string driveLetter)
         Accepts a Windows drive letter and returns a CF Mapping.
    string locateUNCMapping(string UNCShare)
         Accepts a Windows UNC network share and returns a CF Mapping.
    string locateUnixDriveMapping(string rootFolder)
         Accepts a Unix root folder and returns a CF Mapping.
    string makePathRelative(string absolutePath)
         Accepts an absolute path and returns a relative path.
    any normalizeSlashes([string path])
     
    Methods inherited from class lucee.Component
    None

    Constructor Detail

    init

    public init()


    Method Detail

    compileAndLoad

    public any compileAndLoad(any filePath)

    Call me to force a .cfm or .cfc to be compiled and the class loaded into memory

    Parameters:
    filePath

    createMapping

    public any createMapping([any mappingName], [any mappingPath])

    Parameters:
    mappingName
    mappingPath

    isWindows

    private boolean isWindows()

    Detect if OS is Windows


    locateDriveMapping

    public string locateDriveMapping(string driveLetter)

    Accepts a Windows drive letter and returns a CF Mapping Creates the mapping if it doesn't exist

    Parameters:
    driveLetter

    locateUNCMapping

    public string locateUNCMapping(string UNCShare)

    Accepts a Windows UNC network share and returns a CF Mapping Creates the mapping if it doesn't exist

    Parameters:
    UNCShare

    locateUnixDriveMapping

    public string locateUnixDriveMapping(string rootFolder)

    Accepts a Unix root folder and returns a CF Mapping Creates the mapping if it doesn't exist

    Parameters:
    rootFolder

    makePathRelative

    public string makePathRelative(string absolutePath)

    Accepts an absolute path and returns a relative path Does NOT apply any canonicalization

    Parameters:
    absolutePath

    normalizeSlashes

    public any normalizeSlashes([string path])

    Parameters:
    path