|
From: jesse <je...@re...> - 2005-05-29 02:58:41
|
I only included that class for performance testing and I don't want to
include it when building using maven. Is there a way to exclude the one
class from the build so the plugin will still compile?
Jesse
Jody Garnett wrote:
> I found the following code in Timing.java
>
>> long end = System.currentTimeMillis();
>> if (ACCURATE){
>> if (out != null) {
>> out.append("shape " + testName + "=" + (end - start)
>> / 3 + "\n");
>> }
>> }
>> else if (out != null) {
>> out.append("shape " + testName + "=" + (end - start) +
>> "\n");
>> }
>
>
> Although this is:
> a) not a test case
> b) not run by maven
>
> It is *compiled* by maven:
> - http://java.sun.com/j2se/1.5.0/docs/api/java/io/FileWriter.html
> - http://java.sun.com/j2se/1.4.2/docs/api/java/io/FileWriter.html
>
> Following the links above you can see that the Java 1.4 API for
> FileWriter is not appendable. Simply runing maven as it stands is not
> sufficient to detect this problem. You *can* create 1.4 classes that
> compile against the Java 1.5 API.
>
> Please code carefully, Jody
>
>
|