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:
@@ -70,7 +70,7 @@ public class TransformConfigFromFiles
|
||||
{
|
||||
String filename = resource.getFilename();
|
||||
transformConfigSources.add(
|
||||
new AbstractTransformConfigSource(filename, filename,(isTRouter ? "---" : null))
|
||||
new AbstractTransformConfigSource(filename, filename, isTRouter ? null : "---")
|
||||
{
|
||||
@Override public TransformConfig getTransformConfig()
|
||||
{
|
||||
|
@@ -29,6 +29,7 @@ package org.alfresco.transform.base.registry;
|
||||
import org.alfresco.transform.base.TransformEngine;
|
||||
import org.alfresco.transform.config.TransformConfig;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import javax.annotation.PostConstruct;
|
||||
@@ -44,6 +45,8 @@ public class TransformConfigFromTransformEngines
|
||||
private List<TransformEngine> transformEngines;
|
||||
@Autowired
|
||||
private List<TransformConfigSource> transformConfigSources;
|
||||
@Value("${container.isTRouter}")
|
||||
private boolean isTRouter;
|
||||
|
||||
@PostConstruct
|
||||
public void initTransformEngineConfig()
|
||||
@@ -57,7 +60,7 @@ public class TransformConfigFromTransformEngines
|
||||
{
|
||||
String engineName = transformEngine.getTransformEngineName();
|
||||
transformConfigSources.add(
|
||||
new AbstractTransformConfigSource(engineName, engineName,null)
|
||||
new AbstractTransformConfigSource(engineName, engineName, isTRouter ? null : "---")
|
||||
{
|
||||
@Override public TransformConfig getTransformConfig()
|
||||
{
|
||||
|
Reference in New Issue
Block a user