3 Replies Latest reply: Apr 12, 2013 7:14 PM by Charlie Arehart RSS

    Using the cfcompile utility

    Community Help Community Member
        • 1. Re:  Using the cfcompile utility
          shigemii

          I tried to use the cfcompile utility (cfcompile.bat) of ColdFusion 10.

          But the file did not exist  in "cf_root/bin (cf_root/cfusion/bin)".

          Is it included in the ColdFusion 10?

          • 2. Re:  Using the cfcompile utility
            Aaron Neff CommunityMVP

            @shigemii, the missing cfcompile utility issue was fixed in ColdFusion 10 Update 1: http://helpx.adobe.com/coldfusion/kb/coldfusion10-update-01.html

             

            Thanks,

            -Aaron

            • 3. Re:  Using the cfcompile utility
              Charlie Arehart CommunityMVP

              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 CF10, that location would be [coldfusion10]\[instance]\wwwroot\WEB-INF\cfclasses (where [instance] is cfusion if you have not created multiple instances).

               

              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.)