[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 10374
  • Last Modified:

How to remove target folder from synchronizing in eclipse svn ?

Hello,

How to remove target folder from synchronizing in eclipse svn  ?

The replies i came accross during my search for above
You can't svn:ignore a file that is already commited to repository.
So you must:
Delete it from the repository
Recreate it in Eclipse
Set svn:ignore on it via Team->Add to svn:ignore

Is there any other way to achive the above i have tries with ignored resource alos with exclusing the .class,*.class,target but no luck.

Suppose i delete the target folder then will there be any impact in the build of files if the target folder is deleted from svn?

Is is good approach to commit the target folder in svn?
0
Rocking
Asked:
Rocking
1 Solution
 
mccarlIT Business Systems Analyst / Software DeveloperCommented:
No, as far as I know, that is the only way. But there shouldn't be any impacts. Everything in your "target" folder should be able to be created again by the build process. So yeah, delete the target folder, commit that 'deletion' to the repository, make Eclipse rebuild the project, and THEN add "target" to the svn ignore property. (As you say, you should just be able to do the "Team -> Add to svn:ignore" option)  And you only need to add "target" to it, not all the *.class entries, since if target is NOT there then none of the class files can be there either.
0
 
RockingAuthor Commented:
thanks a lot i also did the same, the same approach i have applied already anyways thanks a lot.Just sharing the below info which i came to know through eclipse site abt target folder.


Versioning build output is a bad idea. I would suggest deleting the
folder from the SVN Repositories view. Do an update so that it is
deleted locally, then add the build folder to svn:ignore so that it
does not happen again. There is an FAQ related to the problems this
causes:
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now