You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by yo...@apache.org on 2006/02/16 02:05:57 UTC

svn commit: r378133 - /incubator/solr/trunk/build.xml

Author: yonik
Date: Wed Feb 15 17:05:55 2006
New Revision: 378133

URL: http://svn.apache.org/viewcvs?rev=378133&view=rev
Log:
add example and dist-example targets to build.xml

Modified:
    incubator/solr/trunk/build.xml

Modified: incubator/solr/trunk/build.xml
URL: http://svn.apache.org/viewcvs/incubator/solr/trunk/build.xml?rev=378133&r1=378132&r2=378133&view=diff
==============================================================================
--- incubator/solr/trunk/build.xml (original)
+++ incubator/solr/trunk/build.xml Wed Feb 15 17:05:55 2006
@@ -18,6 +18,9 @@
   <!-- Destination for distribution files (demo WAR, src distro, etc.) -->
   <property name="dist" value="dist" />
 
+  <!-- Example directory -->
+  <property name="example" value="example" />
+
   <!-- Default target: usage.  Prints out instructions. -->
   <target name="usage"
           description="Prints out instructions">
@@ -116,7 +119,7 @@
   <!-- Creates the Solr distribution files. -->
   <target name="dist"
           description="Creates the Solr distribution files."
-          depends="dist-src, dist-war, dist-bin" />
+          depends="dist-src, dist-war, dist-bin, dist-example" />
 
   <!-- Creates the Solr WAR file. -->
   <target name="dist-war"
@@ -157,4 +160,21 @@
          basedir="${dest}" />
   </target>
 
+
+  <target name="example" 
+	  depends="dist-war">
+          <copy file="${dist}/${ant.project.name}-${version}.war" tofile="${example}/webapps/${ant.project.name}.war"/>
+  </target>
+
+  <target name="dist-example" 
+	  depends="example">
+    <zip destfile="${dist}/${ant.project.name}-${version}-example.zip">
+      <zipfileset dir="${example}"
+        prefix="${ant.project.name}-${example}"
+        excludes="data/ logs/*"
+      />
+    </zip>
+  </target>
+
 </project>
+



Re: svn commit: r378133 - /incubator/solr/trunk/build.xml

Posted by Doug Cutting <cu...@apache.org>.
Yonik Seeley wrote:
> My main motivation for using a separate solr-example.zip is that I
> knew an immediate way to do it (check it into the docs dir, and I'm
> done...).   If we want to point new users to a standard download, I
> guess that would be the nightly build?  how fast can that be set up?

I've created you an account on lucene.zones.apache.org, and will send 
you the password separately.  This is a Solaris box.

You can clone the nightly build stuff for lucene, nutch or hadoop. 
These are pretty simple, and, e.g., at:

http://svn.apache.org/repos/asf/lucene/nutch/nightly/

They check things out from svn afresh, run 'ant nightly', then use scp 
to copy things to cvs.apache.org (the official place for nightly 
downloads).  If ant fails then its log is mailed to the dev list.  A 
crontab entry is used to run this each night.  You need to run 
ssh-keygen on lucene.zones.apache.org, generating a passwordless key, 
then append the .ssh/id.pub key file to your .ssh/authorized_keys on 
people.apache.org, so that the scp will work.

The JDK 1.5 installed there seems incomplete.  I have one in 
~cutting/local that you might use, since Solr requires this, or, I can 
give you sudo privledges and you can try to fix the installation.

Doug

Re: svn commit: r378133 - /incubator/solr/trunk/build.xml

Posted by Yonik Seeley <ys...@gmail.com>.
On 2/15/06, Doug Cutting <cu...@apache.org> wrote:
> yonik@apache.org wrote:
> > add example and dist-example targets to build.xml
>
> So you think the example should be a separate download, not part of the
> standard download?  I find multiple downloads confusing and think it
> would be better to focus on a single download that includes a demo.  Do
> you disagree?

My main motivation is to have a .zip that I can point to from the
website that someone can download and immediately run without any
other prereqs (i don't care as much if that's part of the normal
distribution and they have to cd to ./example first).  I also want
this in place relatively soon, so we can notify the lucene community
(also hopefully soon, like in another week).

My main motivation for using a separate solr-example.zip is that I
knew an immediate way to do it (check it into the docs dir, and I'm
done...).   If we want to point new users to a standard download, I
guess that would be the nightly build?  how fast can that be set up?

-Yonik

Re: svn commit: r378133 - /incubator/solr/trunk/build.xml

Posted by Chris Hostetter <ho...@fucit.org>.
: But isn't the standard to have the primary download include
: documentation and examples?  The reason is that you don't optimize the
: out-of-box experience for advanced users: it's okay to frustrate them a
: bit, they're going to find what they need in the download.  The more
: important thing is not to confuse newbies.  A single download with
: documentation and examples is what newbies need.  While you might be
: somewhat annoyed by the extra baggage, how much harder does it really
: make your life?

I wasn't suggesting that we *don't* have a monolithic download, just that
it be possible to get the individual "chunks" seperatly -- but you've
convinced me that from a "distribution marketing" standpoint, the example
dist with binaries, and source, and jetty, and sample configs, and
javadocs, and prebuilt index makes sense as the "primary" distribution.



-Hoss


Re: svn commit: r378133 - /incubator/solr/trunk/build.xml

Posted by Doug Cutting <cu...@apache.org>.
Chris Hostetter wrote:
> I personally find monolithic downloads containing everything and the
> kitchen sink anoying -- especially as the kitchen sink grows over time:
> All you want is the newest release of the library, but instead you're
> forced to download the library, the src, the javadocs, the dependencies
> (which you already have) and a sample app.

But isn't the standard to have the primary download include 
documentation and examples?  The reason is that you don't optimize the 
out-of-box experience for advanced users: it's okay to frustrate them a 
bit, they're going to find what they need in the download.  The more 
important thing is not to confuse newbies.  A single download with 
documentation and examples is what newbies need.  While you might be 
somewhat annoyed by the extra baggage, how much harder does it really 
make your life?

Doug

Re: svn commit: r378133 - /incubator/solr/trunk/build.xml

Posted by Bill Au <bi...@gmail.com>.
Typically binary and source are separate downloads.  I think the demo
can be a separate download too for someone who just want to take a
quick spin.

Bill

On 2/16/06, Chris Hostetter <ho...@fucit.org> wrote:
>
>
> : > add example and dist-example targets to build.xml
> :
> : So you think the example should be a separate download, not part of the
> : standard download?  I find multiple downloads confusing and think it
> : would be better to focus on a single download that includes a demo.  Do
> : you disagree?
>
> I personally find monolithic downloads containing everything and the
> kitchen sink anoying -- especially as the kitchen sink grows over time:
> All you want is the newest release of the library, but instead you're
> forced to download the library, the src, the javadocs, the dependencies
> (which you already have) and a sample app.
>
> It makes sense to have a monolithic download for the person who's new and
> wants to try it out without needing any prereqs (our example dist in this
> case)  But the contents of that monolithic download should be a super set
> of the union of a "binary distribution" and a "source distribution" that
> are also available.
>
>
>
> -Hoss
>
>

Re: svn commit: r378133 - /incubator/solr/trunk/build.xml

Posted by Chris Hostetter <ho...@fucit.org>.
: > add example and dist-example targets to build.xml
:
: So you think the example should be a separate download, not part of the
: standard download?  I find multiple downloads confusing and think it
: would be better to focus on a single download that includes a demo.  Do
: you disagree?

I personally find monolithic downloads containing everything and the
kitchen sink anoying -- especially as the kitchen sink grows over time:
All you want is the newest release of the library, but instead you're
forced to download the library, the src, the javadocs, the dependencies
(which you already have) and a sample app.

It makes sense to have a monolithic download for the person who's new and
wants to try it out without needing any prereqs (our example dist in this
case)  But the contents of that monolithic download should be a super set
of the union of a "binary distribution" and a "source distribution" that
are also available.



-Hoss


Re: svn commit: r378133 - /incubator/solr/trunk/build.xml

Posted by Doug Cutting <cu...@apache.org>.
yonik@apache.org wrote:
> add example and dist-example targets to build.xml

So you think the example should be a separate download, not part of the 
standard download?  I find multiple downloads confusing and think it 
would be better to focus on a single download that includes a demo.  Do 
you disagree?

Doug