Bug 44100

Summary: [PATCH] ant task compile-scratchpad fails unless compile-main already run
Product: POI Reporter: Manda Wilson <wilson>
Component: POI OverallAssignee: POI Developers List <dev>
Status: RESOLVED FIXED    
Severity: trivial    
Priority: P5    
Version: 3.0-dev   
Target Milestone: ---   
Hardware: All   
OS: All   
Attachments: Generated using svn diff > AntCompileScratchpadTask.patch

Description Manda Wilson 2007-12-18 19:16:04 UTC
The ant task compile-scratchpad fails (to compile) if the ant task compile-main
hasn't already been run.

This is what I ran:

$ ant clean
Buildfile: build.xml

clean:
   [delete] Deleting directory XXX/build

BUILD SUCCESSFUL
Total time: 0 seconds

$ ant compile-scratchpad

...a bunch of errors...
BUILD FAILED
XXX/build.xml:311: Compile failed; see the compiler error output for details.

This problem propagates to other tasks that depend on compile-scratchpad.  I
discovered the problem when I tried to run "ant clean" followed by:

ant -Dtestcase=org.apache.poi.hssf.record.formula.functions.TestEverything
single-scratchpad-test

There is no harm in adding a dependency on compile-main to compile-scratchpad
since compile-main will only be run if it needs to be.  Each ant task should be
able to run successfully without the user having to run other tasks previously.
Comment 1 Manda Wilson 2007-12-18 19:22:17 UTC
Created attachment 21287 [details]
Generated using svn diff > AntCompileScratchpadTask.patch

I modified the ant task compile-scratchpad in build.xml to depend on
compile-main.  That way all of the following will run without errors:

ant clean
ant compile-scratchpad

ant clean
ant -Dtestcase=org.apache.poi.hssf.record.formula.functions.TestEverything
single-scratchpad-test
Comment 2 Nick Burch 2007-12-21 04:13:28 UTC
Fixed in svn, thanks