ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 43586] java.io.FileNotFoundException: /home/***/apache-ant-1.7.0/junitvmwatcher *** .properties
Date Wed, 06 May 2009 22:45:51 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=43586





--- Comment #15 from A Wilson <nnwlsngml@gmail.com>  2009-05-06 15:45:47 PST ---
This bug bit me because in my <junit> element I had a <test> element that used
a name attribute that was incorrect.  The resulting FNFE error, that
junitjvmwatcherXXXXX.properties was not found, was a huge red herring. 
Comments I found about it being caused by versionitis took me way down wrong
paths.

Thanks to comment #11 above, I finally saw this in my verbose ant output:

(---scrubbed---):

[junit] Executing
'/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/bin/java' with
arguments:
    [junit] '-ea'
    [junit] '-classpath'
    [junit] <classpath here> 
    [junit] 'org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner'
    [junit] 'null'
    [junit] 'filtertrace=true'
    [junit] 'haltOnError=true'
    [junit] 'haltOnFailure=true'
    [junit]
'formatter=org.apache.tools.ant.taskdefs.optional.junit.SummaryJUnitResultFormatter'
    [junit] 'showoutput=false'
    [junit] 'outputtoformatters=true'
    [junit] 'logtestlistenerevents=true'
...

Note the 'null' about 5 lines down.  It took me a while to figure out that it
should have held the name of the test class and that the name I had provided
was wrong.  

Far too costly in time to figure that out!  But maybe someone else can benefit
from this info.  Thank you, Gerry Plummer.  Your post led me to the solution.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Mime
View raw message