History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEA-17737
Type: New Feature New Feature
Status: Open Open
Assignee: Anton Makeev
Reporter: Geoffrey De Smet
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
IDEA: Feedback

Maven 2 pom.xml syncronization should allow to keep (some?) excluded directory's (for example /src/test/resource/huge-xml-files/)

Created: 12 Apr 08 11:48   Updated: 21 Apr 08 11:47
Component/s: Maven Integration

Issue Links:
Duplicate
 
This issue is duplicated by:
IDEA-15283 Excluded folders settings lost after ... Resolved

Build: 7,757


 Description  « Hide
I like the whole automatic syncing thing, but my project has a directory /data/xml/ with huge xml files (several megs per file and at least 20 of those files). That directory needs to be excluded, because it takes to long for IntelliJ to sync that directory and it also makes a refactor rename hang (if search for text occurances).

However , as far as I know, there's no way to tell a pom.xml file that the ide should exclude directory's. So every time it IntelliJ syncs with the pom.xml file, it looses those excludes and a refactor rename takes ages again.
Those xml files don't belong in /target because they need to be under source control (svn). They could very well be under /src/test/resources too (but not all test/resources should be excluded for refactor renames).



 All   Comments   Work Log   Change History      Sort Order:
Anton Makeev - 14 Apr 08 15:37
If you exclude them, they won't get into the resulting jar, nor will be available in code compleation and resolution.
Are you sure exclusion will help here?

Geoffrey De Smet - 14 Apr 08 19:55
The files in /data/xml aren't included in any jar (not by maven, not by intellij).
Note that they aren't excluded in Maven, that's not possible because they aren't resources or java sources.
They are GUI testdata, not used by unit tests.

Take a look at the /data/xml directory here:
http://anonsvn.labs.jboss.com/labs/jbossrules/trunk/drools-solver/drools-solver-examples/
As you can see it contains huge xml files and IntelliJ hangs on syncing or rename-refactoring them,
while IntelliJ should just ignore them for syncing or rename-refactoring.
Now IntelliJ can do that, by exluding the /data/xml directory in IntelliJ - but on a IntelliJ-to-maven sync it's reset again and it hangs again.

Or try it out yourself, here's the svn command:
svn checkout http://anonsvn.labs.jboss.com/labs/jbossrules/trunk/ drools
Use the profile "solver".