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.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()
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user