-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: schemaexport output field does not take property names
PostPosted: Fri May 07, 2004 2:00 pm 
Newbie

Joined: Thu May 06, 2004 1:20 pm
Posts: 7
I have the following ant task. This does not output the schema file. It only works if I say output="schema.sql". Unfortunately this writes the file out to eclipse's root directory (which took a bit of figuring out). Is there a way to specify the output directory? Thanks.


<target name="schemaexport">
<taskdef name="schemaexport"
classname="net.sf.hibernate.tool.hbm2ddl.SchemaExportTask"
classpathref="class.path"/>

<schemaexport
properties="hibernate.properties"
quiet="no"
text="no"
drop="no"
delimiter=";"
output="${build.dir}/schema.sql">
<fileset dir="src">
<include name="**/*.hbm.xml"/>
</fileset>
</schemaexport>
</target>


Top
 Profile  
 
 Post subject:
PostPosted: Sat May 08, 2004 12:26 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Did you try not using a relative path?
eg /dev/gen/sql/schema.sql


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 10, 2004 6:21 pm 
Newbie

Joined: Thu May 06, 2004 1:20 pm
Posts: 7
Yes, the full path name works, but the name given as ANT property does not appear to work.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.