[
http://opensource.atlassian.com/projects/hibernate/browse/HBX-1167?page=c...
]
Vitali Yemialyanchyk commented on HBX-1167:
-------------------------------------------
Here is example:
<target name="hibernateAntCodeGeneration"
depends="generateHibernatePropeties">
<taskdef name="hibernatetool"
classname="org.hibernate.tool.ant.HibernateToolTask"
classpathref="toolslib"/>
<hibernatetool destdir="${build.dir}">
<configuration
configurationFile="C:\RHDS\_ws\runtime-hibernate_plugins4\qwert\src\hibernate.cfg.xml_4_rename"
propertyFile="${hibernatePropFile}">
<fileset dir="." id="id">
<include
name="C:\RHDS\_ws\runtime-hibernate_plugins4\qwert\src\com\indexbg\delo\db\AdmProcEtap.hbm.xml"/>
<include
name="C:\RHDS\_ws\runtime-hibernate_plugins4\qwert\src\com\indexbg\delo\db\AdmProcEtapIzp.hbm.xml"/>
</fileset>
</configuration>
<classpath>
<path location="${build.dir}"/>
</classpath>
<hbm2java destdir="C:\Temp\111" ejb3="true"
jdk5="true">
<property key="destdir2" value="qw"/>
</hbm2java>
<hbm2hbmxml destdir="c:\tmp">
<property key="ejb3" value="false"/>
<property key="jdk5" value="false"/>
</hbm2hbmxml>
<hbm2dao destdir="c:\tmp"/>
<hbmtemplate destdir="C:\Temp" foreach="entity"
filepattern="${package-name}/${class-name}.java"
template="C:\RHDS\_ws\runtime-hibernate_plugins4\qwert\pojo\Pojo.ftl">
<!--hbmtemplate destdir="C:\Temp" foreach="entity"
filepattern="${package-name}/${class-name}.java"
template="pojo/Pojo.ftl"-->
<property key="ejb3" value="false"/>
<property key="jdk5" value="false"/>
</hbmtemplate>
<hbm2cfgxml destdir="c:\tmp">
<property key="jdk5" value="false"/>
</hbm2cfgxml>
<hbm2doc destdir="c:\tmp">
<property key="ejb3" value="false"/>
<property key="jdk5" value="false"/>
</hbm2doc>
<hbm2ddl destdir="c:\tmp" export="false">
<property key="ejb3" value="false"/>
<property key="jdk5" value="false"/>
</hbm2ddl>
</hibernatetool>
</target>
full path for "template" for "hbmtemplate" doesn't work. Full path
for "template" doesn't work for code generation for Hibernate Tools Eclipse
plugins also.
Ant hbmtemplate exporter doesn't support full path in template
attribute
------------------------------------------------------------------------
Key: HBX-1167
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HBX-1167
Project: Hibernate Tools
Issue Type: Improvement
Components: ant
Reporter: Vitali Yemialyanchyk
Priority: Minor
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira