I'm trying to set up ANT for the first time, in order to use Hibernate.
I'm trying to create a working "build.xml" file.
I get the following error message:
java doesn't support the "srcdir" attribute
I'm using java 1.5.0_06
Here's my code:
<?xml version="1.0"?>
<project name="calendar" default="build">
<property name="src.java.dir" location="src/java"/>
<property name="build.classes.dir" location="build/classes" />
<path id="project.classpath">
<pathelement location="${build.classes.dir}" />
</path>
<target name="init" >
<mkdir dir="${build.classes.dir}" />
</target>
<target name="compile" depends="init" >
<javac srcdir="${src.java.dir}"
destdir="${build.classes.dir}">
<include name="**/EventCalendar.java" />
</javac>
</target>
<target name="build" depends="compile" >
<java srcdir="com.manning.hq.ch02.EventCalendar"
failonerror = "true" >
<classpath refid="project.classpath" />
</java>
<echo>If you see this, it works!!!</echo>
</target>
</project>
d.s. - 27 Dec 2006 18:30 GMT
> I'm trying to set up ANT for the first time, in order to use Hibernate.
> I'm trying to create a working "build.xml" file.
[quoted text clipped - 4 lines]
>
> I'm using java 1.5.0_06
Never mind. Transcription error on my part.