简体   繁体   中英

Change folder name in webapp when deployin in Tomcat from Eclipse

I have a project named "test-xxx" in eclipse. When i choose Run as > Run on server , a "test-xxx" folder is created in tomcat webapps folder. I want to change this folder name to deploy my project in a "test" folder, not "test-xxx", and keeping the possibility to debug/publish my application. This project is very particular and I can't rename it in eclipse.

Maybe i can make a SYMLINK "test" that point to "test-xxx", but whith this hack, I need tell to tomcat to not deploy the folder "test-xxx", only test

Do you have any tips for doing this or is it impossible?

In Project Properties, go to Web Project Settings and change the context root to the prefix you want; it's auto-populated with the project name.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM