I am using ANT to build a simple web application project named "HelloWebApp" in eclipse. But while using ANT to build the build.xml file I am getting the following error.
Buildfile: C:\Users\bimal\workspace\HelloWebApp\build.xml
clean:
[echo] Cleaning the build
init:
[echo] Creating the build directory
BUILD FAILED
C:\Users\bimal\workspace\HelloWebApp\build.xml:18: Directory C:\Users\bimal\workspace\HelloWebApp\build \WEB-INF\classes creation was not successful for an unknown reason
Total time: 849 milliseconds
The section in build.xml file which causes error is given below.
<target name="init" depends="clean">`
<echo>Creating the build directory</echo>
<mkdir dir="${build.dir}/WEB-INF/classes"/>
<mkdir dir="${build.dir}/WEB-INF/lib"/>
<mkdir dir="${dist.dir}"/>
</target>
Please provide me solution for this problem. Thanks in advance.