I want to pass the path of the project to the VM parameter of Tomcat.

Answered

I want to use the path of the project in 'VM / options of' Run / Debug Configurations> Tomcat Server '.

For example, "-Dsomefile=${PROJECT_DIR}/path/to/someone.txt".

Because, I want to specify a file as a relative path from the project.
Are there any environment variables available?

 

IntelliJ IDEA 2017.2.4
Build #IU-172.4155.36, built on September 12, 2017
Licensed to xxxxxxxxx
Subscription is active until June 22, 2018
JRE: 1.8.0_152-release-915-b11 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0

0

Please sign in to leave a comment.