RE: Pause not working in batch file
> It should more likely be %-quadrupled That is strange, but it worked. I would never have thought to quadruple it! Thank you, Neil -- Neil Aggarwal, 972-834-1565, http://propfinancing.com We offer 30 year loans on single family houses! - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Pause not working in batch file
Mon, 8 Jan 2024 22:05:42 +0200, /Stanimir Stamenkov/: Mon, 8 Jan 2024 13:49:41 -0600, /Neil Aggarwal/: call mvn exec:exec -Dexec.executable="java" -Dexec.args="-Djava.library.path=C:\OneDrive\Dev\Jacob -cp %%classpath com.fiscalassets.tax.PrintForm1098s application.properties.FiscalAssets" I'm speculating you may need to double escape the % like (%-tripled): -cp %%%classpath It should more likely be %-quadrupled: -cp classpath See: https://ss64.com/nt/call.html#advanced This one (%-tripled) appears to apply when using CALL with an internal batch command. -- Stanimir - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Pause not working in batch file
Mon, 8 Jan 2024 13:49:41 -0600, /Neil Aggarwal/: I am trying to put my Maven command in a batch file so I can click on the icon to run it. [...] If I try putting call before the mvn command: call mvn exec:exec -Dexec.executable="java" -Dexec.args="-Djava.library.path=C:\OneDrive\Dev\Jacob -cp %%classpath com.fiscalassets.tax.PrintForm1098s application.properties.FiscalAssets" pause I get an error: Error: Could not find or load main class com.fiscalassets.tax.PrintForm1098s Caused by: java.lang.ClassNotFoundException: com.fiscalassets.tax.PrintForm1098s but the pause works. Anyone know what is happening here? I'm speculating you may need to double escape the % like (%-tripled): -cp %%%classpath See: https://ss64.com/nt/call.html#advanced -- Stanimir - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Pause not working in batch file
Hello all: I am trying to put my Maven command in a batch file so I can click on the icon to run it. I created this batch file: mvn exec:exec -Dexec.executable="java" -Dexec.args="-Djava.library.path=C:\OneDrive\Dev\Jacob -cp %%classpath com.fiscalassets.tax.PrintForm1098s application.properties.FiscalAssets" pause The maven command runs fine and creates the desired output, but the pause is not working and the window closes before I can read the screen. If I try putting call before the mvn command: call mvn exec:exec -Dexec.executable="java" -Dexec.args="-Djava.library.path=C:\OneDrive\Dev\Jacob -cp %%classpath com.fiscalassets.tax.PrintForm1098s application.properties.FiscalAssets" pause I get an error: Error: Could not find or load main class com.fiscalassets.tax.PrintForm1098s Caused by: java.lang.ClassNotFoundException: com.fiscalassets.tax.PrintForm1098s but the pause works. Anyone know what is happening here? Thank you, Neil -- Neil Aggarwal, 972-834-1565, http://propfinancing.com We offer 30 year loans on single family houses!