我有一个NetBeans项目,我试图从命令行手动编译ant.在安装了NetBeans的同一台机器上运行时,它可以完美运行.
但是,如果我ant在中央持续集成服务器上运行(未安装NetBeans),则它会在<copyfiles>任务上失败:
BUILD FAILED
/var/lib/jenkins/workspace/project_name/nbproject/build-impl.xml:697: Problem: failed to create task or type copyfiles
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
Run Code Online (Sandbox Code Playgroud)
目标是自动生成的build-impl.xml,看起来像这样:
<target depends="init" name="library-inclusion-in-archive" unless="dist.ear.dir">
<copyfiles files="${file.reference.some_dependency.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
</target>
Run Code Online (Sandbox Code Playgroud)
当我查看蚂蚁手册时,copyfiles甚至不是一个合适的蚂蚁任务.那么这是什么一回事?
如何在没有安装NetBeans的计算机上运行此操作?
| 归档时间: |
|
| 查看次数: |
6362 次 |
| 最近记录: |