压倒一切的战争类目录 [英] Overriding WAR classes directory

查看:280
本文介绍了压倒一切的战争类目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果您使用Ant通过任务,然后创建WAR(如解释的这里),它会自动创建在战争中的 WEB_INF /班/ 目录。我想改变这种生成的类/ 目录下,名称比方说,类路径/ 和想不通如何。

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.

如果这是可能的,会有人提供了一个code的例子,以及以显示如何做到这一点的文件的引用(我很好奇!)。谢谢!

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!

推荐答案

您不应更改别的东西的名称。

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

WAR 的目录结构文件为标准,定义了所有的一个 WEB-INF \\班。您的应用程序的类文件

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

这篇关于压倒一切的战争类目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆