javaVSCode icon indicating copy to clipboard operation
javaVSCode copied to clipboard

read classpath from file

Open cmurczek opened this issue 8 years ago • 1 comments

I'm working on a gradle project which has a rather lengthy class path (which I figure would hold true for any but the most simplistic java project). Putting the whole thing into launch.json is rather inconvenient. In order to get support for Java in VSCode I'm using the Java Language Support extension. This requires me to have the classpath in a file called classpath.txt. It would be super nice if I could pass the name of this file as an argument to the Java Debugger extension, or even better have it use the classpath.txt file by default to get the classpath.

cmurczek avatar Aug 29 '16 13:08 cmurczek

Hi @c-mu Maybe using something like java -cp "$(cat classpath.txt)".

faustinoaq avatar Oct 25 '16 23:10 faustinoaq