hi,
i'm trying to generate code with javabasic cartridge
i've followed the instructions of Installation, created the workflow.oaw,
the workflow.properties and imported all libraries to Build Path but i found
some problems in my Root Template
this is my root template. the lines marked with italic are the ones with
errors
/**
* The entry point for the generation
*/
«DEFINE Root FOR uml::Model»
«EXPAND Root FOREACH (List[uml::Package])ownedElement»
«ENDDEFINE»
/**
* Creates all packages
*/
«DEFINE Root FOR uml::Package»
«EXPAND Root FOREACH ownedType.typeSelect(uml::Interface)»
«EXPAND Root FOREACH ownedType.typeSelect(JavaBasic::Entity)»
«EXPAND Root FOREACH
ownedType.typeSelect(uml::Class).select(e|e.getAppliedStereotypes().isEmpty)»
«EXPAND Root FOREACH nestedPackage»
«ENDDEFINE»
/**
* Creates all interfaces
*/
«DEFINE Root FOR uml::Interface»
«EXPAND
org::fornax::cartridges::uml2::javabasic::templates::Interface::interface»
«ENDDEFINE»
/**
* Creates all classes
*/
«DEFINE Root FOR uml::Class»
«EXPAND
org::fornax::cartridges::uml2::javabasic::templates::Class::class»
«ENDDEFINE»
«REM»
/**
* Create the interface, the abstract and the basic implementation
*/
«DEFINE Root FOR YOUR::Entity»
«EXPAND
org::fornax::cartridges::uml2::javabasic::templates::Entity::interface»
«EXPAND
org::fornax::cartridges::uml2::javabasic::templates::Entity::abstractClass»
«EXPAND
org::fornax::cartridges::uml2::javabasic::templates::Entity::basicClass»
«ENDDEFINE»
«ENDREM»
/**
* Dummy DEFINE for all elements with no generation purposes
*/
«DEFINE Root FOR Object»
«ENDDEFINE»
this template is the same which i found in the installation instructions.
The
errors are:
in ownedType.typeSelect(JavaBasic::Entity):
couldn't find type JavaBasic::Entity and Collection type Expected
in «EXPAND
org::fornax::cartridges::uml2::javabasic::templates::Interface::interface»:
Couldn't find definition
org::fornax::cartridges::uml2::javabasic::templates::Interface::interface
for type uml::Interface
in «EXPAND
org::fornax::cartridges::uml2::javabasic::templates::Class::class»:
Couldn't find definition
org::fornax::cartridges::uml2::javabasic::templates::Class::class for type
uml::Class
sorry for the long message ...
if anyone can help me, please answer this message
thank you in advance
adolfo
--
View this message in context:
http://www.nabble.com/Problem-with-javaBasic-tf4627415s17564.html#a13212583
Sent from the Fornax-Platform mailing list archive at Nabble.com.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Fornax-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fornax-developer