Overriding WAR classes directory

一曲冷凌霜 提交于 2019-12-13 05:56:29

问题


If you use the Ant to create your WAR via the war task, then (as explained here) it will automatically create a WEB_INF/classes/ directory in the WAR. I would like to change the name of this generated classes/ directory to, say, classpath/ and can't figure out how.

If this is possible, would someone provide a code example as well as a reference to the documentation that shows how to do this (I'm curious!). Thanks!


回答1:


You shouldn't change the name of the classes to something else.

The directory structure of a WAR file is standard and defines a WEB-INF\classes for all the .class files of your application



来源:https://stackoverflow.com/questions/9366537/overriding-war-classes-directory

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!