- xml - AJAX/Jquery XML 解析
- 具有多重继承的 XML 模式
- .net - 枚举序列化 Json 与 XML
- XML 简单类型、简单内容、复杂类型、复杂内容
我已将 antcontrib.03.jar 添加到 ANT_HOME/lib 和单独的位置 d:\lib 中,它仍然给我这个错误。请在这里帮助我。谢谢!
#back-end - copy
back.end.dir=d:/opt/polopoly/pear/work/ears/front
path.to.tomcat.dir=${back.end.dir}/tomcat1,${back.end.dir}/tomcat2,${back.end.dir}/tomcat3, ${back.end.dir}/tomcat3,${back.end.dir}/tomcat4,${back.end.dir}/tomcat5
root.war.file=${path.to.tomcat.dir}/test1.war,${path.to.tomcat.dir}/test2.war,${path.to.tomcat.dir}/test3.war,${path.to.tomcat.dir}/test4.war,${path.to.tomcat.dir}/test5.war
#front-end -paste
host.name=//servername/share
path.to.tomcat.webapps=${host.name}/opt/tomcat/webapps
<taskdef resource="net/sf/antcontrib/antcontrib.properties">
<classpath>
<pathelement location="d:/lib/ant-contrib-0.3.jar"/>
</classpath>
</taskdef>
<!-- copy new ROOT.war file -->
<target name="deploy-root" description="Copy new root.war from pCMS back-end to front-end" depends="prepare">
<sequential>
<for list="${root.war.file}" param="single-file">
<echo> Copying File @{single-file} </echo>
<copy file="@{single-file}" todir="${path.to.tomcat.webapps}" overwrite="true" />
</for>
</sequential>
</target>
D:\opt\trunk>ant deploy-root
Buildfile: build.xml
[taskdef] Could not load definitions from resource lib/net/sf/antcontrib/antcontrib.properties. It could not be found.
init:
[echo] TODAYS DATE AND TIME: 2 May 2012, 12:16:28 PM, BST
prepare:
deploy-root:
BUILD FAILED
D:\opt\trunk\build.xml:117: Could not create task or type of type: for.
Ant could not find the task or a class this task relies upon.
This is common and has a number of causes; the usual
solutions are to read the manual pages then download and
install needed JAR files, or fix the build file:
- You have misspelt 'for'.
Fix: check your spelling.
- The task needs an external JAR file to execute
and this is not found at the right place in the classpath.
Fix: check the documentation for dependencies.
Fix: declare the task.
- The task is an Ant optional task and the JAR file and/or libraries
implementing the functionality were not found at the time you
yourself built your installation of Ant from the Ant sources.
Fix: Look in the ANT_HOME/lib for the 'ant-' JAR corresponding to the
task and make sure it contains more than merely a META-INF/MANIFEST.MF.
If all it contains is the manifest, then rebuild Ant with the needed
libraries present in ${ant.home}/lib/optional/ , or alternatively,
download a pre-built release version from apache.org
- The build file was written for a later version of Ant
Fix: upgrade to at least the latest release version of Ant
- The task is not an Ant core or optional task
and needs to be declared using <taskdef>.
- You are attempting to use a task defined using
<presetdef> or <macrodef> but have spelt wrong or not
defined it at the point of use
Remember that for JAR files to be visible to Ant tasks implemented
in ANT_HOME/lib, the files must be in the same directory or on the
classpath
Please neither file bug reports on this problem, nor email the
Ant mailing lists, until all of these causes have been explored,
as this is not an Ant bug.
最佳答案
使用:
<taskdef resource="net/sf/antcontrib/antlib.xml">
<classpath>
<pathelement location="d:/lib/ant-contrib-0.3.jar"/>
</classpath>
</taskdef>
相反。
antcontrib.properties 文件只有 1.6 之前的 ant 版本的任务定义,即 <for>
不包含
关于java - BUILD FAILED D :\opt\trunk\build. xml:117: 无法创建任务或类型:对于,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10412680/
以下代码在 c++17 模式下使用 clang-trunk 编译得很好,但在 c++2a(即将推出的 c++20)模式下会中断: // Meta struct describing the resul
我是 Mercurial 的新手。我习惯使用颠覆。人们习惯使用 trunk 作为项目的主文件夹。 当我在 Mercurial 中创建新存储库时,是否应该将默认分支命名为 Trunk ? 最佳答案 无论
谁能给我指出一个带有 jquery 教程的漂亮抽屉菜单。我正在尝试使用非常好的 Trunk.js 插件,但我遇到了问题。如果我将 slider 放入正文内容中,它会滚动到固定导航栏的顶部而不是其下方。
不幸的是,我有机会通过 Borland 的 StarTeam 进行源代码控制。不幸的是,它做的事情很少,最大的弱点是它的 View 管理。我喜欢 SVN,并且来自 SVN 思维模式。我们的问题是后期制
是否有可能在 svn 服务器中删除一个修订版,就好像它从未存在过一样? 所以我们有以下修改: 1004 // Commit of some bogus code that broke the buil
我的团队最近决定不使用大多数 Subversion 存储库布局中典型的“主干”分支。我们发现,在任何特定时刻,总会有一个特定的分支发挥着主干在其他存储库中所扮演的传统角色的作用。也就是说,我们始终有一
我有以下项目结构,想知道每个项目是否都应该有自己的 trunk 文件夹? myproject/trunk/myproject-commons myproject/trunk/myproject-web
我有一个包含以下目录的存储库: 分支机构 标签 中继 trunk目录包含了开发的主线。我为存储库创建了一个提交后 Hook 脚本,当用户提交回存储库时,它会更新(主干的)工作副本。 看起来像这样: /
转载请注明出处: 1.交换机与路由器 交换机与路由器的特点: 交换机(Switch): 用于在局域网中传输数据帧 基于MA
长话短说,我基本上在主干中创建了一个开发分支。 大约两周前,我决定在我们的存储库中创建一个单独的分支是有意义的,因为我们最终要切换到 visual studio 2010。我没有阅读我应该阅读的颠覆书
假设我已经从主干创建了标签和分支并删除了主干。删除主干后,标签和分支会怎样? 最佳答案 如果删除主干,标签和分支不会发生任何变化。如果您要从 SVN 中删除某些内容,那么您只是将其从 SVN 的当前状
好的,我已经切换到 branch,现在我的文件变成了蓝色,但是我怎样才能切换回 trunk? 最佳答案 您是否在切换回主干后尝试“尝试”提交以查看将提交哪个文件? 否则,蓝色表示修改过的文件,检查你的
以下操作只会从主干的头部修订版创建分支。如何从特定修订版创建分支?谢谢。 $ svn copy http://svn.example.com/repos/calc/trunk \ htt
显然我已经检查了过去几周对分支的提交。除了对一个文件的更改之外,我想将所有内容提交到主干。我该怎么办? 最佳答案 当您与 Mercurial 谈论命名分支时,您谈论的是变更集上的永久属性。变更集不能位
我们使用 SVN 作为数据存储库。我已经从 Eclipse 成功为我们的项目创建了分支现在我正在尝试创建标签,以便我可以将项目版本放在那里。但是当我尝试从 eclipse 创建“标签”时,它给了我以下
我已经在 Fossil SCM 工作了一段时间,但我仍然看到一些我不太明白的东西。 在屏幕截图中,您可以看到我在存储库中有两个叶子,但遗憾的是我找不到将它们合并回主干的方法(在我的所有提交中都有“叶子
我从 lauchpad 下载 OpenERP 的主干版本。当我启动服务器时出现以下错误 追溯(最近的调用最后): 文件“./openerp-server”,第 2 行,位于 导入 openerp 文件
我创建了一个 Subversion 存储库以及 branches、tags 和 trunk 目录: svnadmin create file:///home/user/public_html/repo
我想让这段代码工作 #include template struct conditional { static constexpr auto value = T; }; template str
我已经在 CocoaPods trunk 上注册了两个账户。有没有办法指定推送时使用哪个账号,还是每次推送都需要重新注册中继服务? 最佳答案 目前最好的方法是替换 ~/.netrc 文件中的凭据。保存
我是一名优秀的程序员,十分优秀!