File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -36,27 +36,19 @@ Write-Host "Classpath length: $($CLASSPATH.Length)"
3636# Get absolute path to browserstack.yml
3737$configPath = Join-Path (Get-Location ) " browserstack.yml"
3838
39- # Create Java argument file (one argument per line) to avoid Windows command line length limit
39+ # Create Java argument file with only javaagent and classpath (the long parts)
4040$argFile = " .\mvn-exec-args.txt"
4141Write-Host " Creating argument file: $argFile "
4242$argFileContent = @"
4343-javaagent:$BROWSERSTACK_JAR
44- -Dbrowserstack.config=$configPath
45- -Dbrowserstack.framework=selenium
46- -Dbrowserstack.accessibility=true
47- -Dcucumber.publish.quiet=true
4844-cp
4945$CLASSPATH
50- com.browserstack.tests.RunCucumberTest
5146"@
5247Set-Content - Path $argFile - Value $argFileContent
5348
5449Write-Host " "
5550Write-Host " Argument file created successfully: $argFile "
5651Write-Host " "
5752Write-Host " Now run the following command:"
58- Write-Host " mvn exec:exec '-Dexec.executable=java' `" -Dexec.args=@$argFile `" "
59- Write-Host " "
60- Write-Host " Or use this syntax:"
61- Write-Host " mvn exec:exec -D exec.executable=java -D exec.args=@$argFile "
53+ Write-Host " mvn exec:exec '-Dexec.executable=java' '-Dexec.args=@$argFile -Dbrowserstack.config=$configPath -Dbrowserstack.framework=selenium -Dbrowserstack.accessibility=true -Dcucumber.publish.quiet=true com.browserstack.tests.RunCucumberTest'"
6254Write-Host " "
You can’t perform that action at this time.
0 commit comments