Unix For Testers - 36- Execute Batch File ( .bat file) from java code - using PlexusUtils

Опубликовано: 05 Октябрь 2024
на канале: AutomationTalks
1,143
6

Unix for Testers (Unix for ETL Testing) - Complete Course with all Manual and Automation of processes related to Unix.

I want to execute a batch file from a java program. ... When Java is running and you use Runtime.exec() with a relative path, relative means ... ProcessBuilder pb = new ProcessBuilder("server.bat"); pb.directory(new File(deployDir + ... Plexus utils provides a Commandline type that can invoke an arbitrary ...