0

我正在使用 ANT 在 Eclipse 中构建一个名为“HelloWebApp”的简单 Web 应用程序项目。但是在使用 ANT 构建 build.xml 文件时,我收到以下错误。

    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

下面给出了 build.xml 文件中导致错误的部分。

<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> 

请为我提供此问题的解决方案。提前致谢。

4

1 回答 1

2

确保每个人都对该文件夹具有读/写权限,使用文件夹中首选项菜单上的 Windows 权限选项卡检查是否正确。

于 2013-05-02T12:32:34.017 回答