max wrote:
because you are putting extra stuff on the classpath via the -lib argument it will behave differently than running from eclipse wher eyou dont do that.
I've just found out that I don't need the lib directory. So I only put bin to the classpath, and that what I think Eclipse also puts there. But obviosly it doesn't. So I have to find out what Eclipse puts there, right?
max wrote:
and what is jump target "end" ?
I wish I knew... This word doesn't eben appear in my build.xml!
max wrote:
And as i told you, you should not include *.class files into the classpath definition, only directories/jarsr.
How do I do this?
Remember, my build.xml looks like the following:
Quote:
<?xml version="1.0" encoding="UTF-8"?>
<project name="OO2" default="generate">
<property file="build.properties" />
<target name="generate" description="Erstellt die Schemata.">
<path id="hibernate.task.classpath">
<fileset dir="lib">
<include name="*.jar" />
</fileset>
<!--<fileset dir="bin">
</fileset>-->
</path>
<echo message="Erstelle Schemata..." />
<taskdef name="schemaexport" classname="org.hibernate.tool.hbm2ddl.SchemaExportTask" classpathref="hibernate.task.classpath" />
<schemaexport config="src/de/fhma/oo217/server/hibernate.cfg.xml" quiet="no" text="yes" drop="no" delimiter=";" output="ddl/schema-export.sql">
</schemaexport>
</target>
</project>
It works from commandline and not from within Eclipse, it doesn't matter if I remove the comments (i.e. include the bin directory) or if I let them in.
The strange thing is that I used this schema export half a year ago and it worked without problems. Unfortunately, I don't have the code anymore.
Well, if I don't find a solution, I can at least use a batch file.
Anyway, thanks for your patience, Max!