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

James Dyer commented on SOLR-14647:
-----------------------------------

I am an eclipse user, not an expert but my belief is that every eclipse project 
will have a .project file and .settings directory in its root.  Additionally, 
java projects will have a .classpath file in its root.  These should be in 
.gitignore .

As for bin, this is controlled by a line in .classpath.  When I imported the 
gradle project back in July using the standard "import > gradle existing 
project" option in eclipse, by default we had this line in .classpath:

{code:xml}
<classpathentry kind="output" path="bin/default"/>
{code}

However, a maven project will have this:

{code:xml}
<classpathentry kind="output" path="target/classes"/>
{code}

I would hope this is somehow configurable, should we not want to have such a 
common directory name to .gitignore.  Additionally, the workaround for the 
circular reference problem probably fixes this also but (I think) eclipse users 
will need to be instructed to import and sync the project in a non-standard 
way.  If I understand the nature of the work there correctly, we are 
constructing the eclipse files by hand like the old "ant eclipse" did, 
bypassing the usual import mechanisms, right?  (As an aside, I worked around 
the circular reference problem simply by reducing the severity of that 
particular message from "error" to "warning".  I could be wrong, but I think 
that message is more an annoyance and does not affect functionality)

> Importing Gradle Projects into Eclipse pollutes checkout
> --------------------------------------------------------
>
>                 Key: SOLR-14647
>                 URL: https://issues.apache.org/jira/browse/SOLR-14647
>             Project: Solr
>          Issue Type: Bug
>          Components: Build
>    Affects Versions: master (9.0)
>            Reporter: James Dyer
>            Assignee: James Dyer
>            Priority: Minor
>             Fix For: master (9.0)
>
>         Attachments: SOLR-14647.patch
>
>
> Switch to master branch, then open Eclipse IDE and select "file > import > 
> existing gradle project" to import lucene/solr.  Afterwards, "git status" 
> shows unstaged ".project", ".classpath", ".settings" and "bin" 
> files/directories.
> Adjust the .gitignore file to correctly filter these out.



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

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

Reply via email to