Update of /cvsroot/xdoclet/xdoclet/modules/hibernate/src/xdoclet/modules/hibernate In directory sc8-pr-cvs1:/tmp/cvs-serv1272/src/xdoclet/modules/hibernate
Modified Files: XDocletModulesHibernateMessages.java Added Files: JBossServiceSubTask.java Log Message: fixed template error, added subtask for jboss service descriptor --- NEW FILE: JBossServiceSubTask.java --- /* * Copyright (c) 2001, 2002 The XDoclet team * All rights reserved. */ package xdoclet.modules.hibernate; import xdoclet.TemplateSubTask; import xdoclet.XDocletException; import xdoclet.util.Translator; /** * Generate jboss mbean descriptor for hibernated classes * * @author Konstantin Pribluda ([EMAIL PROTECTED]) * @created December 11, 2002 * @version $Revision: 1.1 $ * @ant.element name="jbossservice" display-name="JBoss service configuration" * parent="xdoclet.modules.hibernate.HibernateDocletTask" * @ant.attribute name="datasource" description="JNDI name of data source to use in session factory" required="Yes" * @ant.attribute name="username" description="Use this user name to login to database" required="No" * @ant.attribute name="password" description="Use this password to login to database" required="No" * @ant.attribute name="dialect" description="SQL dialect of database." required="Yes. Shall be fully qualified class * name of <tt>Dialect</tt> subclass" * @ant.attribute name="jndiname" description="JNDI name to bind to the <tt>SessionFactory</tt> " required="Yes." * @ant.attribute name="transactionstrategy" description="Define transaction strategy" required="Yes." */ public class JBossServiceSubTask extends TemplateSubTask { /** * Default template to use for hibernate files */ private static String DEFAULT_TEMPLATE_FILE = "resources/jboss-service.xdt"; /** * Pattern for generation of hibernate files */ private static String GENERATED_SERVICE_FILE_NAME = "jboss-service.xml"; private String jndiName = null; private String dataSource = null; private String dialect = null; /** * Constructor for the HibernateSubTask object */ public JBossServiceSubTask() { setHavingClassTag("hibernate.class"); setTemplateURL(getClass().getResource(DEFAULT_TEMPLATE_FILE)); setDestinationFile(GENERATED_SERVICE_FILE_NAME); } //~ Methods ........................................................................................................ /** * Called when the engine is started * * @exception XDocletException Thrown in case of problem */ protected void engineStarted() throws XDocletException { System.out.println(Translator.getString(XDocletModulesHibernateMessages.class, XDocletModulesHibernateMessages.GENERATING_HIBERNATE_FOR, new String[]{getCurrentClass().getQualifiedName()})); } } Index: XDocletModulesHibernateMessages.java =================================================================== RCS file: /cvsroot/xdoclet/xdoclet/modules/hibernate/src/xdoclet/modules/hibernate/XDocletModulesHibernateMessages.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** XDocletModulesHibernateMessages.java 11 Dec 2002 10:15:57 -0000 1.1 --- XDocletModulesHibernateMessages.java 11 Dec 2002 13:26:13 -0000 1.2 *************** *** 17,21 **** --- 17,27 ---- /** * @msg.bundle msg="Generating mapping file for {0}." + * @msg.bundle msg="Mappingdatei für {0} wird erzeugt." lang="de" */ public final static String GENERATING_HIBERNATE_FOR = "GENERATING_HIBERNATE_FOR"; + /** + * @msg.bundle msg="Generating jboss service descriptor" + * @msg.bundle msg="Generiere JBoss Descriptor" lang="de" + */ + public final static String GENERATING_JBOSS_SERVICE_DESCRIPTOR = +"GENERATING_JBOSS_SERVICE_DESCRIPTOR"; } ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ _______________________________________________ Xdoclet-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-devel