Bug 44100 - [PATCH] ant task compile-scratchpad fails unless compile-main already run
Summary: [PATCH] ant task compile-scratchpad fails unless compile-main already run
Status: RESOLVED FIXED
Alias: None
Product: POI
Classification: Unclassified
Component: POI Overall (show other bugs)
Version: 3.0-dev
Hardware: All All
: P5 trivial (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-18 19:16 UTC by Manda Wilson
Modified: 2007-12-21 04:13 UTC (History)
0 users



Attachments
Generated using svn diff > AntCompileScratchpadTask.patch (505 bytes, patch)
2007-12-18 19:22 UTC, Manda Wilson
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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