我正在尝试构建一个目标,该目标具有相当长的
和
元素位于其
元素(在 build.xml 文件中)。我不断收到“包 com.somecompany.somepackage 不存在”错误,并且我很难追踪这些包并确保我已从我们的存储库同步它们。
我是这个团队的新人,所以我不熟悉构建,但如果可能的话,我更愿意自己解决这个问题(所以我不会打扰其他非常忙碌的团队成员)。我对 Ant 的经验非常有限。
我认为如果我能让 Ant 打印出我正在尝试构建的目标的类路径,这会节省我相当多的时间。
I'm trying to get a target to build that has quite a long list of <pathelement location="${xxx}"/>
and <path refid="foo.class.path"/>
elements in its <path id="bar.class.path">
element (in the build.xml file). I keep getting "package com.somecompany.somepackage does not exist" errors, and I'm having a hard time chasing down these packages and making sure I've synced them from our repository.
I'm new to this team so I'm unfamiliar with the build, but I would prefer to figure this out myself if possible (so I don't bother the other very busy team members). I have very limited experience with Ant.
I think it would save me quite a bit of time if I could have Ant print out the classpath for the target I'm trying to build.
发布评论
评论(2)
使用
pathconvert
任务将路径转换为属性pathconvert 文档。
Use the
pathconvert
task to convert a path to a propertyDocs for pathconvert.
如果使用 Ant > 版本,这会更加容易。 1.6
请参阅 http://ant.apache.org/manual/using.html#pathshortcut 了解更多信息
This is even easier with versions of Ant > 1.6
See http://ant.apache.org/manual/using.html#pathshortcut for more information