|
|
|
|
|
|
|
|
|
|
|
|
Re: [XPAND] java.net.MalformedURLException: unknown protocol: ar [message #1692487 is a reply to message #1692482] |
Thu, 16 April 2015 08:50 |
|
Btw. the following code works nice for me: (requires org.artop.aal.examples.standalone)
module Test
Workflow {
bean = xxx.AutosarAwareStandaloneSetup {
platformUri = ".."
}
bean = org.artop.aal.examples.standalone.StandaloneResourceSet : rs {
}
component = org.eclipse.emf.mwe.utils.Reader {
modelSlot = "model"
uri = "platform:/resource/xxx/yyyy.arxml"
resourceSet = rs
}
...
}
with
import org.artop.aal.examples.standalone.AutosarStandaloneSetup;
import org.eclipse.emf.mwe.utils.StandaloneSetup;
public class AutosarAwareStandaloneSetup extends StandaloneSetup {
public AutosarAwareStandaloneSetup() {
super();
AutosarStandaloneSetup.doSetupForAutosar40();
}
}
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Day Job: https://www.everest-systems.com
|
|
|
|
|
|
|
|
Re: [XPAND] java.net.MalformedURLException: unknown protocol: ar [message #1692506 is a reply to message #1692503] |
Thu, 16 April 2015 09:47 |
|
Hi,
i have no mwe1 thus i cannot do the backport
what i posted before is my complete workflow. (what i do with the model does not matter)
so the only change you need is:
(1) you need that special standalonesetup that does the proper registration
(2) the xtext reader needs a special resourceset
so just from guessing:
<bean class="xxx.AutosarAwareStandaloneSetup" platformUri = ".." />
<bean id="myRS" class="org.artop.aal.examples.standalone.StandaloneResourceSet"/>
<component class="org.eclipse.emf.mwe.utils.Reader">
<modelSlot value="model" />
<uri value="platform:/resource/..." />
<resourceSet idRef="myRS"/>
</component>
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Day Job: https://www.everest-systems.com
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: [XPAND] java.net.MalformedURLException: unknown protocol: ar [message #1693627 is a reply to message #1692736] |
Mon, 27 April 2015 05:57 |
lucky star Messages: 44 Registered: April 2015 |
Member |
|
|
HI,
continuation to above...
while i am calling one model elements within another model...i am trying to print <<model.eAllContents>> in this case i am getting the list of all the elements/modules, but when i am calling the modules(i.e «EXPAND RTEMODULE FOREACH AUTOSAR::EcucDefs::Rte» or «model.eAllContents.typeSelect(AUTOSAR::EcucDefs::Rte)») it is showing error "unknown type"...
6727 ERROR AbstractExpressionsUsingWorkflowComponent - Error in Component of type org.eclipse.xpand2.Generator:
EvaluationException : Unknown type 'AUTOSAR::EcucDefs::Rte'
[318,22] on line 9 'AUTOSAR::EcucDefs::Rte'
templates::Rte.xpt[919,49] on line 39 'EXPAND Rte_Type_H::include_Type_H(model) FOR this'
templates::Rte.xpt[172,24] on line 7 'EXPAND Rte_Type_H(model)'
[23,57] on line 1 'EXPAND templates::Rte::RteGenerate(model) FOR systemmodel'
6727 ERROR WorkflowEngine - Workflow interrupted. Reason: Unknown type 'AUTOSAR::EcucDefs::Rte'
6727 ERROR WorkflowEngine - [ERROR]: Unknown type 'AUTOSAR::EcucDefs::Rte'(Element: model.eAllContents.typeSelect(AUTOSAR::EcucDefs::Rte); Reported by: Generator: generating 'templates::Rte::RteGenerate(model) FOR systemmodel' => [APPEND:src-gen(overwrite=true,append=true,fileEncoding=Cp1252), src-gen/])
6727 ERROR WorkflowEngine - [ERROR]: Unknown type 'AUTOSAR::EcucDefs::Rte'(Element: EXPRESSION: model.eAllContents.typeSelect(AUTOSAR::EcucDefs::Rte); Reported by: Generator: generating 'templates::Rte::RteGenerate(model) FOR systemmodel' => [APPEND:src-gen(overwrite=true,append=true,fileEncoding=Cp1252), src-gen/])
6727 ERROR WorkflowEngine - [ERROR]: Unknown type 'AUTOSAR::EcucDefs::Rte'(Element: include_Type_H(autosartoplevelstructure::AUTOSAR model) : autosartoplevelstructure::AUTOSAR; Reported by: Generator: generating 'templates::Rte::RteGenerate(model) FOR systemmodel' => [APPEND:src-gen(overwrite=true,append=true,fileEncoding=Cp1252), src-gen/])
6727 ERROR WorkflowEngine - [ERROR]: Unknown type 'AUTOSAR::EcucDefs::Rte'(Element: EXPAND Rte_Type_H::include_Type_H(model) FOR this; Reported by: Generator: generating 'templates::Rte::RteGenerate(model) FOR systemmodel' => [APPEND:src-gen(overwrite=true,append=true,fileEncoding=Cp1252), src-gen/])
6727 ERROR WorkflowEngine - [ERROR]: Unknown type 'AUTOSAR::EcucDefs::Rte'(Element: «FILE "Rte_Type.h"»...«ENDFILE»; Reported by: Generator: generating 'templates::Rte::RteGenerate(model) FOR systemmodel' => [APPEND:src-gen(overwrite=true,append=true,fileEncoding=Cp1252), src-gen/])
6727 ERROR WorkflowEngine - [ERROR]: Unknown type 'AUTOSAR::EcucDefs::Rte'(Element: Rte_Type_H(autosartoplevelstructure::AUTOSAR model) : autosartoplevelstructure::AUTOSAR; Reported by: Generator: generating 'templates::Rte::RteGenerate(model) FOR systemmodel' => [APPEND:src-gen(overwrite=true,append=true,fileEncoding=Cp1252), src-gen/])
6727 ERROR WorkflowEngine - [ERROR]: Unknown type 'AUTOSAR::EcucDefs::Rte'(Element: EXPAND Rte_Type_H(model); Reported by: Generator: generating 'templates::Rte::RteGenerate(model) FOR systemmodel' => [APPEND:src-gen(overwrite=true,append=true,fileEncoding=Cp1252), src-gen/])
6727 ERROR WorkflowEngine - [ERROR]: Unknown type 'AUTOSAR::EcucDefs::Rte'(Element: RteGenerate(autosartoplevelstructure::AUTOSAR model) : autosartoplevelstructure::AUTOSAR; Reported by: Generator: generating 'templates::Rte::RteGenerate(model) FOR systemmodel' => [APPEND:src-gen(overwrite=true,append=true,fileEncoding=Cp1252), src-gen/])
6727 ERROR WorkflowEngine - [ERROR]: Unknown type 'AUTOSAR::EcucDefs::Rte'(Element: EXPAND templates::Rte::RteGenerate(model) FOR systemmodel; Reported by: Generator: generating 'templates::Rte::RteGenerate(model) FOR systemmodel' => [APPEND:src-gen(overwrite=true,append=true,fileEncoding=Cp1252), src-gen/])
|
|
|
|