 |
上一主题
CREATE TABLE upload (
objectId char(50) NOT NULL default '',
name va..
|
|
下一主题
大家好,
我下载了jodn2,发布到本机tomcat下没问题。我现在想研究源码,把代码移到jdevelop ide下,结果org.apache.crimson.parser.XMLReaderI..
|
|
|
|
|
|
|
|
JdonFramwork在ant test时出错,请jdon指教
|
2006年12月18日 16:52
|
|
|
标签列表
|
|
我在解包jdonFrameWork后,用ant来build时,到test这步出错。 请指点如何解决
Buildfile: D:\Work\jivejdon\JdonFramework-1.5_03\JdonFramework\build.xml clean: [delete] Deleting directory D:\Work\jivejdon\JdonFramework-1.5_03\JdonFramework\classes [delete] Deleting directory D:\Work\jivejdon\JdonFramework-1.5_03\JdonFramework\dist init: compile: [mkdir] Created dir: D:\Work\jivejdon\JdonFramework-1.5_03\JdonFramework\classes [javac] Compiling 210 source files to D:\Work\jivejdon\JdonFramework-1.5_03\JdonFramework\classes [copy] Copying 7 files to D:\Work\jivejdon\JdonFramework-1.5_03\JdonFramework\classes [copy] Copying 8 files to D:\Work\jivejdon\JdonFramework-1.5_03\JdonFramework\classes\META-INF [copy] Copying 2 files to D:\Work\jivejdon\JdonFramework-1.5_03\JdonFramework\classes\META-INF\tlds pack: [mkdir] Created dir: D:\Work\jivejdon\JdonFramework-1.5_03\JdonFramework\dist [jar] Building jar: D:\Work\jivejdon\JdonFramework-1.5_03\JdonFramework\dist\jdonFramework.jar [copy] Copying 6 files to D:\Work\jivejdon\JdonFramework-1.5_03\JdonFramework\dist test:
BUILD FAILED D:\Work\jivejdon\JdonFramework-1.5_03\JdonFramework\build.xml:107: Could not create task or type of type: junit.
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 'junit'. 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.
Total time: 18 seconds
|
|
|
|
|
|
Re: JdonFramwork在ant test时出错,请jdon指教
|
2006年12月19日 10:37
|
|
|
这是Eclipse+ant的通病 在Eclipse的windows preferences 的ANT选项中,选择Runtime,在右侧的Global Entries中增加junit.jar包即可。
|
|
|
|
热点TAG:
AOP
cache
缓存
DDD
EJB
集群
设计模式
Hibernate
IOC
JiveJdon
OO
RBAC
Seam
Spring
Struts
anti spam
|