You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+25-22Lines changed: 25 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,13 +21,16 @@ The script-runner can be used from any directory by specifying the build file lo
21
21
22
22
```bash
23
23
# From the script-runner directory (simple)
24
-
ant -Dwebroot="/path/to/your/project" -Dexecute="/yourscript.cfm"
24
+
ant -Dwebroot="/path/to/your/project" -Dexecute="yourscript.cfm"
25
25
26
26
# From your project directory (recommended for external projects)
27
-
ant -buildfile="/path/to/script-runner/build.xml" -Dwebroot="." -Dexecute="/yourscript.cfm"
27
+
ant -buildfile="/path/to/script-runner/build.xml" -Dwebroot="." -Dexecute="yourscript.cfm"
28
28
29
29
# From any directory with absolute paths
30
-
ant -buildfile="C:\tools\script-runner\build.xml" -Dwebroot="C:\work\myproject" -Dexecute="/test.cfm"
30
+
ant -buildfile="C:\tools\script-runner\build.xml" -Dwebroot="C:\work\myproject" -Dexecute="test.cfm"
31
+
32
+
# execute a script below the webroot
33
+
ant -buildfile="C:\tools\script-runner\build.xml" -Dwebroot="C:\work\myproject" -Dexecute="extended/index.cfm"
31
34
```
32
35
33
36
**Key Points:**
@@ -47,7 +50,7 @@ You can specify:
47
50
- Lucee version by query `-DluceeVersionQuery="5.4/stable/light` ( optional overrides luceeVersion, (version)/(stable/rc/snapshot)/(jar,light/zero) )
48
51
- Local Lucee JAR `-DluceeJar="/path/to/lucee.jar"` (optional, overrides both luceeVersion and luceeVersionQuery, perfect for testing locally built JARs)
49
52
- Webroot `-Dwebroot=` (default `tests/`) on Windows, avoid a trailing \ as that is treated as an escape character causes script runner to fail
50
-
- CFML Script to run, `-Dexecute=` (default `/index.cfm`)
53
+
- CFML Script to run, `-Dexecute=` (default `index.cfm`) a relative path the webroot, no leading `/` is needed, some bash shells like git bash on windows get's confused and tries to expand that to a full path
51
54
- run script via include or _internalRequest (which runs the Application.cfc if present, default ) `-DexecuteScriptByInclude="true"`
52
55
- any extra extensions `-Dextensions=` (default ``)
53
56
- manual extension install (`*.lex`) from a directory `-DextensionDir=` (default ``)
@@ -115,9 +118,9 @@ Multiple script-runner instances can be run simultaneously using unique working
115
118
116
119
```bash
117
120
# Run multiple instances concurrently
118
-
ant -DuniqueWorkingDir="true" -Dexecute="/test1.cfm"&
119
-
ant -DuniqueWorkingDir="true" -Dexecute="/test2.cfm"&
120
-
ant -DuniqueWorkingDir="true" -Dexecute="/test3.cfm"&
121
+
ant -DuniqueWorkingDir="true" -Dexecute="test1.cfm"&
122
+
ant -DuniqueWorkingDir="true" -Dexecute="test2.cfm"&
123
+
ant -DuniqueWorkingDir="true" -Dexecute="test3.cfm"&
`ant -buildfile="C:\work\script-runner" -Dexecute="/debug.cfm" -DluceeVersion="light-6.2.2.91"` (`light` has no bundled extensions, `zero` has no extension or admin)
209
+
`ant -buildfile="C:\work\script-runner" -Dexecute="debug.cfm" -DluceeVersion="light-6.2.2.91"` (`light` has no bundled extensions, `zero` has no extension or admin)
207
210
208
211
## As a GitHub Action
209
212
@@ -229,7 +232,7 @@ To use as a GitHub Action, to run the PDF tests after building the PDF Extension
Copy file name to clipboardExpand all lines: build.xml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -175,7 +175,7 @@
175
175
</condition>
176
176
177
177
<!-- Check if execute script exists under webroot (catch Git Bash path conversion and other issues) -->
178
-
<failmessage="Execute script '${execute}' not found under webroot '${webroot}' (looking for: ${execute.fullpath}). If using Git Bash and your execute parameter starts with '/', this may be due to path conversion. Solutions: 1) Use cmd instead of Git Bash, 2) Use double slash '//debug.cfm', 3) Set MSYS_NO_PATHCONV=1, or ensure the script exists in the webroot.">
178
+
<failmessage="Execute script '${execute}' not found under webroot '${webroot}' (looking for: ${execute.fullpath}). If using Git Bash, try: 1) Remove leading slash: -Dexecute="test.cfm" instead of "/test.cfm", 2) Use cmd.exe instead of Git Bash, or 3) Ensure the script exists in the webroot.">
0 commit comments