You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Mark Miller (JIRA)" <ji...@apache.org> on 2011/06/11 15:42:58 UTC

[jira] [Commented] (SOLR-2586) example work & logs directories needed?

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

Mark Miller commented on SOLR-2586:
-----------------------------------

bq. Since this "example" setup isn't a real installation

Practically, I think this is actually how things turn out. You often take the example as it's given and tweak it.

I also have very often found that it's very useful having the war right there where I know it is, rather than having to hunt in a deeply nested tmp dir.

Goal is nice though - I work from Apache's Git mirror myself sometimes.

> example work & logs directories needed?
> ---------------------------------------
>
>                 Key: SOLR-2586
>                 URL: https://issues.apache.org/jira/browse/SOLR-2586
>             Project: Solr
>          Issue Type: Improvement
>          Components: Build
>            Reporter: David Smiley
>            Priority: Minor
>
> Firstly, what prompted this issue was me wanting to use a git solr mirror but finding that git's lack of empty-directory support made the "example" ant task fail. This task requires examples/work to be in place so that it can delete its contents. Fixing this was a simple matter of adding:
> {code:xml}
> <mkdir dir="${example}/work" /><!-- in case not there -->
> {code}
> Right before the delete task.
> But then it occurred to me, why even have a "work" directory since Jetty will apparently use a temp directory instead. -- try for yourself (stdout snippet):
> bq. 2011-06-11 00:51:26.177:INFO::Extract file:/SmileyDev/Search/lucene-solr/solr/example/webapps/solr.war to /var/folders/zo/zoQJvqc9E0076p0THiri+k+++TI/-Tmp-/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp
> On my Mac, this same directory was used for multiple runs, so somehow Jetty or the VM figures out how to reuse it.
> Since this "example" setup isn't a *real* installation -- it's just for demonstration, arguably it should not contain what it doesn't need.  Likewise, perhaps the empty example/logs directory should be deleted. It's not used by default any way.

--
This message is automatically generated by JIRA.
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