Skip to content

Commit 9737935

Browse files
committed
Create array of files to exclude from build
1 parent eb3bef0 commit 9737935

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

VBScript/Build.vbs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,18 @@ Option Explicit
3232

3333
Dim arrSubfolderNames
3434
Dim strOutputFileName
35+
Dim arrFilesToIgnore
3536

3637
arrSubfolderNames = Array("01_Overall_Script_Header", "02_Upfront_Encapsulated_Code_With_No_Dependencies", "03_Main_Section_Code_Executed_Every_Time", "99_Script_Footer")
3738
strOutputFileName = "Accelerator.vbs"
3839

40+
' Set the following equal to an array of files to be excluded from the build process.
41+
' By default, this is set to exclude the Version.vbs file from the build process
42+
' because classes are not compatible with early versions of VBScript, and,
43+
' specifically, the use of the New keyword in the Version class results in syntax
44+
' errors if you try to run the code on early versions of VBScript.
45+
arrFilesToIgnore = Array("02_Upfront_Encapsulated_Code_With_No_Dependencies\Version.vbs")
46+
3947
Function TestObjectForData(ByVal objToCheck)
4048
'region FunctionMetadata ####################################################
4149
' Checks an object or variable to see if it "has data".

0 commit comments

Comments
 (0)