I didn't notice before because i was using a version of solr i build from
svn, but none of the nightly ZIP files don't contain solr.war in the
example...
laptop:~/tmp/solr/solr-2006-02-24> unzip -q solr-2006-02-24.zip
laptop:~/tmp/solr/solr-2006-02-24> find -name \*.war
./solr-nightly/dist/solr-nightly.war
...I think the problem is that the dependency tree for "nightly" doesn't
include "dist-example" (i'm guessing "dist" is suppose to depend on
"dist-example" ?) so nothing is putting the war in example/webapps.
(things are further confused by the fact that "ant package" doesn't seem
to care bout the zip produced by "ant dist-example" .. it goes straight to
./example)
developers would never notice the problem as long as they've run "ant
example" at least once ... "ant clean" doesn't remove that artifact, so no
matter how many changes you might make, the war in the example will never
change unless you manually run "ant example" again.
I'm not ant expert, but I'm a little uneasy about the way "ant example"
copies build artifacts from dist into what is really a source directory
(./example).
Perhaps...
* "ant example" should copy everything from
./example to ./build/example
* "and dist-example" should:
1) depend on dist-war
2) zip up:
./build/example/**
./dist/solr-version.war
into: ./dist/solr-version-example.zip
* "ant dist" should depend on "dist-example"
* "ant package" rely only on the files it can find in the dist
directories, and not pull from any of the directories under version
control, or even the ./build directory (to makt the master zip, it can
explode re-zip the what it finds in ./dist)
thoughts?
-Hoss