All pastes #453322 Raw Edit

Untitled

public text v1 · immutable
·published 2007-04-22 22:41 UTC
rendered paste body
Error:
-------------------------------------------------

     [java] 759 [main] INFO org.hibernate.cfg.Configuration  - Reading mappings from resource : com/musuru/MusuruServe/Message.hbm.xml

BUILD FAILED
/work/smsplan/build.xml:45: org.hibernate.MappingNotFoundException: resource: com/musuru/MusuruServe/Message.hbm.xml not found

-------------------------------------------------
build.xml
-------------------------------------------------

<?xml version="1.0"?>
<project name="build.xml" default="build">
	<property name="src.java.dir" location="src/com/musuru/MusuruServe"/>
	<property name="build.classes.dir" location="build/classes"/>
	<property name="hibernate.version" value="3.2"/>
	<property name="hibernate.lib.dir" location="/work/hib/hibernate-${hibernate.version}"/>
	<property name="mysql.jdbc.version" value="5.0.5"/>
	<property name="applications.dir" value="/work/smsplan"/>
	<property name="jdbc.driver.jar" value="${applications.dir}/mysql-connector-java-${mysql.jdbc.version}/mysql-connector-java-${mysql.jdbc.version}-bin.jar"/>
	
	<path id="project.classpath">
		<pathelement location="${build.classes.dir}"/>
	</path>
	<path id="runtime.classpath">
		<path refid="project.classpath"/>
		<path refid="hibernate.lib.path"/>
		<pathelement location="${jdbc.driver.jar}"/>
		<pathelement location="${src.java.dir}"/>
	</path>
	
<import file="hibernate-build.xml"/>
	
	<target name="init">
		<mkdir dir="${build.classes.dir}"/>
		<echo>${src.java.dir}</echo>
	</target>
    <target name="copy-resources">
        <copy todir="${build.classes.dir}">
            <fileset dir="${src.java.dir}">
                <exclude name="**/*.java"/>
            </fileset>
        </copy>
    </target>
	<target name="compile" depends="init,copy-resources">
		<javac srcdir="${src.java.dir}" destdir="${build.classes.dir}">
			<classpath refid="hibernate.lib.path"/>
		<!-- <include name="**/doStuff.java"/> -->
		</javac>
		<jar destfile="${build.classes.dir}/MusuruServe.jar" basedir="${build.classes.dir}" excludes="MusuruServe.jar"/>
	</target>

	<target name="build" depends="compile">

	<echo>${runtime.classpath}</echo>
		<java classname="com.musuru.MusuruServe.doStuff" failonerror="true">
<!--			<classpath refid="project.classpath"/>
			<classpath refid="hibernate.lib.path"/> -->
			<classpath refid="runtime.classpath"/>
		</java>
	<echo>${runtime.classpath}</echo>
		<echo>Works!</echo>
	</target>
	<target name="clean">
		<delete dir="${build.classes.dir}"/>
	</target>
</project>