Changeset 263

Show
Ignore:
Timestamp:
11/04/06 19:06:01 (2 years ago)
Author:
scorfield
Message:

Fixes #99 by incorporating the Java timestamp change suggested by Daniel Schmid.

Location:
framework/trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • framework/trunk/fuseboxApplication.cfc

    r262 r263  
    9393                                        hint="I am the myFusebox data structure." /> 
    9494                 
     95                <!--- fixed ticket 99 ---> 
    9596                <cfset var myVersion = "5.0.1.#REReplace('$LastChangedRevision$','[^0-9]','','all')#" /> 
    9697 
  • framework/trunk/fuseboxCircuit.cfc

    r261 r263  
    104104                <cfset var needToLoad = true /> 
    105105                <cfset var circuitFiles = 0 /> 
     106                <cfset var myCircuitFilePath = "" /> 
     107                <cfset var jCircuitFile = "" /> 
     108                <cfset var dtLastModified = "" /> 
    106109 
    107110                <cfif structKeyExists(this,"timestamp")> 
    108                         <cfdirectory action="list" directory="#variables.fullPath#" filter="circuit.xml*" name="circuitFiles" /> 
    109                         <cfif circuitFiles.recordCount eq 1> 
    110                                 <cfset needToLoad = parseDateTime(circuitFiles.dateLastModified) gt parseDateTime(this.timestamp) /> 
    111                         <!--- else ignore the ambiguity ---> 
    112                         </cfif> 
     111                        <!--- Java timestamp solution provided by Daniel Schmid ---> 
     112                        <cfset myCircuitFilePath = variables.fullPath & circuitFile /> 
     113                        <cfset jCircuitFile = createObject("java","java.io.File").init(myCircuitFilePath) /> 
     114                        <cfset dtLastModified = createObject("java","java.util.Date").init(jCircuitFile.lastModified()) /> 
     115                        <cfset needToLoad = parseDateTime(dtLastModified) gt parseDateTime(variables.timestamp) /> 
    113116                </cfif> 
    114117 
  • framework/trunk/myFusebox.cfc

    r262 r263  
    5151<cfcomponent hint="I provide the per-request myFusebox data structure and some convenience methods."> 
    5252        <cfscript> 
     53        // fixed ticket 99 
    5354        this.version.runtime     = "5.0.1.#REReplace('$LastChangedRevision$','[^0-9]','','all')#"; 
    5455