[
https://issues.apache.org/jira/browse/TOMEE-1221?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chamil Jeewantha updated TOMEE-1221:
------------------------------------
Description:
The following code segment is unused hence should be removed.
if (standardContext.getConfigFile() == null) {
final String s = File.pathSeparator;
final File contextXmlFile = new File(standardContext.getDocBase() +
s + "META-INF" + s + "context.xml");
if (contextXmlFile.exists()) {
BackportUtil.getAPI().setConfigFile(standardContext,
contextXmlFile);
standardContext.setOverride(true);
}
}
Relevant Mail Thread Subject: Why File.pathSeparator used to create the
context.xml path - msg#41759
was:
The following code segment is unused hence should be removed.
if (standardContext.getConfigFile() == null) {
final String s = File.pathSeparator;
final File contextXmlFile = new File(standardContext.getDocBase() +
s + "META-INF" + s + "context.xml");
if (contextXmlFile.exists()) {
BackportUtil.getAPI().setConfigFile(standardContext,
contextXmlFile);
standardContext.setOverride(true);
}
}
> Unused code segment on tomee-catalina TomcatWebAppBuilder.java
> --------------------------------------------------------------
>
> Key: TOMEE-1221
> URL: https://issues.apache.org/jira/browse/TOMEE-1221
> Project: TomEE
> Issue Type: Improvement
> Affects Versions: 1.6.0.1
> Environment: N/A
> Reporter: Chamil Jeewantha
> Priority: Trivial
> Original Estimate: 10m
> Remaining Estimate: 10m
>
> The following code segment is unused hence should be removed.
> if (standardContext.getConfigFile() == null) {
> final String s = File.pathSeparator;
> final File contextXmlFile = new File(standardContext.getDocBase()
> + s + "META-INF" + s + "context.xml");
> if (contextXmlFile.exists()) {
> BackportUtil.getAPI().setConfigFile(standardContext,
> contextXmlFile);
> standardContext.setOverride(true);
> }
> }
> Relevant Mail Thread Subject: Why File.pathSeparator used to create the
> context.xml path - msg#41759
--
This message was sent by Atlassian JIRA
(v6.2#6252)