Hello Brett! Thanks for a thorough answer. I've been trying your suggestions
for the last two days but I couldn't get any of them to work.
On Monday 28 June 2004 04:24, Brett Porter wrote:
> BUT you don't seem to be modifying the source set - instead you want
> to change the tests that are run? ....... you
> probably just want to do something like:
>
> ${pom.unitTest.includes.add('**/FooTest.java')}
I have tryed that and the same thing with pom.build.unitTest.includes which is
probably what you meant, isn't it? But a new problem came up. The following
is (more or less) exactly what I have as a preGoal:
<preGoal name="test:test">
${pom.build.unitTest.includes.add('com/company/package/**')}
</preGoal>
Now, when I run 'maven test' this is the output:
__ __
| \/ |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \ ~ intelligent projects ~
|_| |_\__,_|\_/\___|_||_| v. 1.0-rc3
build:start:
java:prepare-filesystem:
java:compile:
[echo] Compiling to .../target/classes
tjdo:init:
tjdo:enhance:
[echo] JDO-enhancing classes for Triactive JDO
[echo] Classes are now JDO-enhanced for Triactive JDO
BUILD SUCCESSFUL
Total time: 4 seconds
Finished at: Tue Jun 29 16:18:43 CEST 2004
Note that the test goal doesn't seem to be executed at all. And this is
because of calling ${pom.build.unitTest.includes.add()}.
And with 'maven -X test', in the end I get the following:
...... a lot of stuff cut ......
test:test:
true [taskdef] [DEBUG] Class
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask loaded from parent
loader
[taskdef] [DEBUG] +User task: junit
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask
[DEBUG] Found /C:/Documents and
Settings/josko/.maven/repository/junit/jars/junit-3.8.1.jar
[DEBUG] Found /C:/ing/maven-1.0-rc3/lib/ant-1.5.3-1.jar
[DEBUG] Found /C:/ing/maven-1.0-rc3/lib/ant-optional-1.5.3-1.jar
[junit] [DEBUG] fileset: Setup scanner in dir C:\ing\bits-ci\test with
patternSet{ includes: [com/ingemark/articlebook/**] excludes:
[com/ingemark/articlebook/**, **/*AbstractTestCase.java] }
attaining goal build:end
BUILD SUCCESSFUL
Final Memory: 3M/5M
Total time: 4 seconds
Finished at: Tue Jun 29 16:10:18 CEST 2004
Note the 'true' in the second line. This 'true' is produced by executing
${pom.build.unitTest.includes.add()}. I have tryed encapsulating it in <j:if
test="${pom.build.....}"/> but still the same.
For some reason, calling this method aborts any further execution of the goals
in test plugin. Any ideas?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]