You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Erick Erickson (Jira)" <ji...@apache.org> on 2020/06/05 21:39:00 UTC

[jira] [Comment Edited] (SOLR-14532) Add iml file to gitignore

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

Erick Erickson edited comment on SOLR-14532 at 6/5/20, 9:38 PM:
----------------------------------------------------------------

Mystery solved. I added the following to my ~/.gitignore_global so long ago I didn't remember it.

.DS_Store
*.iml

I use "./gradlew idea" all the time... .but then let IntelliJ import the gradle build, I think because importing the ant project gave me grief at one point. IOW, for no good reason.

I don't see any reason _not_ to add this patch. I was tempted to say use 
{code}*.iml{code} rather than {code}/*.iml{code}, but since we have them as part of the "ant idea" task in dev-tools, that would be a mistake.

[~gerlowskija] do you want to check this in?


was (Author: erickerickson):
Mystery solved. I added the following to my ~/.gitignore_global so long ago I didn't remember it.

.DS_Store
*.iml

I use "./gradlew idea" all the time... .but then let IntelliJ import the gradle build, I think because importing the ant project gave me grief at one point. IOW, for no good reason.

I don't see any reason _not_ to add this patch. I was tempted to say use "*.iml" rather than "/*.iml", but since we have them as part of the "ant idea" task in dev-tools, that would be a mistake.

[~gerlowskija] do you want to check this in?

> Add iml file to gitignore
> -------------------------
>
>                 Key: SOLR-14532
>                 URL: https://issues.apache.org/jira/browse/SOLR-14532
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: Andras Salamon
>            Priority: Trivial
>         Attachments: SOLR-14532.patch
>
>
> If I execute {{gradlew idea}} in my {{lucene-solr-upstream}} directory, it will create three files in the root directory:
> {noformat}
> lucene-solr-upstream.iml
> lucene-solr-upstream.ipr
> lucene-solr-upstream.iws
> {noformat}
> Git will ignore the {{ipr}} and the {{iws}} file, but it lists the iml file as a new file. We should also ignore that one.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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