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.
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
Fixed in svn, thanks