Vincent,
I tried placing the cactus tests directory in the project.xml as <unitTestSourceDirectory>src/test-cactus</unitTestSourceDirectory>. (I don't even know if this is right or not but.... I was trying...) then I got this
[EMAIL PROTECTED]:~/workspace/MavenClover$ maven clover:on cactus __ __ | \/ |__ _Apache__ ___ | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~ |_| |_\__,_|\_/\___|_||_| v. 1.0
build:start:
clover:init:
clover:on:
[echo] Setting Clover compiler
[echo] Now using primary build.compiler : org.apache.tools.ant.taskdefs.CloverCompilerAdapter
cactus:init:
cactus:test: cactus:init: Overriding previous definition of reference to cactus.classpath Overriding previous definition of reference to cactus.scanner.classpath
cactus:init-report:
[mkdir] Created dir: /home/kelly/workspace/MavenClover/target/test-cactus-reports
[mkdir] Created dir: /home/kelly/workspace/MavenClover/target/test-cactus-reports/tomcat5x
java:prepare-filesystem:
java:compile:
[echo] Compiling to /home/kelly/workspace/MavenClover/target/clover/classes
[javac] Compiling 5 source files to /home/kelly/workspace/MavenClover/target/clover/classes
[javac] Clover Version 1.2.3, built on October 20 2003
[javac] loaded from: file:/home/kelly/.maven/repository/clover/jars/clover-1.2.3.jar
[javac] 30 day Evaluation Version distributed via the Maven Jar Repository.
[javac] Clover is not free. You have 30 days to evaluate it.
[javac] Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover
[javac] No coverage database '/home/kelly/workspace/MavenClover/target/clover/database/clover_coverage.db' found. Creating a fresh one.
[javac] Clover all over. Instrumented 5 files.
cactus:compile:
[mkdir] Created dir: /home/kelly/workspace/MavenClover/target/test-cactus-classes
[javac] Compiling 4 source files to /home/kelly/workspace/MavenClover/target/test-cactus-classes
[javac] Clover Version 1.2.3, built on October 20 2003
[javac] loaded from: file:/home/kelly/.maven/repository/clover/jars/clover-1.2.3.jar
[javac] 30 day Evaluation Version distributed via the Maven Jar Repository.
[javac] Clover is not free. You have 30 days to evaluate it.
[javac] Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover
[javac] Updating database at '/home/kelly/workspace/MavenClover/target/clover/database/clover_coverage.db'
[javac] Clover all over. Instrumented 0 files.
/tmp/clover28846.tmp/src28847.tmp/org/apache/maven/cactus/sample/TestSampleFilter.java:90: cannot resolve symbol
symbol : method init (org.apache.cactus.server.FilterConfigWrapper)
location: class org.apache.maven.cactus.sample.SampleFilter
filter.init(config);
^
/tmp/clover28846.tmp/src28847.tmp/org/apache/maven/cactus/sample/TestSampleFilter.java:113: cannot resolve symbol
symbol : method init (org.apache.cactus.server.FilterConfigWrapper)
location: class org.apache.maven.cactus.sample.SampleFilter
filter.init(config);
^
/tmp/clover28846.tmp/src28847.tmp/org/apache/maven/cactus/sample/TestSampleFilter.java:136: cannot resolve symbol
symbol : method init (org.apache.cactus.server.FilterConfigWrapper)
location: class org.apache.maven.cactus.sample.SampleFilter
filter.init(config);
^
/tmp/clover28846.tmp/src28847.tmp/org/apache/maven/cactus/sample/TestSampleFilter.java:159: cannot resolve symbol
symbol : method init (org.apache.cactus.server.FilterConfigWrapper)
location: class org.apache.maven.cactus.sample.SampleFilter
filter.init(config);
^
/tmp/clover28846.tmp/src28847.tmp/org/apache/maven/cactus/sample/TestSampleFilter.java:183: cannot resolve symbol
symbol : method init (org.apache.cactus.server.FilterConfigWrapper)
location: class org.apache.maven.cactus.sample.SampleFilter
filter.init(config);
^
/tmp/clover28846.tmp/src28847.tmp/org/apache/maven/cactus/sample/TestSampleFilter.java:206: cannot resolve symbol
symbol : method doFilter (org.apache.cactus.server.HttpServletRequestWrapper,javax.servlet.http.HttpServletResponse,javax.servlet.FilterChain)
location: class org.apache.maven.cactus.sample.SampleFilter
filter.doFilter(request, response, mockFilterChain);
^
/tmp/clover28846.tmp/src28847.tmp/org/apache/maven/cactus/sample/TestSampleBodyTag.java:52: cannot resolve symbol
symbol : method setPageContext (org.apache.cactus.server.PageContextWrapper)
location: class org.apache.maven.cactus.sample.SampleBodyTag
this.tag.setPageContext(this.pageContext);
^
/tmp/clover28846.tmp/src28847.tmp/org/apache/maven/cactus/sample/TestSampleBodyTag.java:56: cannot resolve symbol
symbol : method setBodyContent (javax.servlet.jsp.tagext.BodyContent)
location: class org.apache.maven.cactus.sample.SampleBodyTag
this.tag.setBodyContent(this.tagContent);
^
/tmp/clover28846.tmp/src28847.tmp/org/apache/maven/cactus/sample/TestSampleServlet.java:42: cannot resolve symbol
symbol : method isAuthenticated (org.apache.cactus.server.HttpServletRequestWrapper)
location: class org.apache.maven.cactus.sample.SampleServlet
assertTrue(servlet.isAuthenticated(request));
^
/tmp/clover28846.tmp/src28847.tmp/org/apache/maven/cactus/sample/TestSampleServlet.java:53: cannot resolve symbol
symbol : method isAuthenticated (org.apache.cactus.server.HttpServletRequestWrapper)
location: class org.apache.maven.cactus.sample.SampleServlet
assertTrue(!servlet.isAuthenticated(request));
^
/tmp/clover28846.tmp/src28847.tmp/org/apache/maven/cactus/sample/TestSampleServlet.java:75: cannot resolve symbol
symbol : method isAuthenticated (org.apache.cactus.server.HttpServletRequestWrapper)
location: class org.apache.maven.cactus.sample.SampleServlet
assertTrue(!servlet.isAuthenticated(request));
^
11 errors
BUILD FAILED File...... /home/kelly/.maven/cache/cactus-maven-1.6/plugin.jelly Element... ant:javac Line...... 144 Column.... 107 Compile failed; see the compiler error output for details. Total time: 8 seconds Finished at: Thu Sep 02 16:41:31 BRT 2004
Everytime I try something it gets worse ;P
Kelly.
Kelly.
Kelly C. Goedert wrote:
Hello Vincent,
I tried what you suggest, and I get this:
[EMAIL PROTECTED]:~/workspace/MavenClover$ maven clover:on cactus __ __ | \/ |__ _Apache__ ___ | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~ |_| |_\__,_|\_/\___|_||_| v. 1.0
Attempting to download servletapi-2.3.jar. 76K downloaded build:start:
clover:init:
[mkdir] Created dir: /home/kelly/workspace/MavenClover/target/clover/classes [mkdir] Created dir: /home/kelly/workspace/MavenClover/target/clover/database
[mkdir] Created dir: /home/kelly/workspace/MavenClover/target/docs/clover
clover:on: [echo] Setting Clover compiler
BUILD FAILED File...... /home/kelly/.maven/cache/maven-clover-plugin-1.5/plugin.jelly Element... ant:pathconvert Line...... 125 Column.... 45 Reference maven.test.compile.src.set not found. Total time: 17 seconds Finished at: Thu Sep 02 16:18:14 BRT 2004
What am I missing now??
Vincent Massol wrote:
Hi Kelly,
-----Original Message----- From: Kelly C. Goedert [mailto:[EMAIL PROTECTED] Sent: jeudi 2 septembre 2004 19:35 To: Cactus Users List Subject: Re: clover-plugin
[snip]
Hmm... I'm not sure if it works with the versions you have, they seem a bit
oldish.
I suggest you try running the sample servlet at
http://cvs.apache.org/viewcvs.cgi/jakarta-cactus/integration/maven/samples/s
ervlet/ (by typing maven clover:on cactus). You'll need to create a
build.properties file (you should use build.properties.sample as a sample).
If it works it means the versions you have are fine.
-Vincent
--------------------------------------------------------------------- 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]
