Errors about single step transformer being defined in a T-Engine were not being issued, because the baseUrl was set to "---" in the router.

This commit is contained in:
alandavis
2022-09-13 14:52:23 +01:00
parent 26c7246fc0
commit 61c276bb8e

View File

@@ -29,6 +29,7 @@ package org.alfresco.transform.base.registry;
import org.alfresco.transform.config.reader.TransformConfigResourceReader; import org.alfresco.transform.config.reader.TransformConfigResourceReader;
import org.alfresco.transform.config.TransformConfig; import org.alfresco.transform.config.TransformConfig;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.core.io.ClassPathResource; import org.springframework.core.io.ClassPathResource;
import org.springframework.core.io.FileSystemResource; import org.springframework.core.io.FileSystemResource;
import org.springframework.core.io.Resource; import org.springframework.core.io.Resource;
@@ -56,6 +57,8 @@ public class TransformConfigFromFiles
private TransformConfigFilesHistoric transformConfigFilesHistoric; private TransformConfigFilesHistoric transformConfigFilesHistoric;
@Autowired @Autowired
private TransformConfigResourceReader transformConfigResourceReader; private TransformConfigResourceReader transformConfigResourceReader;
@Value("${container.isTRouter}")
private boolean isTRouter;
@PostConstruct @PostConstruct
public void initFileConfig() public void initFileConfig()
@@ -67,7 +70,7 @@ public class TransformConfigFromFiles
{ {
String filename = resource.getFilename(); String filename = resource.getFilename();
transformConfigSources.add( transformConfigSources.add(
new AbstractTransformConfigSource(filename, filename,null) new AbstractTransformConfigSource(filename, filename,(isTRouter ? "---" : null))
{ {
@Override public TransformConfig getTransformConfig() @Override public TransformConfig getTransformConfig()
{ {