From: Paul K. <pau...@us...> - 2007-03-04 07:57:13
|
Update of /cvsroot/openxcf/cfcUnit/cfcunit In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv9749/cfcunit Modified Files: index.cfm Added Files: cfcunit.cfm Log Message: Created a custom tag that allows the test runner application to be invoked from a location other than the "/cfcunit" folder. The tag has two attributes: "preferencesFile" and "assetsFolder". --- NEW FILE: cfcunit.cfm --- <!--- Copyright (c) 2006, Paul Kenney All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ---> <cfparam name="attributes.preferencesFile" type="string" default=""/> <cfparam name="attributes.assetsFolder" type="string" default="#getPageContext().getRequest().getContextPath()#/cfcunit/assets"/> <!---------------------------------------------------------------------------------------------> <cfset request.externalConfig = structNew()> <cfset request.externalConfig.preferencesFile = attributes.preferencesFile> <cfset request.externalConfig.assetsFolder = attributes.assetsFolder> <!---------------------------------------------------------------------------------------------> <cfset currentFolder = getDirectoryFromPath(getCurrentTemplatePath())> <!--- Set the configuration mode (when to reload): -1=never, 0=dynamic, 1=always ---> <cfset MACHII_CONFIG_MODE = 0> <cfset MACHII_CONFIG_PATH = currentFolder & "app/machii/config/mach-ii.xml"> <cfset MACHII_RESET = FALSE> <cfset MACHII_APP_KEY = "cfcunit"> <!---------------------------------------------------------------------------------------------> <cfsetting showdebugoutput="false"/> <cfinclude template="machii/mach-ii.cfm"/> <cfsetting showdebugoutput="false"/> <!---------------------------------------------------------------------------------------------> <cfexit method="exittag"/> Index: index.cfm =================================================================== RCS file: /cvsroot/openxcf/cfcUnit/cfcunit/index.cfm,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** index.cfm 22 Dec 2006 03:09:21 -0000 1.5 --- index.cfm 4 Mar 2007 07:57:09 -0000 1.6 *************** *** 16,31 **** ---> ! <!--- Set the configuration mode (when to reload): -1=never, 0=dynamic, 1=always ---> ! <cfset MACHII_CONFIG_MODE = 0> ! <cfset MACHII_CONFIG_PATH = ExpandPath("app/machii/config/mach-ii.xml")> ! <cfset MACHII_RESET = FALSE> ! <cfset MACHII_APP_KEY = "cfcunit"> ! ! <!---------------------------------------------------------------------------------------------> ! <cfsetting showdebugoutput="false"/> ! ! <cfinclude template="machii/mach-ii.cfm"/> ! ! <cfsetting showdebugoutput="false"/> <!---------------------------------------------------------------------------------------------> \ No newline at end of file --- 16,20 ---- ---> ! <cfmodule template="cfcunit.cfm"/> <!---------------------------------------------------------------------------------------------> \ No newline at end of file |