ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mohammad Khan" <khan.moham...@acm.org>
Subject My first build with ant failed
Date Mon, 08 Oct 2007 17:43:39 GMT
below is the part of my build.xml

   <target name="clean">
        <delete dir="${targetdir}"/>
    </target>

    <target name="init" depends="clean">
        <mkdir dir="${targetdir}"/>
    </target>

    <target name="copy-resources" depends="clean, init">
        <copy todir="${targetdir}">
            <fileset dir="${sourcedir}">
                <exclude name="**/*.java"/>
            </fileset>
        </copy>
    </target>

    <target name="compile" depends="clean, init, copy-resources">
        <javac srcdir="${sourcedir} destdir=${targetdir}"
classpathref="libraries"/>
    </target>



ant returned:

BUILD FAILED
srcdir "/home/user/project/src destdir=/home/user/project/bin" does not
exist!

I see both src and bin directory exist in my project root.
Would anybody give a light on it?

Thanks,
Mohammad


-- 
"Proper planning prevents poor performance."
- Anonymous

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message