Netbeans 6.9 / 7.0 Subversion Checkout Not Working?
When exporting a netbeans project from a开发者_如何学JAVAn svn repository. It downloads everything in the respository to the folder I've specified in the default
My Documents/NetBeansProjects
directory but it doesn't create the .svn folders for the project like it's supposed to. (It doesn't put the project under subversion control)
This has been drving me nuts because I can't seem to get any of my work under subversion control in Netbeans.
I'm running Windows 7 x64.
EDIT:
Here are the steps that I take to attempt to check-out a project from my servers repository so that I can work with it and keep it under version control in netbeans v6.9.
I go to:
Team->Subversion->Checkout...
In the Checkout dialog box that appears I enter my repository's URL and my credentials then click the next button.
Once it connects to the repository I select the checkbox "Export a clean directory tree from the repository"
In the Local Folder input I specify the path where I want my project to be. "C:\Users\Mark\Documents\NetBeansProjects\MyProjectExample"
Then I click the Finish button and get the result I stated previously. When I was running netbeans 6.8, I believe I followed the same steps without any issue and NO, I'm not going switch back to 6.8
I've just been getting the same problem, I think only on my Win 7 machine. (Too lazy to test on Vista right now.)
I deleted the target directory manually and tried checking out without specifying "clean directory tree", and this time the .svn files were downloaded.
Selecting 'Export a clean directory tree from the repository' when checking out the code from Subversion will check out the code without the .svn files and folders. Without those files and folders, your code will not be under source control. So try exporting but this time do not select the 'Export a clean directory tree from the repository' checkbox.
Exporting in SVN means 'the content', but not the SVN structure. It is not the same as checking-out. If you check-out your project, you will see the .svn files.
EDIT:
To be more complete:
- For a new project, you first need to create a check-out directory.
- Then you need to check-out the project manually (with Tortoise SVN for example -> right-click on the folder etc...).
- Then open your project in NetBeans.
精彩评论