mirror of
https://github.com/Alfresco/alfresco-transform-core.git
synced 2025-08-14 17:58:27 +00:00
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:
@@ -29,6 +29,7 @@ package org.alfresco.transform.base.registry;
|
||||
import org.alfresco.transform.config.reader.TransformConfigResourceReader;
|
||||
import org.alfresco.transform.config.TransformConfig;
|
||||
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.FileSystemResource;
|
||||
import org.springframework.core.io.Resource;
|
||||
@@ -56,6 +57,8 @@ public class TransformConfigFromFiles
|
||||
private TransformConfigFilesHistoric transformConfigFilesHistoric;
|
||||
@Autowired
|
||||
private TransformConfigResourceReader transformConfigResourceReader;
|
||||
@Value("${container.isTRouter}")
|
||||
private boolean isTRouter;
|
||||
|
||||
@PostConstruct
|
||||
public void initFileConfig()
|
||||
@@ -67,7 +70,7 @@ public class TransformConfigFromFiles
|
||||
{
|
||||
String filename = resource.getFilename();
|
||||
transformConfigSources.add(
|
||||
new AbstractTransformConfigSource(filename, filename,null)
|
||||
new AbstractTransformConfigSource(filename, filename,(isTRouter ? "---" : null))
|
||||
{
|
||||
@Override public TransformConfig getTransformConfig()
|
||||
{
|
||||
|
Reference in New Issue
Block a user