Skip navigation
Currently Being Moderated

Using the cfcompile utility

Sep 19, 2012 10:24 AM

 
Replies
  • Currently Being Moderated
    Sep 19, 2012 10:24 AM   in reply to Community Help

    cfcompile is missing from linux distribution 9.01. Please reference to bug no 3191756. Bug was reported in May of 2012, no fix from Adobe.

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 12, 2013 6:48 PM   in reply to Community Help

    The doc page here about the precompile utility does not clarify where it puts the compiled class files, so I'll add a little more info for readers here.

     

    As the cfcompile tool's purpose is (by default) to simply precompile CFML templates the same way that CF would, running the tool puts the resulting .class files in the same place that CF would put them when it compiled them itself during normal page execution (assuming you have “save class files” enabled in the CF Admin>Caching page).

     

    In CF9, that location would be Re:  Using the cfcompile utility\wwwroot\WEB-INF\cfclasses. In the multiserver form of deployment, that would be Re:  Using the cfcompile utility\servers\[instance]\[cfusionear]\[cfusionwar]\WEB-INF\cfclasses.

     

    If anyone would wonder, no, it does not matter whether you have “save class files” enabled in the CF Admin when you try to use the cfcompile tool. It will save files to that cfclasses directory, regardless.

     

    (Also, note that if you had used the -deploy argument for the cfcompile tool, then that WOULD let you name a destination directory for the resulting files. This form of the tool is intended for you to create files that you would take and put on some other server, and they would be sourceless CFM files, not class files.)

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 12, 2013 6:54 PM   in reply to Community Help

    Wow, that's odd. The commenting feature here has changed my references at the start of those two folder paths into a link somehow. I did NOT provide any http indicator or anything (as these are OS file paths, not web URLs). I was just trying to show the CF and jrun directory locaitons in a generic way, using brackets to indicate the location (since one can technically put them wherever they want.)

     

    Anyway, the first (before \wwwroot\WEB-INF\cfclasses) should have been an indication of the CF9 directory, which I tried to show as an opening square bracket, the phrase coldfusion9, and a closing square bracket. And the second (before \servers\[instance]\[cfusionear]\[cfusionwar]\WEB-INF\cfclasses) should have been an indication of the jrun directory, which I tried to show with an opening square bracket, the phrase jrun, and a closing square bracket.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points