Re: Help patching Solr

2010-06-20 Thread Erick Erickson
I'm not going to be too much specific help for Windows here since I'm
running on a Mac, but...

All of this is done through ant, there's some help at the how to
contribute page, but nothing I see windows-specific:
http://wiki.apache.org/solr/HowToContribute

Which means you have to have your environment set up, with all the joy that
entails G. You can start by just going to the solr directory and typing
the relevant commands and installing whatever's not found. At minimum you
need ant and the java sdk. You'll have to set up the environment variables
properly, including things like JAVA_HOME and PATH and, perhaps, ANT_HOME?
I'm sure there are others

You can see all the available top-level targets for ant by just typing
ant, but a couple of useful ones are
ant clean for removing all compiled code
ant test for running all the unit tests
ant dist for creating war files.

Not too much help, but it's a start. It'd be great if you could list the
things you have to do and provide a how-to for the Wiki.

Good luck!
Erick

On Tue, Jun 15, 2010 at 3:04 PM, Moazzam Khan moazz...@gmail.com wrote:

 Thanks. I finally patched it (I think). I got the source from SVN and
 applied the patch using a windows port. A caveat to those to want to
 do this on windows - open the file in wordpad and save it as a
 different file to replace unix line breaks with DOS line breaks.
 Otherwise, the patch program gives an error:

 Assertion failed: hunk, file ../patch-2.5.9-src/patch.c, line 354

 Now, that I have patched it (as far as I can tell) how do I build the
 sources :D (sorry I know it's a basic question but I have no idea how
 to do this)

 - Moazzam

 On Tue, Jun 15, 2010 at 1:14 PM, Nagelberg, Kallin
 knagelb...@globeandmail.com wrote:
  I'm pretty sure you need to be running the patch against a checkout of
 the trunk sources, not a generated .war file. Once you've done that you can
 use the build scripts to make a new war.
 
  -Kallin Nagelberg
 
  -Original Message-
  From: Moazzam Khan [mailto:moazz...@gmail.com]
  Sent: Tuesday, June 15, 2010 1:53 PM
  To: solr-user@lucene.apache.org
  Subject: Help patching Solr
 
  Hey guys,
 
  Does anyone know how to patch stuff in Windows? I am trying to patch
  Solr with patch 238 but it keeps erroring out with this message:
 
 
 
  C:\solr\example\webappspatch solr.war ..\..\SOLR-236-trunk.patch
  patching file solr.war
  Assertion failed: hunk, file ../patch-2.5.9-src/patch.c, line 354
 
  This application has requested the Runtime to terminate it in an unusual
 way.
  Please contact the application's support team for more information.
 
  Thanks in advance
 
  Moazzam
 



RE: Help patching Solr

2010-06-15 Thread Nagelberg, Kallin
I'm pretty sure you need to be running the patch against a checkout of the 
trunk sources, not a generated .war file. Once you've done that you can use the 
build scripts to make a new war.

-Kallin Nagelberg

-Original Message-
From: Moazzam Khan [mailto:moazz...@gmail.com] 
Sent: Tuesday, June 15, 2010 1:53 PM
To: solr-user@lucene.apache.org
Subject: Help patching Solr

Hey guys,

Does anyone know how to patch stuff in Windows? I am trying to patch
Solr with patch 238 but it keeps erroring out with this message:



C:\solr\example\webappspatch solr.war ..\..\SOLR-236-trunk.patch
patching file solr.war
Assertion failed: hunk, file ../patch-2.5.9-src/patch.c, line 354

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

Thanks in advance

Moazzam


Re: Help patching Solr

2010-06-15 Thread Moazzam Khan
Thanks. I finally patched it (I think). I got the source from SVN and
applied the patch using a windows port. A caveat to those to want to
do this on windows - open the file in wordpad and save it as a
different file to replace unix line breaks with DOS line breaks.
Otherwise, the patch program gives an error:

Assertion failed: hunk, file ../patch-2.5.9-src/patch.c, line 354

Now, that I have patched it (as far as I can tell) how do I build the
sources :D (sorry I know it's a basic question but I have no idea how
to do this)

- Moazzam

On Tue, Jun 15, 2010 at 1:14 PM, Nagelberg, Kallin
knagelb...@globeandmail.com wrote:
 I'm pretty sure you need to be running the patch against a checkout of the 
 trunk sources, not a generated .war file. Once you've done that you can use 
 the build scripts to make a new war.

 -Kallin Nagelberg

 -Original Message-
 From: Moazzam Khan [mailto:moazz...@gmail.com]
 Sent: Tuesday, June 15, 2010 1:53 PM
 To: solr-user@lucene.apache.org
 Subject: Help patching Solr

 Hey guys,

 Does anyone know how to patch stuff in Windows? I am trying to patch
 Solr with patch 238 but it keeps erroring out with this message:



 C:\solr\example\webappspatch solr.war ..\..\SOLR-236-trunk.patch
 patching file solr.war
 Assertion failed: hunk, file ../patch-2.5.9-src/patch.c, line 354

 This application has requested the Runtime to terminate it in an unusual way.
 Please contact the application's support team for more information.

 Thanks in advance

 Moazzam