我正在使用 RAD7.5 进行项目开发。我的 web.xml 文件如下所示:
<context-param>
<param-name>config.file</param-name>
<param-value>@project.config.location@</param-value>
</context-param>
所以基本上@project.config.location@是在ant-build过程中使用filterset代码从属性文件(config.properties)中检索出来的,如下所示:
<copy todir="${project.build.dir}">
<fileset dir="${web.project.webcontent.dir}" excludes="**/classes/**" />
<filterset>
<filtersfile file="${web.project.src.dir}/filters/${file.filter.name}" />
</filterset>
</copy>
所以我的问题是如何配置 RAD7.5 以便在本地部署应用程序时(右键单击项目 EAR -> 在服务器上运行)将替换这些过滤器。我一直在努力寻找解决方案,但在网上找不到任何东西。有什么建议吗?