|
|
|
@ -2,8 +2,8 @@ package com.fr.design.backup;
|
|
|
|
|
|
|
|
|
|
import com.fanruan.carina.context.CarinaApplicationContext; |
|
|
|
|
import com.fanruan.carina.standard.PartitionManager; |
|
|
|
|
import com.fanruan.carina.standard.PartitionManagerImpl; |
|
|
|
|
import com.fr.start.server.EmptyServletContext; |
|
|
|
|
import com.fr.log.FineLoggerFactory; |
|
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
|
|
|
|
|
|
import javax.servlet.ServletContext; |
|
|
|
|
|
|
|
|
@ -17,7 +17,9 @@ import java.util.Properties;
|
|
|
|
|
* Created on 2024/5/14 |
|
|
|
|
*/ |
|
|
|
|
public class DesignContext extends CarinaApplicationContext { |
|
|
|
|
public static final String WEB_INF = "\\WEB-INF"; |
|
|
|
|
private String designWebInfPath; |
|
|
|
|
private String designDataPath; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public DesignContext(ServletContext servletContext, PartitionManager manager, Properties carinaApplicationProperties) { |
|
|
|
@ -36,5 +38,14 @@ public class DesignContext extends CarinaApplicationContext {
|
|
|
|
|
|
|
|
|
|
public void setDesignWebInfPath(String designWebInfPath) { |
|
|
|
|
this.designWebInfPath = designWebInfPath; |
|
|
|
|
if (StringUtils.isNotEmpty(this.designWebInfPath)) { |
|
|
|
|
this.designDataPath = this.designWebInfPath.replace(WEB_INF, StringUtils.EMPTY); |
|
|
|
|
} |
|
|
|
|
FineLoggerFactory.getLogger().info("[DesignContext] designWebInfPath:{}, designDataPath:{}", this.designWebInfPath, this.designDataPath); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public String getDataPath() { |
|
|
|
|
return designDataPath; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|