-->
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.  [ 4 posts ] 
Author Message
 Post subject: build.xml + ant + eclipse - problems
PostPosted: Wed Nov 17, 2004 12:07 pm 
Beginner
Beginner

Joined: Wed Nov 17, 2004 11:15 am
Posts: 25
Hi,

I'm new to hibernate and tried to create sql from some mappings using ant + build.xml in Eclipse.

My build.xml:
<?xml version="1.0" ?>
<project name="Schemaexport" default="schemaexport" basedir=".">
<target name="schemaexport">
<taskdef name="schemaexport" classname="net.sf.hibernate.tool.hbm2ddl.SchemaExportTask" classpathref=".classpath" />
<schemaexport properties="hibernate.properties" quiet="no" text="no" drop="no" delimiter=";" output="schema-export.sql">
<fileset dir="src">
<include name="**/*.hbm.xml" />
</fileset>
</schemaexport>
</target>
</project>


My .classpath:
<?xml version="1.0" encoding="UTF-8" ?>
<classpath>
<classpathentry kind="src" path="" />
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER" />
<classpathentry kind="lib" path="D:/Cocoon/cocoon-2.1.5.1/build/webapp/WEB-INF/lib/hibernate2.jar" />
<classpathentry kind="output" path="" />
</classpath>


The error message:
Buildfile: D:\Hibernate\build.xml
schemaexport:
BUILD FAILED: D:\Hibernate\build.xml:4: Reference .classpath not found.
Total time: 579 milliseconds

OK.
So the error is classpathref=".classpath".
What does the classpathref-attribute want? What I understood the .classpath file generated by Eclipse. Or am I wrong?
I have the build.xml and .classpath files in the same folder.

Any suggestions?

Thanks
Jonny


Top
 Profile  
 
 Post subject: Problem solved!!
PostPosted: Wed Nov 17, 2004 12:30 pm 
Beginner
Beginner

Joined: Wed Nov 17, 2004 11:15 am
Posts: 25
Hi,

problem solved.

Thanks
Jonny


Top
 Profile  
 
 Post subject: To optimistic. No sql output.
PostPosted: Wed Nov 17, 2004 12:37 pm 
Beginner
Beginner

Joined: Wed Nov 17, 2004 11:15 am
Posts: 25
Hi,

I was a little to optimistic. I solved the classpath problem. Message: BUILD SUCCESSFUL.
But I don't get any sql in my generated *.sql file. It's just a blank file.

Any suggestions what I did wrong again?

Thanks
jonny


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 17, 2004 12:38 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
You didn't even spend 10 minutes on this, please take more time before posting questions.

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.