
templates.j2ee.maven2.mda.src.main.config.andromda.xml.vsl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of andromda-andromdapp-project-j2ee-maven2
Show all versions of andromda-andromdapp-project-j2ee-maven2
AndroMDA powered J2EE Maven2 Application
The newest version!
<andromda xmlns="http://andromda.org/core/configuration"> <!-- See http://docs.andromda.org/configuration.html for andromda.xml properties documentation --> <properties> <property name="modelValidation">${validation}</property> <property name="xmlValidation">true</property> <property name="failOnValidationErrors">true</property> <property name="outputEncoding">ISO-8859-1</property> <!-- Comma separated list of cartridges to be processed by namespace name, such as java,webservice. Empty = true = process all --> <property name="cartridgeFilter">${filter}</property> <!-- Debug andromda processing using example log4j.xml file --> <!--property name="loggingConfigurationUri">file:${project.basedir}/log4j.xml</property--> </properties> <!-- Server will load and validate model in the background automatically when anything changes. To start server from mda directory: mvn andromda:start-server. Leave commented, or else AndroMDA will try to connect each time.> <server> <host>localhost</host> <port>4447</port> </server --> <repositories> #if ($modelType.equals("uml1.4")) <repository name="netBeansMDR"> <models> <model> #elseif ($modelType.equals("uml2") || $modelType.equals("emf-uml22") || $modelType.equals("rsm7")) <repository name="emf-uml22"> <models> <model type="emf-uml22"> #end #if ($stringUtils.isNotBlank($model)) <uri>$model</uri> #else <uri>${model.uri}</uri> #end <!-- List any additional referenced models needed for code generation here, even if already referenced internally within the model file --> <!--uri>file:${project.basedir}/src/main/uml/AdditionalModel.emx</uri--> <moduleSearchLocations> #if ($modelType.equals("uml1.4")) <location patterns="**/${andromda.version}/*.xml.zip">${settings.localRepository}/org/andromda/profiles/uml14</location> <location patterns="**/*.xml">jar:file:${settings.localRepository}/org/omg/profiles/uml14/UML_Standard_Profile/1.0/UML_Standard_Profile-1.0.jar!/</location> <!-- Change to UML_Standard_Profile in local MagicDraw installation directory: <location patterns="**/*.xml.zip,**/*.xml">${magicdraw.home}/profiles</location> --> #elseif ($modelType.equals("uml2") || $modelType.equals("emf-uml22") || $modelType.equals("rsm7")) <location patterns="**/*.uml,**/*.e*x">${project.basedir}/src/main/uml</location> <location patterns="**/${andromda.version}/*.e*x">${settings.localRepository}/org/andromda/profiles/emf/rsm75</location> <location patterns="**/${andromda.version}/*.uml">${settings.localRepository}/org/andromda/profiles/emf/uml22</location> #end </moduleSearchLocations> <!-- Can filter in/out specific model packages (in UML notation) to generate code from (default true=process all) --> <!--modelPackages> <modelPackage process="false">org::andromda::sample::notprocessed</modelPackage> </modelPackages--> <!-- Can filter in/out specific andromda model validation constraints (default true=validate all) --> #if ($jsf || $struts) <!-- JSF needs to disable these validations because there are situations where we can't use native types in required (multiplicity > 0) parameters or VO attributes--> <constraints> <constraint enforce="false">**::wrapped primitive attribute should not be required</constraint> <constraint enforce="false">**::wrapped primitive parameter should not be required</constraint> </constraints> #else <!--constraints enforceAll="true"> <constraint enforce="false">**::wrapped primitive attribute should not be required</constraint> <constraint enforce="false">**::wrapped primitive parameter should not be required</constraint> <constraint enforce="false">**::wrapped primitive operation return should not be required</constraint> <constraint enforce="false">**::primitive attribute must be required</constraint> <constraint enforce="false">**::primitive operation return must be required</constraint> <constraint enforce="false">**::primitive parameter must be required</constraint> <constraint enforce="false">org::andromda::metafacades::uml::Entity::entities can only generalize other entities</constraint> <constraint enforce="false">org::andromda::metafacades::uml::Entity::entity must have at least one primary key</constraint> </constraints--> #end </model> </models> </repository> </repositories> <!-- The mappingsSearchLocations are used by the below '*MappingsUri' namespace properties (e.g. languageMappingsUri) so that we can use a "logical" name from the content of any *.xml files in the search locations (instead of having to specify explicit paths...). Except for 'profileMappingsUri', this approach did not seem to work as there is no "logical" mapping name. mappingsUri is specified without 'Mappings' suffix on file name. See http://docs.andromda.org/mappings.html. A default empty mda/src/main/config/mappings/JavaMappings.xml is provided with the generated project. It can be used to customize mappings from UML to Java datatypes used by all cartridges. --> <mappingsSearchLocations> <!-- Add additional mappings files under mda/src/main/config/mappings, referenced by languageMappingsUri --> <location patterns="*.xml">${conf.dir}/mappings</location> </mappingsSearchLocations> <!-- To add/remove an additional cartridge to the code generation process (i.e. modeldump): - Add the namespace elements to andromda.xml - Add the cartridge dependency (including version) to mda/pom.xml - Add additional build dependencies to individual project pom.xml files --> #if ($ejb3) #set ($ejb=false) #set ($hibernate=false) #set ($spring=false) #end <namespaces> <!-- namespace property values used by ALL cartridges --> <!-- Variable references refer to properties defined in root pom.xml or mda/pom.xml files --> <!-- See http://www.andromda.org/docs/andromda-metafacades/andromda-uml-metafacades/andromda-metafacades-emf-uml2/namespace.html --> <namespace name="default"> <properties> <!-- Use enums, strongly typed collections with templates, and @annotation markups --> <property name="enableTemplating">true</property> <property name="enableAnnotations">true</property> <property name="typeSafeEnumsEnabled">true</property> <!-- Replaces default JavaMappings with customized mappings which extend Java, for PrimitiveTypes etc. --> <property name="languageMappingsUri">JavaMappings</property> <property name="wrapperMappingsUri">JavaWrapper</property> <property name="sqlMappingsUri">${sql.mappings}</property> <property name="jdbcMappingsUri">JDBC</property> <property name="maxSqlNameLength">30</property> <property name="foreignKeySuffix">_FK</property> <property name="ejbJndiNamePrefix">${application.id}-${project.version}</property> <!-- masking properties configure the way your model element names are generated --> <property name="modelElementNameMask">noaccent</property> <!-- property name="classifierNameMask">none</property> <property name="operationNameMask">none</property> <property name="roleNameMask">none</property> <property name="enumerationNameMask">none</property> <property name="entityNameMask">none</property> <property name="entityPropertyNameMask">none</property> <property name="parameterNameMask">none</property --> <property name="xmlEncoding">ISO-8859-1</property> <property name="enumerationLiteralNameMask">upperunderscore</property> #if ($spring || $hibernate) <property name="hibernateVersion">${hibernate.version}</property> <property name="hibernateEntityAnnotations">false</property> #end <property name="persistenceContainerName">jboss</property> <!-- Override default @todo to set to Eclipse default> <property name="toDoTag">TODO</property --> <!-- Automatically makes English names plural (generally adds s if missing). default=true, set to false if using non-English models or Jaxb/CXF 2.0 or JAXB simpleBindingMode=false.> <property name="pluralizeAssociationEndNames">true</property> <property name="pluralizeAttributeNames">true</property> <property name="pluralizeParameterNames">true</property --> <!-- JDK5 error on @Override on methods implemented from Interfaces --> <property name="javaVersion">${javaVersion}</property> #if ($cxf) <!-- CXF Only - output @XmlSeeAlso annotations and java2ws for CXF 2.1 and later --> <property name="cxfVersion">${cxf.version}</property> <!-- Output WSDL XSD and JAXB object attributes as XML attributes instead of XML Elements --> <property name="xmlAttributes">true</property> <!-- Jaxb2 Adapter classes for customized parse/print, non-standard Java datatypes --> <property name="XMLDateAdapter"></property> <property name="XMLDateTimeAdapter"></property> <property name="XMLTimeAdapter"></property> <!-- Needed to prevent Integer - BigInteger mismatch with CXF JAXB generated client code --> <!--property name="XMLIntegerAdapter"></property> <property name="XMLLongAdapter"></property--> <!-- Needed to convert from primitive to wrapped Boolean for the correct get/isBoolean accessor from Jaxb2 --> <property name="XMLBooleanAdapter"></property> <!-- Allow new optional unexpected elements in XML, for forward compatibility --> <property name="customValidators">javax.xml.bind.helpers.IgnoreUnexpectedElementsHandler</property> #else <property name="xmlAttributes">false</property> #end </properties> </namespace> #if ($ejb) <!-- See http://docs.andromda.org/andromda-cartridges/andromda-ejb-cartridge/namespace.html --> <namespace name="ejb"> <properties> <property name="entity-beans">${core.generated.dir}</property> <property name="session-beans">${core.generated.dir}</property> <property name="entity-impls">${core.manual.java.dir}</property> <property name="session-impls">${core.manual.java.dir}</property> </properties> </namespace> #elseif ($ejb3) <!-- See http://www.andromda.org/docs/andromda-cartridges/andromda-ejb3-cartridge/namespace.html --> <namespace name="ejb3"> <properties> <property name="dataSourceName">${dataSource.name}</property> <property name="dataSource">${dataSource}</property> <property name="username">${jdbc.username}</property> <property name="password">${jdbc.password}</property> <property name="driver">${jdbc.driver}</property> <property name="connectionUrl">${jdbc.url}</property> <property name="testDialect">${testdb.dialect}</property> <property name="testDriver">${testdb.driver}</property> <property name="testConnectionUrl">${testdb.url}</property> <property name="testUsername">${testdb.username}</property> <property name="testPassword">${testdb.password}</property> <property name="entity-beans">${core.generated.dir}</property> <property name="entity-impls">${core.manual.java.dir}</property> <property name="entity-config">${core.generated.dir}</property> <property name="session-beans">${core.generated.dir}</property> <property name="session-impls">${core.manual.java.dir}</property> <property name="session-config">${core.generated.dir}</property> <property name="message-driven-beans">${core.generated.dir}</property> <property name="message-driven-impls">${core.manual.java.dir}</property> <property name="daos">${core.generated.dir}</property> <property name="dao-impls">${core.manual.java.dir}</property> <property name="commons">${common.generated.dir}</property> <property name="user-types">${common.generated.dir}</property> <property name="services">${core.generated.dir}</property> <property name="application-config">${application.config.dir}</property> <property name="application-metainf">${application.metainf.dir}</property> <property name="test-config">${core.manual.test.resources}</property> <property name="tests">${core.generated.test.dir}</property> <property name="test-impls">${core.manual.test.dir}</property> <property name="ejb3TypesPackage">${application.package}</property> <property name="persistenceContextUnitName">${application.id}</property> <property name="entityManagerName">${application.id}</property> <property name="entityManagerJTADataSource">${dataSource}</property> <property name="hibernateDialect">${hibernate.dialect}</property> <property name="hibernateHbm2DDLAuto">update</property> <!-- Comment to disable $persistenceProviderExtensions specific extensions such as Cache, Types, Validations --> <property name="persistenceProviderExtensions">$persistenceProviderExtensions</property> <!-- uncomment to specify transaction manager <property name="hibernateTransactionManagerLookupClass">org.hibernate.transaction.JBossTransactionManagerLookup</property> --> <!-- uncomment to enable ejb3 merge mapping <property name="mergeMappingsUri">file:${conf.dir}/mappings/EJB3MergeMappings.xml</property> --> <!-- uncomment to enable EJB security <property name="securityRealm">${application.id}</property> --> #if ($ear) <property name="jndiNamePrefix">${application.id}-${project.version}</property> #end <property name="hibernateEnableCache">false</property> <property name="hibernateEnableAssociationsCache">false</property> <property name="hibernateUseQueryCache">false</property> <property name="useDefaultCacheRegion">false</property> <property name="hibernateCacheProvider">org.jboss.ejb3.entity.TreeCacheProviderHook</property> <property name="hibernateTreecacheMbeanObject">jboss.cache:service=EJB3EntityTreeCache</property> <!-- uncomment to enable default entity cache settings <property name="hibernateEntityCache">TRANSACTIONAL</property> --> <!-- uncomment to enable default association caching configuration <property name="hibernateAssociationCache">TRANSACTIONAL</property> --> <property name="enableClustering">false</property> #if ($jsr181Webservice) <property name="webServiceEnabled">true</property> #else <property name="webServiceEnabled">false</property> #end <property name="webServiceContextRoot">/${application.id}-ws</property> <property name="webServiceUrlPattern">/services</property> #if ($jbossSeam) <property name="seamEnabled">true</property> <property name="persistenceProviderExtensions">hibernate</property> #end </properties> </namespace> #elseif ($hibernate) <!-- See http://docs.andromda.org/andromda-cartridges/andromda-hibernate-cartridge/namespace.html --> <namespace name="hibernate"> <properties> <property name="hibernateTypeMappingsUri">Hibernate</property> <property name="dataSource">${dataSource}</property> <property name="hibernateDialect">${hibernate.dialect}</property> <property name="hibernateInheritanceStrategy">${hibernate.inheritance.strategy}</property> <property name="hibernateTransactionManagerLookup">${hibernate.transaction.manager.lookup}</property> <property name="customTypesPackage">${application.package}</property> <property name="hibernateJdbcBatchSize">0</property> <property name="hibernateEnableCache">false</property> <property name="hibernateEnableAssociationsCache">false</property> <property name="hibernateQueryUseNamedParameters">true</property> <property name="compositionDefinesEagerLoading">true</property> <property name="hibernateCacheProvider">net.sf.ehcache.hibernate.EhCacheProvider</property> <property name="hibernateQueryCacheFactory">org.hibernate.cache.StandardQueryCacheFactory</property> <property name="hibernateTransactionFactoryClass">org.hibernate.transaction.JTATransactionFactory</property> <property name="persistenceContextUnitName">${application.id}</property> <property name="entityManagerName">${application.id}</property> <property name="entityManagerJTADataSource">${dataSource}</property> <property name="entities">${core.generated.dir}</property> <property name="entity-impls">${core.manual.java.dir}</property> <property name="entity-mappings">${core.generated.dir}</property> <property name="user-types">${core.generated.dir}</property> <property name="session-beans">${core.generated.dir}</property> <property name="session-impls">${core.manual.java.dir}</property> <property name="configuration">${core.generated.dir}</property> <property name="cache">${core.generated.dir}</property> <!-- uncomment to enable EJB security <property name="securityRealm">${application.id}</property> --> </properties> </namespace> #elseif ($spring) <!-- See http://docs.andromda.org/andromda-cartridges/andromda-spring-cartridge/namespace.html --> <namespace name="spring"> <properties> #if ($groovy) <property name="implementationLanguage">groovy</property> #end #if ($embeddedJetty) <!-- uncomment to use the context configured datasource #end <property name="dataSource">${dataSource}</property> #if ($embeddedJetty) --> #end <property name="username">${jdbc.username}</property> <property name="password">${jdbc.password}</property> <property name="driver">${jdbc.driver}</property> <property name="connectionUrl">${jdbc.url}</property> <property name="hibernateDialect">${hibernate.dialect}</property> <property name="hibernateHbm2DDLAuto">update</property> <property name="hibernateQueryUseNamedParameters">true</property> <property name="hibernateEnableCache">false</property> <property name="sessionFactory">org.springframework.orm.hibernate3.LocalSessionFactoryBean</property> <property name="localTransactionManager">org.springframework.orm.hibernate3.HibernateTransactionManager</property> <property name="hibernateCacheProvider">net.sf.ehcache.hibernate.EhCacheProvider</property> <property name="hibernateQueryCacheFactory">org.hibernate.cache.StandardQueryCacheFactory</property> <property name="mergeMappingsUri">file:${conf.dir}/mappings/SpringMergeMappings.xml</property> #if ($war) <property name="transactionManager">org.springframework.orm.hibernate3.HibernateTransactionManager</property> #end <property name="hibernateInheritanceStrategy">${hibernate.inheritance.strategy}</property> <property name="springTypesPackage">${application.package}</property> #if ($webservice && !$cxf) <property name="javaTypeConversionIgnoreList">java.util.Date,java.sql.Timestamp,java.sql.Date</property> #if ($axis) <property name="webServiceOutgoingAttachmentHandlerCallPattern">${application.package}.AttachmentHandler.saveAttachment(content, contentType, dime)</property> <property name="webServiceIncomingAttachmentHandlerCallPattern">${application.package}.AttachmentHandler.getAttachments()</property> #end #end <!-- Specialized use: OSGI, RichClient, remoting, generated JDBC tests --> <!--property name="advice-impls">${core.generated.dir}</property> <property name="remoting-war-support">${core.manual.java.dir}</property> <property name="open-session-in-view">${core.manual.java.dir}</property> <property name="client-config">${core.manual.test.dir}</property> <property name="client">${core.manual.java.dir}</property> <property name="client-test">${core.manual.test.dir}</property> <property name="osgi">${core.generated.dir}</property--> <property name="daos">${core.generated.dir}</property> <property name="dao-impls">#if($groovy)${core.manual.groovy.dir}#else${core.manual.java.dir}#end</property> <property name="spring-configuration">${core.generated.dir}</property> <property name="server-test-config">${core.manual.test.resources}</property> <property name="server-test">${core.generated.test.dir}</property> <property name="services">${core.generated.dir}</property> <property name="service-impls">#if($groovy)${core.manual.groovy.dir}#else${core.manual.java.dir}#end</property> <property name="service-interfaces">${core.generated.dir}</property> <property name="criteria">${common.generated.dir}</property> <property name="value-objects">${common.generated.dir}</property> #if ($ear) #if ($ejb || $ejb3) <property name="enableSpringTransactionsWhenEjbsEnabled">false</property> #else <property name="enableSpringTransactionsWhenEjbsEnabled">true</property> #end <!-- to remove any dependency on EJB, comment the following property --> <property name="session-ejbs">${core.generated.dir}</property> <!-- uncomment to enable EJB security <property name="securityRealm">${application.id}</property> --> #end </properties> </namespace> <!-- See http://docs.andromda.org/andromda-cartridges/andromda-hibernate-cartridge/namespace.html --> <namespace name="hibernate"> <properties> <property name="hibernateEnableCache">false</property> <property name="hibernateEnableAssociationsCache">false</property> <property name="hibernateTypeMappingsUri">Hibernate</property> <property name="hibernateInheritanceStrategy">${hibernate.inheritance.strategy}</property> <property name="defaultHibernateGeneratorClass">${hibernate.generatorClass}</property> <property name="hibernateAggregationCascade">delete</property> <property name="hibernateDefaultCascade">none</property> <property name="entities">${core.generated.dir}</property> <property name="entity-impls">${core.manual.java.dir}</property> <property name="entity-mappings">${core.generated.dir}</property> <property name="user-types">${core.generated.dir}</property> <property name="customTypesPackage">${application.package}</property> <property name="compositionDefinesEagerLoading">true</property> <property name="cache">${core.generated.dir}</property> </properties> </namespace> #end #if ($workflow) <!-- See http://docs.andromda.org/andromda-cartridges/andromda-jbpm-cartridge/namespace.html --> <namespace name="jbpm"> <properties> <property name="definitions">${workflow.generated.dir}</property> <property name="handlers">${workflow.generated.dir}</property> <property name="handler-impls">${workflow.manual.dir}/java</property> <property name="helpers">${workflow.generated.dir}</property> <property name="nodes">${workflow.generated.dir}</property> <property name="clients">${workflow.generated.dir}</property> <property name="configuration">${workflow.manual.dir}/conf</property> <property name="clientPackage">${application.package}.business.process</property> </properties> </namespace> #end #if ($webservice && !$jsr181Webservice) <!-- See http://docs.andromda.org/andromda-cartridges/andromda-webservice-cartridge/namespace.html --> <namespace name="webservice"> <properties> <property name="soapStack">$soapStack</property> #if ($cxf) <property name="cxfVersion">${cxf.version}</property> <!-- CXF Only - supports SOAP 1.1 and 1.2. Default=1.1> <property name="soapVersion">1.2</property --> #end #if ($axis) <property name="axisVersion">$axisVersion</property> <property name="schemaTypeMappingsUri">AxisWSDLMappings</property> <property name="languageMappingsUri">AxisJavaMappings</property> #else <property name="springVersion">3.0</property> <property name="schemaTypeMappingsUri">XmlSchema</property> <property name="languageMappingsUri">JavaMappings</property> #end <property name="defaultProvider">RPC</property> <property name="applicationName">${application.id}</property> <property name="wsdlSoapAddress">http://${service.host}:${service.port}/${application.id}-ws/services</property> <property name="webserviceTypesPackage">${application.package}</property> #if ($spring || $hibernate) <property name="ejbInterfacePattern">{0}.ejb.{1}</property> <property name="ejbHomeInterfacePattern">{0}.ejb.{1}Home</property> #elseif ($ejb) <property name="ejbInterfacePattern">{0}.ejb.{1}</property> <property name="ejbHomeInterfacePattern">{0}.ejb.{1}LocalHome</property> #else <property name="rpcClassNamePattern">{0}.{1}WSDelegator</property> #end #if ($axisVersion.equals("1")) <property name="wsdls">${webservice.generated.wsdl.dir}</property> #elseif ($jaxws || $cxf) <!-- maxOccurs=unlimited is generated instead of arrayOf<> wrapper types --> <property name="useArrayWrapper">false</property> <property name="reverseNamespace">true</property> <property name="defaultStyle">document</property> <property name="defaultUse">literal</property> <property name="defaultParameterStyle">wrapped</property> <!--Use minOccurs=0 for elements and required=false for attributes, instead of nillable=true--> <property name="makeNillable">false</property> <!--WSDL imports XSD, package must be stereotyped with 'XMLSchema' so that imported xsd file is created.--> <property name="importedXSD">true</property> <property name="simpleBindingMode">true</property> <!-- CXF XJC binding arguments, using Jaxb2 commons plugins which must be added to %JAXB_HOME%\commons directory. Suggested value: -Xcommons-lang,-Xcommons-lang:ToStringStyle=DEFAULT_STYLE,-Xdefault-value,-Xvalue-constructor,-Xcollection-setter-injector,-simple-preserve --> <property name="xjcArguments">-Xts,-Xts:style:simple,-Xdv</property> <!-- webserviceHost:webservicePort/webContext/servicesPath used in wsdl and spring configuration --> <property name="webserviceHost">${service.host}</property> <property name="webservicePort">${service.port}</property> <property name="webContext">${application.id}-webservice</property> <property name="servicesPath">services</property> <!-- Creates default/dummy implementation for service, iterating down through parameter hierarchy --> <property name="generateMethodImpl">true</property> <property name="wsdls">${webservice.generated.dir}/wsdl</property> #else <property name="wsdls">${webservice.generated.dir}</property> #end <property name="configuration">${webservice.generated.dir}</property> <property name="webservice-project">${webservice.project}</property> <property name="webservice-types">${core.generated.dir}</property> <property name="webservice-impl">${webservice.manual.java.dir}</property> <property name="webservice-tests">${webservice.test.dir}</property> <property name="core-tests">${core.manual.test.dir}</property> <property name="service-impls">${core.manual.java.dir}</property> <property name="jaxb-impl">${common.manual.dir}</property> <property name="jaxb-gen">${common.generated.dir}</property> </properties> </namespace> #end <!-- See http://docs.andromda.org/andromda-cartridges/andromda-java-cartridge/namespace.html --> <namespace name="java"> <properties> #if ($cxf) <!-- Do not create XML schema ArrayOf wrapper objects --> <property name="useArraysForMultiplicitiesOfTypeMany">false</property> <!-- ValueObjects have JAXB2 XmlAttribute/XmlElement annotations --> <property name="XMLBindingAnnotations">true</property> #elseif ($webservice && !$jsr181Webservice) <property name="languageMappingsUri">AxisJavaMappings</property> <property name="useArraysForMultiplicitiesOfTypeMany">true</property> <property name="XMLBindingAnnotations">false</property> #end <property name="generateEqualPropertiesMethod">true</property> #if ($ejb3) <!-- Comment out the enumerations outlet for the java cartridge to avoid conflict with the ejb3 cartridge. Use outlet for JDK5. --> #end <property name="enumerations">${common.generated.dir}</property> <property name="exceptions">${common.generated.dir}</property> <property name="value-objects">${common.generated.dir}</property> <property name="interfaces">${common.generated.dir}</property> <property name="services">${core.generated.dir}</property> <property name="service-impls">${core.manual.java.dir}</property> </properties> </namespace> #if ($struts) <!-- See http://docs.andromda.org/andromda-cartridges/andromda-bpm4struts-cartridge/namespace.html --> <namespace name="bpm4struts"> <properties> <property name="defaultDateFormat">MM/dd/yyyy</property> <property name="normalizeMessages">true</property> <property name="forms">${web.generated.java.dir}</property> <property name="pages">${web.generated.web.dir}</property> <property name="actions">${web.generated.java.dir}</property> <property name="controllers">${web.generated.java.dir}</property> <property name="controller-impls">${web.manual.java.dir}</property> <property name="decorators">${web.manual.java.dir}</property> <property name="messages">${web.generated.web.dir}/WEB-INF/classes</property> <property name="configuration">${web.generated.web.dir}/WEB-INF</property> <!-- uncomment to enable web tier security <property name="securityRealm">${application.id}</property> --> #if ($ejb) <property name="serviceAccessorPattern">{0}.{1}Util.getHome().create()</property> #else <property name="serviceAccessorPattern">${application.package}.ServiceLocator.instance().get{1}()</property> #end <property name="mergeMappingsUri">file:${conf.dir}/mappings/WebMergeMappings.xml</property> <property name="manageableServiceAccessorPattern">${application.package}.ManageableServiceLocator.instance().get{1}()</property> </properties> </namespace> #elseif ($jsf) #if ($jbossSeam) <namespace name="seam"> <properties> <property name="viewType">facelets</property> <property name="applicationName">${application.name}</property> <property name="forms">${web.generated.java.dir}</property> <property name="views">${web.generated.web.dir}</property> <property name="managed-beans">${web.generated.java.dir}</property> <property name="controllers">${web.generated.java.dir}</property> <property name="controller-impls">${web.manual.java.dir}</property> <property name="messages">${web.generated.web.dir}</property> <property name="configuration">${web.generated.web.dir}</property> <property name="libraries">${web.generated.web.dir}</property> <property name="application-libraries">${application.generated.web.dir}</property> <property name="custom-resources">${web.manual.web.dir}</property> <!-- uncomment to enable web tier security <property name="securityRealm">${application.id}</property> --> <property name="serviceAccessorPattern">${application.package}.ServiceLocator.instance().get{1}()</property> <property name="mergeMappingsUri">file:${conf.dir}/mappings/WebMergeMappings.xml</property> <property name="dummyData">true</property> </properties> </namespace> #else <!-- See http://docs.andromda.org/andromda-cartridges/andromda-jsf-cartridge/namespace.html --> <namespace name="jsf"> <properties> #if ($webservice && !$jsr181Webservice && !$cxf) <property name="languageMappingsUri">AxisJavaMappings</property> #end #if ($portlet) <property name="portletContainer">$portletContainer</property> #end <property name="normalizeMessages">true</property> <!-- generates smaller resource bundles with duplicate element names specified by a single message. This optimization is turned off by default for backward compatibility <property name="normalizeMessages">true</property--> <property name="applicationName">${application.name}</property> <property name="forms">${web.generated.java.dir}</property> <property name="views">${web.generated.web.dir}</property> <property name="managed-beans">${web.generated.java.dir}</property> <property name="controllers">${web.generated.java.dir}</property> <property name="controller-impls">${web.manual.java.dir}</property> <property name="messages">${web.generated.web.dir}</property> <property name="configuration">${web.generated.web.dir}</property> <property name="custom-configuration">${web.manual.dir}/resources</property> #if ($ajaxLibrary.equals("icefaces")) <property name="ajaxLibrary">icefaces</property> <property name="portletClass">com.icesoft.faces.webapp.http.portlet.MainPortlet</property> <property name="fileTypeName">com.icesoft.faces.component.inputfile.InputFile</property> #else <property name="libraries">${web.generated.web.dir}</property> #end <property name="custom-resources">${web.manual.web.dir}</property> <!-- uncomment to enable web tier security <property name="securityRealm">${application.id}</property> --> #if ($ejb) <property name="serviceAccessorPattern">{0}.{1}Util.getHome().create()</property> #else <property name="serviceAccessorPattern">${application.package}.ServiceLocator.instance().get{1}()</property> #end <property name="manageableServiceAccessorPattern">${application.package}.ManageableServiceLocator.instance().get{1}()</property> <property name="mergeMappingsUri">file:${conf.dir}/mappings/WebMergeMappings.xml</property> <property name="dummyData">true</property> <property name="enableFaceletsDevelopmentSupport">true</property> <property name="enableMyFacesDevelopmentSupport">true</property> </properties> </namespace> #end #end </namespaces> </andromda>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy