A new topic, 'classpath problem', has been made on a board you are watching.

You can see it at
http://liquibase.org/forum/index.php?topic=668.new#new

The text of the topic is shown below:

I've just spend a lot of time trying to figure out why am i getting 
HibernateException hibernate.cfg.xml not found all the time when running 
<diffDatabaseToChangeLog> ant task.

Apparently when I run this task, it looks for hibernate.cfg.xml only in 
classpath configured in taskdef. See details below:


    <taskdef resource="liquibasetasks.properties">
        <classpath refid="classpath1"/>
    </taskdef>

    <target name="diff" description="create ddl by annotations">
        <diffDatabaseToChangeLog classpathref="classpath2" 
                driver="${database.driver}" url="${database.url}" 
username="${database.username}" password="${database.password}"
                referenceurl="hibernate:hibernate.cfg.xml"
                outputFile="${liquibase.dir}/changelog_${stamp}.xml"/>
    </target>

This works only if hibernate.cfg.xml is accessible by classpath1. 
At the same time I needed to provide classpathref in <diffDatabaseToChangeLog> 
tag as well. But here it only needs liquibase library.
I guess classpath1 should be used only to find liquibase, while classpathref in 
<diffDatabaseToChangeLog> tag should be used to find hibernate.cfg.xml.

Could you please clarify that to me?
Maybe I am doing something totally wrong...

Unsubscribe to new topics from this board by clicking here: 
http://liquibase.org/forum/index.php?action=notifyboard;board=1.0

Regards,
The Liquibase Community Forum Team.
------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Liquibase-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/liquibase-user

Reply via email to