I updated my release and now also have the mkdir line, so it won't
protest there, but actually it still gives an error on a line some
lines before, to be exactly line 1173:
<junit printsummary="yes" haltonfailure="yes">
BUILD FAILED
/m0d/schra/bin/jmolcvs20070727/Jmol/build.xml:1173: Could not create
task or type of type: junit.
Ant could not find the task or a class this task relies upon.
The path to junit.jar seems correct, and I tried commenting stuff out
and back again, but nothing seems to help. I tried running in verbose,
it gave me this:
at
org.apache.tools.ant.UnknownElement.getNotFoundException(UnknownElement.java:493)
at
org.apache.tools.ant.UnknownElement.makeObject(UnknownElement.java:391)
at
org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:158)
at org.apache.tools.ant.Task.perform(Task.java:363)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.Main.runBuild(Main.java:668)
at org.apache.tools.ant.Main.startAnt(Main.java:187)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
I have no clue as where to search for the answer, and the rather
cryptic messages ant is giving is not helping much. It would be nice
if it would tell me exactly which element is unknown. Anyway, I am
apparently not the only one who struggles with ant's meager error
messages:
http://cafe.elharo.com/java/errormsg/
But, just to be sure, I go down the list:
>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.
spelling seems ok
> - 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.
junit.jar is in the classpath, not sure if it is declared. How would I do that?
> - 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
Should I rebuild ant? The junit.jar is already in the classpath?
> - The build file was written for a later version of Ant
> Fix: upgrade to at least the latest release version of Ant
ant -version
Apache Ant version 1.6.5 compiled on November 27 2006
What was used to make the build file? why doesn't ant check by itself?
> - The task is not an Ant core or optional task
> and needs to be declared using <taskdef>.
This might be the case. How would I do that?
> - 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
None of these are there, should they?
>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
Well, it is.
So, does junit.jar needs declaration? and how and where?
I will just commit it as it is in the mean time, and hope someone with
more proficiency in ant can find the problem here.
On 7/31/07, Nicolas Vervelle <[EMAIL PROTECTED]> wrote:
> pim schravendijk a écrit :
> > Got into a problem with ant test
> >
> > Any idea what is missing here? Should I do ant test at all?
> >
> Thanks for spotting this.
>
> I think that nobody is using ant to run the tests (I run them directly
> from inside Eclipse, I don't know who else run them)
> I have committed a fix in build.xml to make it work (the tests should
> fail at the end, since there's a problem with gamess reader)
>
> Nico
>
>
--
Greetings, Pim
http://www.molmod.com
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Jmol-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-developers