The following comment has been added to this issue:
Author: Manfred Moser
Created: Fri, 21 Jan 2005 5:36 PM
Body:
I have just refactored my project with many classes deeper down the package
hierarchy so the path has gotten longer. Now I get the same failure of my maven
build.
All the maven build before jcoverage runs fine.
...
Then jcoverage starts..
[exec] jcoverage is licensed under the GNU General Public License
[exec] jcoverage comes with ABSOLUTELY NO WARRANTY
[exec] instrumenting 568 classes to C:\javadev\latitude\target\jcoverage\classes
[exec] jcoverage:on:
[exec] [instrument] [ERROR] java.io.IOException: CreateProcess:
C:\j2sdk1.4.2_04\jre\bin\java.exe -classpath "C:\Documents and
Settings\manfred\.maven\repository\jcoverage\jars\jcoverage-1.0.5.jar;C:\Documents
and Settings\manfred\.maven\repository\bcel\jars\bcel-5.1.jar;C:\Documents and
Settings\manfred\.maven\repository\urbanophile\jars\java-getopt-1.0.9.jar;C:\Documents
and Settings\manfred\.maven\repository\log4j\jars\log4j-1.2.8.jar;C:\Documents
and Settings\manfred\.maven\repository\oro\jars\oro-2.0.7.jar;C:\Documents and
Settings\manfred\.maven\repository\junit\jars\junit-3.8.1.jar;C:\Documents and
Settings\manfred\.maven\repository\xerces\jars\xercesImpl-2.4.0.jar;C:\Documents
and Settings\manfred\.maven\repository\xerces\jars\xmlParserAPIs-2.2.1.jar"
com.jcoverage.coverage.Instrument -d
c:\javadev\latitude\target\jcoverage\classes -basedir
C:\javadev\latitude\target\classes com\cardiocomm\chart\ecg\Segments.class
com\cardiocomm\
globalcardio\db\vo\MedicationVO.class com\cardiocomm\globalcardio\db\dao\HeartRa
teVariabilityDAO.class com\cardiocomm\glob?
The path is just being cut off here... I am pretty sure that lots more should
come here.
It then continues....
[exec] java:jar-resources:
[exec] test:prepare-filesystem:
[exec] test:test-resources:
[exec] test:compile:
[exec] test:test:
[exec] [junit] Running com.cardiocomm.build.EnumTest
[exec] [junit] Tests run: 4, Failures: 0, Errors: 4, Time elapsed: 1.67
2 sec
[exec] [junit] [ERROR] TEST com.cardiocomm.build.EnumTest FAILED
and all the test start failing.
I have noticed that NO class files can be found in target/jcoverage/classes.
The class hierarchy is established and all the directories are there.
Is there any workaround this?
---------------------------------------------------------------------
View this comment:
http://jira.codehaus.org/browse/MPJCOVERAGE-21?page=comments#action_29157
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/browse/MPJCOVERAGE-21
Here is an overview of the issue:
---------------------------------------------------------------------
Key: MPJCOVERAGE-21
Summary: Exception in thread "main" java.io.FileNotFoundException:
jcoverage.ser (No such file or directory)
Type: Bug
Status: Open
Priority: Major
Original Estimate: Unknown
Time Spent: Unknown
Remaining: Unknown
Project: maven-jcoverage-plugin
Versions:
1.0.7
Assignee: Emmanuel Venisse
Reporter: H�vard Bj�stad
Created: Fri, 3 Dec 2004 7:17 PM
Updated: Fri, 21 Jan 2005 5:36 PM
Description:
We have several projects that run fine, but with two of our projects we get the
following output:
jcoverage:html-report:
[echo] Copying 2 source directories into one for jcoverage
jcoverage 1.0.5 copyright (c)2003 jcoverage ltd. http://jcoverage.com/
jcoverage is licensed under the GNU General Public License
jcoverage comes with ABSOLUTELY NO WARRANTY
[report] Exception in thread "main" java.io.FileNotFoundException:
jcoverage.ser (No such file or directory)
[report] at java.io.FileInputStream.open(Native Method)
[report] at java.io.FileInputStream.<init>(FileInputStream.java:106)
[report] at com.jcoverage.coverage.reporting.xml.Main.main(Main.java:106)
org.apache.commons.jelly.JellyTagException:
/home/havard/.maven/cache/maven-jcoverage-plugin-1.0.7/plugin.jelly:193:91:
<report> org.apache.tools.ant.BuildException
Maybe the problem is that these projects have two source directories, and
jcoverage can't handle that?
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]