-
Notifications
You must be signed in to change notification settings - Fork 1
/
_seleniumMxHelper.cfm
27 lines (24 loc) · 1.18 KB
/
_seleniumMxHelper.cfm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<!--- framework settings mixin; don't delete this --->
<cfinclude template="_seleniumMXSettings.cfm">
<cffunction name="getComponents" access="public" returntype="string">
<cfargument name="mode" type="string" required="true" hint="setup or teardown" />
<cfset var l = structNew() >
<cfset var d = "" />
<cfset l.path = ExpandPath(variables.instance.rootPath) />
<cfset l.coms = "" />
<cfdirectory action="list" type="dir" recurse="yes" name="d" directory="#l.path#" />
<cfquery name="l.dir" dbtype="query">
SELECT * FROM d WHERE directory NOT LIKE '%.svn%' AND NAME NOT LIKE '%.svn%'
</cfquery>
<cfloop query="l.dir">
<cfif NOT FindNoCase(l.dir.directory, ".svn")>
<cfif FileExists(l.dir.directory & "\#l.dir.name#\#arguments.mode#.cfc")>
<cfset l.comPath = "#l.dir.directory#\#l.dir.name#" />
<cfset l.comPath = Replace(l.comPath, l.path, variables.instance.cfcpath) />
<cfset l.comPath = l.comPath & ".#arguments.mode#" />
<cfset l.coms = ListAppend(l.coms, l.comPath) />
</cfif>
</cfif>
</cfloop>
<cfreturn l.coms />
</cffunction>