【发布时间】:2015-03-02 15:10:52
【问题描述】:
我正在尝试在 MobileFirst Platform 6.3 中使用 Ant 构建项目 .war 文件。
我的 build.xml 有以下内容:
<?xml version="1.0" encoding="UTF-8"?>
<project name="myProject" default="all">
<taskdef resource="com/worklight/ant/defaults.properties">
<classpath>
<pathelement location="/Applications/IBM/Worklight-CLI/public/worklight-ant-builder.jar"/>
</classpath>
</taskdef>
<target name="all">
<war-builder projectfolder="."
destinationfolder="bin/war"
warfile="bin/project.war"
classesFolder="classes-folder"/>
</target>
</project>
当我执行 Ant 脚本时,它会抛出以下错误:
[taskdef] 无法从资源加载定义 com/worklight/ant/defaults.properties。找不到。
【问题讨论】:
标签: ant ibm-mobilefirst