i am glad you mentioned jar file because i think that is the actual problem
i tried extracting jcoverage/jars/jcoverage-1.0.5.jar and it was corrupt. i replaced 
the file with one from jcoverage website and everything started to work. you may need 
to check file you are distributing

my two cents on clover vs jcoverage: clover it is better but not $2500 better...

thanks
vlad

>>> [EMAIL PROTECTED] 12/18/03 10:50AM >>>
It's in your local repository in jcoverage/jars/jcoverage-1.0.5.jar

The content is :
instrument=com.jcoverage.ant.InstrumentTask
merge=com.jcoverage.ant.MergeTask
report=com.jcoverage.ant.CoverageReportTask
check=com.jcoverage.ant.CheckTask

Emmanuel

----- Original Message ----- 
From: "VLADIMIR TERZIC" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 18, 2003 6:39 PM
Subject: Re: [ANNOUNCE] JCoverage Plugin


no i don't have it...
is that maven related file?

could you sent me sample tasks.properties file

thanks
vlad

>>> [EMAIL PROTECTED] 12/18/03 10:37AM >>>
OK, I think I find your problem!!!

I don't like this lines in your trace :
    [taskdef] Could not load definitions from resource tasks.properties. It
could not be found.
[SNIP]
<instrument
todir="C:\workspace\projects\extweb_cust_struts/target/jcoverage/classes"><c
lasspath></classpath></instrumet>

Apparently, the plugin doesn't find ant task definitions in tasks.properties
that is present in jcoverage jar.
Do you have a tasks.properties file in your classpath that is loaded before
tasks.properties in jcoverage jar file?

The solution of your problem is here.

Emmanuel

----- Original Message ----- 
From: "VLADIMIR TERZIC" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 18, 2003 5:27 PM
Subject: Re: [ANNOUNCE] JCoverage Plugin


notes:
- notice that java:compile works over 85 source files where jcoverage is
running on 2 files
- test:compile is now reporting resolve issues (i only put one it)

thanks
vlad

    [taskdef] Could not load definitions from resource tasks.properties. It
could not be found.
java:prepare-filesystem:
    [mkdir] Created dir:
C:\workspace\projects\extweb_cust_struts\target\classes

java:compile:
    [echo] Compiling to
C:\workspace\projects\extweb_cust_struts/target/classes
    [javac] Compiling 85 source files to
C:\workspace\projects\extweb_cust_struts\target\classes
Note: Some input files use or override a deprecated API.
Note: Recompile with -deprecation for details.

jcoverage:on:
          [mkdir] Created dir:
C:\workspace\projects\extweb_cust_struts\target\docs\jcoverage
    [mkdir] Created dir:
C:\workspace\projects\extweb_cust_struts\target\jcoverage\database
    [mkdir] Created dir:
C:\workspace\projects\extweb_cust_struts\target\jcoverage\classes
instrumenting the class-files...
<instrument
todir="C:\workspace\projects\extweb_cust_struts/target/jcoverage/classes"><c
lasspath></classpath></instrumet>
Copying 2 files to
C:\workspace\projects\extweb_cust_struts\target\jcoverage\classes

java:jar-resources:
Copying 2 files to C:\workspace\projects\extweb_cust_struts\target\classes

test:prepare-filesystem:
    [mkdir] Created dir:
C:\workspace\projects\extweb_cust_struts\target\test-reports

test:test-resources:

test:compile:
    [javac] Compiling 4 source files to
C:\workspace\projects\extweb_cust_struts\target\test-classes
C:\workspace\projects\extweb_cust_struts\src\test\com\intgas\cust\access\Acc
ountHistoryAccessTest.java:9: package com.i
tgas.cust.beans does not exist
import com.intgas.cust.beans.*;


>>> [EMAIL PROTECTED] 12/18/03 08:57AM >>>
Could you run maven clean jcoverage? Do you have errors?

Emmanuel

----- Original Message ----- 
From: "VLADIMIR TERZIC" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 18, 2003 4:14 PM
Subject: Re: [ANNOUNCE] JCoverage Plugin


notes
- my eclipse output folder is set to
C:\workspace\projects\extweb_cust_struts/target/classes in
project.properties
- when instrumenting jcoverage plugin finds 2 files in that directory but it
does not traverse down the path to find other classes (80+ of them)

let me know if you need more info (output is below)

thanks
vlad

maven jcoverage output:
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0-rc1-SNAPSHOT

    [taskdef] Could not load definitions from resource tasks.properties. It
could not be found.
java:prepare-filesystem:

java:compile:
    [echo] Compiling to
C:\workspace\projects\extweb_cust_struts/target/classes

jcoverage:on:
          [mkdir] Created dir:
C:\workspace\projects\extweb_cust_struts\target\jcoverage\database
    [mkdir] Created dir:
C:\workspace\projects\extweb_cust_struts\target\jcoverage\classes
instrumenting the class-files...
<instrument
todir="C:\workspace\projects\extweb_cust_struts/target/jcoverage/classes"><c
lasspath></classpath></instrument>
Copying 2 files to
C:\workspace\projects\extweb_cust_struts\target\jcoverage\classes

java:jar-resources:

test:prepare-filesystem:

test:test-resources:

test:compile:

test:test:
    [junit] Running com.intgas.cust.access.AccountHistoryAccessTest
    [junit] Tests run: 2, Failures: 2, Errors: 0, Time elapsed: 0.11 sec
    [junit] [ERROR] TEST com.intgas.cust.access.AccountHistoryAccessTest
FAILED
    [junit] Running com.intgas.cust.access.WebsiteLogAccessTest
    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0.09 sec
    [junit] [ERROR] TEST com.intgas.cust.access.WebsiteLogAccessTest FAILED
    [junit] Running com.intgas.cust.models.CustBusinessLogicTest
    [junit] java.lang.NoClassDefFoundError:
com/intgas/cust/models/CustBusinessModel
    [junit]     at
com.intgas.cust.models.CustBusinessLogicTest.<clinit>(CustBusinessLogicTest.
java:19)
    [junit]     at java.lang.Class.forName0(Native Method)
    [junit]     at java.lang.Class.forName(Class.java:115)
    [junit]     at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.<init>(JUnitTes
tRunner.java:237)
    [junit]     at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.<init>(JUnitTes
tRunner.java:210)
    [junit]     at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestR
unner.java:532)
    [junit] Exception in thread "main"
    [junit] [ERROR] TEST com.intgas.cust.models.CustBusinessLogicTest FAILED
    [junit] Running com.intgas.cust.models.CustValidationLogicTest
    [junit] java.lang.NoClassDefFoundError:
com/intgas/cust/exceptions/DbException
    [junit]     at java.lang.Class.forName0(Native Method)
    [junit]     at java.lang.Class.forName(Class.java:115)
    [junit]     at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.<init>(JUnitTes
tRunner.java:237)
    [junit]     at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.<init>(JUnitTes
tRunner.java:210)
    [junit]     at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestR
unner.java:532)
    [junit] Exception in thread "main"
    [junit] [ERROR] TEST com.intgas.cust.models.CustValidationLogicTest
FAILED

BUILD FAILED
File...... file:/C:/Documents and
Settings/vterzic/.maven/plugins/maven-test-plugin-1.4/
Element... fail
Line...... 130
Column.... 54
There were test failures.
Total time: 5 seconds
Finished at: Thu Dec 18 08:10:03 MST 2003

>>> [EMAIL PROTECTED] 12/17/03 10:58PM >>>
> plugin (1.0.2 or any version for that matter) does not seem to work right
with eclipse projects (running plugin on command line with maven jcoverage)

What's exactly the problem?

> plugin only instruments classes on the 'top level' but not ones in
packages so when junit goals are run they fail...

Could you send me a little simple?

> any ideas?

> thanks
> vlad


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to