lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-4415) need to document/fix/remove build.xml dependencies on javascript
Date Sat, 22 Sep 2012 10:59:07 GMT

    [ https://issues.apache.org/jira/browse/LUCENE-4415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13461112#comment-13461112
] 

Uwe Schindler commented on LUCENE-4415:
---------------------------------------

My -1 was related to the patch! The patch is not good, as it replaces the official Java 6
javax.scripting framework by the "outdated" BSF framework, which is a completely different
implementation made for Java 4+. This patch would only work with ANT, but not JavaScript.
I would agree to add the download of rhino.jar and the above script-js.jar from the Oracle
website (http://download.oracle.com/otndocs/jcp/sjp-1.0-fr-oth-JPR/) into the bootstrap path,
nothing more. Just to repat: I AM AGAINST ADDING OUTDATED BSF!

I agree that the Spec does not mandate to add "Javascript", but there *must* be one scripting
implementation. In fact the rmuir private JDK is stupid, as a large number of projects would
no longer work and this is also the reason for *every-except-FreeBSD* JDK out there to ship
with JavaScript.

The bug is on the FreeBSD side - I will check their bugtracker and suggest to use partially
IcedTea build (they already use patches from IcedTea).

By the way: I can also build a "private" thetaphi-JDK without the XERCES and XALAN XML components.
It would also be correct according to the spec, but then 90% of all Java projects would no
longer work. The critical mass of Javascript requiring projects is just not as big to see
the impact in FreeBSD.
                
> need to document/fix/remove build.xml dependencies on javascript
> ----------------------------------------------------------------
>
>                 Key: LUCENE-4415
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4415
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Hoss Man
>            Assignee: Uwe Schindler
>            Priority: Trivial
>             Fix For: 4.0
>
>         Attachments: LUCENE-4415-option2.patch, LUCENE-4415-option2.patch
>
>
> Radim Kolar pointed out on the solr-user mailing list that he was unable to build Solr
on his FreeBSD machine due to the use of {{<script language="javascript"... />}} tags
in the ant build file, and the lack of javascript by default in his Java install.  There was
no clear indication that he should need anything else.
> It seems like prior to releasing 4.0, we should do one of the following:
> 1) find a way to remove the dependency on using javascript in the build.xml files (ie:
our own custom ant target written in java?)
> 2) use ivy to ensure we have the rhino jar in a classpath we pass to {{<script>}}
tag (it appears we already do something similar for pegdown)
> 3) update lucene/BUILD.txt and solr/README.txt to make it clear that the rhino js.jar
is a build requirement (and link to a wiki somewhere that provides tips on how to install
it in ant if your JVM doesn't include it)
> (Assigning to Uwe in hopes that he has some inspiration, i know he's familiar with this
scripting deficiency on FreeBSD)
> https://mail-archives.apache.org/mod_mbox/lucene-solr-user/201209.mbox/%3C505CF59E.4000600%40filez.com%3E

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message