This repository has been archived on 2025-12-25. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
tdi-studio-se/main/plugins/org.talend.designer.codegen/resources/default_template.perljet

28 lines
909 B
Plaintext

<%@ jet
package="org.talend.designer.codegen.translators"
imports="
org.talend.core.model.process.INode
org.talend.designer.codegen.config.CodeGeneratorArgument
org.talend.core.model.temp.ECodePart
"
class="Default_template"
%>
<%
CodeGeneratorArgument codeGenArgument = (CodeGeneratorArgument) argument;
Object object = codeGenArgument.getArgument();
//This is only for the component, when it compile error, there will call this template file to generate.
//If the files in /resources compile error, ignore them.
if(object instanceof INode) {
INode node = (INode)codeGenArgument.getArgument();
String cid = node.getUniqueName();
ECodePart codePart = codeGenArgument.getCodePart();
String part = codePart.getName();
%>
The <%=part %> part of <%=cid %> compile with error, it can't generate any code, please check and correct it.
<%
}
%>