[
https://issues.apache.org/jira/browse/SOLR-1173?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12722175#action_12722175
]
Erik Hatcher commented on SOLR-1173:
------------------------------------
Jacob - your use case makes sense for sure, though we don't have such a contrib
in Solr's codebase currently and if we did we'd just hardcode wire it into
solr.war just like we do the dataimport JSP pages currently. It's not the
cleanest most componentized way, to be sure.
But at least now you simply can maintain your own plugin and your own web.xml
and Solr's build allows you to incorporate it.
> Let contrib projects modify web.xml when running dist-war
> ---------------------------------------------------------
>
> Key: SOLR-1173
> URL: https://issues.apache.org/jira/browse/SOLR-1173
> Project: Solr
> Issue Type: New Feature
> Reporter: Jacob Singh
> Fix For: 1.5
>
> Attachments: xmltask_contrib_build.diff, xmltask_contrib_build.diff
>
>
> Original problem:
> I just wrote a Servlet Filter to handle authentication for our
> service. Here's what I did:
> 1. Created a dir in contrib
> 2. Put my project in there, I took the dataimporthandler build.xml as
> an example and modified it to suit my needs. Worked great!
> 3. ant dist now builds my jar and includes it
> I now need to modify web.xml to add my filter-mapping, init params,
> etc. How can I do this cleanly? Or do I need to manually open up the
> archive and edit it and then re-war it?
> In common-build I don't see a target for dist-war, so don't see how it
> is possible...
> See:
> http://mail-archives.apache.org/mod_mbox/lucene-solr-user/200905.mbox/%[email protected]%3e
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.