You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by dn...@apache.org on 2005/01/23 12:12:51 UTC
cvs commit: jakarta-lucene-sandbox/contributions/lucli build.xml
dnaber 2005/01/23 03:12:51
Modified: contributions/lucli/META-INF MANIFEST.MF
contributions/lucli build.xml
Log:
make the jar less broken -- however, it still requires a "lib" dir with lucene.jar and libreadline-java.jar
Revision Changes Path
1.2 +2 -1 jakarta-lucene-sandbox/contributions/lucli/META-INF/MANIFEST.MF
Index: MANIFEST.MF
===================================================================
RCS file: /home/cvs/jakarta-lucene-sandbox/contributions/lucli/META-INF/MANIFEST.MF,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- MANIFEST.MF 11 Dec 2003 02:07:45 -0000 1.1
+++ MANIFEST.MF 23 Jan 2005 11:12:51 -0000 1.2
@@ -1 +1,2 @@
-Main-Class: LuceneLine
+Main-Class: lucli.Lucli
+Class-Path: lib/libreadline-java.jar lib/lucene.jar
1.3 +7 -0 jakarta-lucene-sandbox/contributions/lucli/build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/jakarta-lucene-sandbox/contributions/lucli/build.xml,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- build.xml 5 Jan 2004 17:20:42 -0000 1.2
+++ build.xml 23 Jan 2005 11:12:51 -0000 1.3
@@ -18,5 +18,12 @@
<property name="src.dir" location="src"/>
+ <target name="dist" depends="compile" description="Create JAR">
+ <jar jarfile="${dist.dir}/${dist.name}.jar"
+ basedir="${build.classes.dir}"
+ manifest="META-INF/MANIFEST.MF"
+ />
+ </target>
+
<import file="../common.xml"/>
</project>
---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org
Re: cvs commit: jakarta-lucene-sandbox/contributions/lucli build.xml
Posted by Daniel Naber <da...@t-online.de>.
On Monday 24 January 2005 13:34, Erik Hatcher wrote:
> I ran the run.sh in lucli directory, though I modified it locally to
> point to a Lucene 1.4.3 JAR.
I see. I committed a small change to run.sh that I guess makes it work for
more situations without editing.
Regards
Daniel
--
http://www.danielnaber.de
---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org
Re: cvs commit: jakarta-lucene-sandbox/contributions/lucli build.xml
Posted by Erik Hatcher <er...@ehatchersolutions.com>.
On Jan 23, 2005, at 7:18 AM, Daniel Naber wrote:
> On Sunday 23 January 2005 13:04, Erik Hatcher wrote:
>
>> I have gotten lucli to work fine by putting the additional JAR files
>> on
>> the CLASSPATH.
>
> When I try to start it with "java -jar lucli-dev.jar" it seems to
> ignore
> the CLASSPATH. Also the -cp option doesn't seem to have any effect when
> using it with -jar. Did you call it in a different way?
I ran the run.sh in lucli directory, though I modified it locally to
point to a Lucene 1.4.3 JAR.
Here's basically the script I launch it with:
LUCLI=.
LUCLI_MEMORY=128M
CLASSPATH=${CLASSPATH}:$LUCLI/lib/libreadline-java.jar:$LUCLI/lib/
lucene-1.4.3.jar:$LUCLI/classes/lucli.jar
PATH=${PATH}:$JAVA_HOME/bin
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$LUCLI
export LD_LIBRARY_PATH
$JAVA_HOME/bin/java -Xmx${LUCLI_MEMORY} lucli.Lucli
Erik
---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org
Re: cvs commit: jakarta-lucene-sandbox/contributions/lucli build.xml
Posted by Daniel Naber <da...@t-online.de>.
On Sunday 23 January 2005 13:04, Erik Hatcher wrote:
> I have gotten lucli to work fine by putting the additional JAR files on
> the CLASSPATH.
When I try to start it with "java -jar lucli-dev.jar" it seems to ignore
the CLASSPATH. Also the -cp option doesn't seem to have any effect when
using it with -jar. Did you call it in a different way?
Regards
Daniel
--
http://www.danielnaber.de
---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org
Re: cvs commit: jakarta-lucene-sandbox/contributions/lucli build.xml
Posted by Andrzej Bialecki <ab...@getopt.org>.
Erik Hatcher wrote:
> On Jan 23, 2005, at 6:46 AM, Daniel Naber wrote:
>
>> On Sunday 23 January 2005 12:12, dnaber@apache.org wrote:
>>
>>> make the jar less broken -- however, it still requires a "lib" dir
>>> with lucene.jar and libreadline-java.jar
>>
>>
>> Calling "ant" in contributions/lucli built a jar file that didn't work. I
>> tried to fix that, but the libs that should be part of the jar are not in
>> sandbox CVS. Should we add a lucene.jar there?
>
>
> I have gotten lucli to work fine by putting the additional JAR files on
> the CLASSPATH.
>
>> The other problem is the java readline which has a warning about
>> libreadline being GPL on its homepage:
>> http://java-readline.sourceforge.net/
>> Should we add a libreadline-java.jar to our Sandbox CVS that does not
>> link
>> to libreadline but to editline, which is under LGPL (but probably isn't
>> installed by default on any system)?
>
>
> We cannot check in any non-ASL'd files into CVS. We can modify the
> build to automatically download them if they are not present, or give an
> informative error message if the missing classes are not found. Lucli
> was not easy for me to get going on Mac OS X, but I did eventually get
> it working without readline support.
Just stumbled upon this project on freshemat:
http://jline.sourceforge.net/
It's BSD-licensed, and seems to provide a feature (if not API)
replacement for readline.
--
Best regards,
Andrzej Bialecki
___. ___ ___ ___ _ _ __________________________________
[__ || __|__/|__||\/| Information Retrieval, Semantic Web
___|||__|| \| || | Embedded Unix, System Integration
http://www.sigram.com Contact: info at sigram dot com
---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org
Re: cvs commit: jakarta-lucene-sandbox/contributions/lucli build.xml
Posted by Erik Hatcher <er...@ehatchersolutions.com>.
On Jan 23, 2005, at 6:46 AM, Daniel Naber wrote:
> On Sunday 23 January 2005 12:12, dnaber@apache.org wrote:
>
>> make the jar less broken -- however, it still requires a "lib" dir
>> with lucene.jar and libreadline-java.jar
>
> Calling "ant" in contributions/lucli built a jar file that didn't
> work. I
> tried to fix that, but the libs that should be part of the jar are not
> in
> sandbox CVS. Should we add a lucene.jar there?
I have gotten lucli to work fine by putting the additional JAR files on
the CLASSPATH.
> The other problem is the java readline which has a warning about
> libreadline being GPL on its homepage:
> http://java-readline.sourceforge.net/
> Should we add a libreadline-java.jar to our Sandbox CVS that does not
> link
> to libreadline but to editline, which is under LGPL (but probably isn't
> installed by default on any system)?
We cannot check in any non-ASL'd files into CVS. We can modify the
build to automatically download them if they are not present, or give
an informative error message if the missing classes are not found.
Lucli was not easy for me to get going on Mac OS X, but I did
eventually get it working without readline support.
We should probably pull the "dist" target changes you made (as you
override the ../common.xml one) up to common.xml so that all projects
have a chance to modify the manifest. I'll add that to my TODO list to
eventually look into.
Erik
---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org
Re: cvs commit: jakarta-lucene-sandbox/contributions/lucli build.xml
Posted by Daniel Naber <da...@t-online.de>.
On Sunday 23 January 2005 12:12, dnaber@apache.org wrote:
> make the jar less broken -- however, it still requires a "lib" dir
> with lucene.jar and libreadline-java.jar
Calling "ant" in contributions/lucli built a jar file that didn't work. I
tried to fix that, but the libs that should be part of the jar are not in
sandbox CVS. Should we add a lucene.jar there?
The other problem is the java readline which has a warning about
libreadline being GPL on its homepage:
http://java-readline.sourceforge.net/
Should we add a libreadline-java.jar to our Sandbox CVS that does not link
to libreadline but to editline, which is under LGPL (but probably isn't
installed by default on any system)?
Regards
Daniel
--
http://www.danielnaber.de
---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org