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
Add --cp flag for external classpath contributions
Allow extensions and plugins to inject proprietary JARs into
the JVM classpath via a global --cp flag on delegated commands.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: docs/spec.md
+19-3Lines changed: 19 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -167,15 +167,27 @@ Everything else passes through to the JVM:
167
167
* Delegated to Karate JAR
168
168
* Launcher constructs JVM command:
169
169
* JRE path
170
-
* Classpath (fatjar + plugins + ext/*.jar)
170
+
* Classpath (fatjar + ext/*.jar + --cp entries)
171
171
* JVM opts from config
172
172
173
-
### **E. Extensions Support**
173
+
### **E. Extensions & Classpath**
174
174
175
175
***User extensions:**`~/.karate/ext/` — manually dropped JARs, always added to classpath
176
+
***`--cp` flag:** Additional classpath entries appended after ext JARs. Can be specified multiple times. Useful for IDE integrations and proprietary JARs.
176
177
* For v1, extensions are managed manually by dropping JAR files into the `ext/` folder
177
178
* Future versions may add managed plugin installation via manifest
0 commit comments