It's not a secret anymore!*
The moose likes IDEs, Version Control and other tools and the fly likes Help creating replicated Netbeans project? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Help creating replicated Netbeans project?" Watch "Help creating replicated Netbeans project?" New topic
Author

Help creating replicated Netbeans project?

Joe Boman
Greenhorn

Joined: Dec 10, 2009
Posts: 20
I would like all of an existing Netbeans 7.3 ProjectA replicated over to a new Netbeans project named ProjectB. Nothing fancy -- new to NetBeans.

I created a fairly small Netbeans ProjectA that utilizes scriptlets, expressions as well as a couple Java classes across multiple packages even writes to a file. Since it is finally working, I would now like to create a new project, ProjectB using all of ProjectA's underlying resources and directories in a standalone new projectB. Being new to NetBeans I tried something as simple as File then Save As. I intended to enter the new projects name but Save As is "greyed out". I read some of the Netbeans instructions but I can't decide if Netbeans expects me to first create a ProjectB first then do some sort of an import.

Any help appreciated/Thank You

Martin Vajsar
Sheriff

Joined: Aug 22, 2010
Posts: 3611
    
  60

Find your ProjectA in the Projects pane, right-click and choose Copy.... Enter the new name. I tried it on a small project of mine, and it worked.
Joe Boman
Greenhorn

Joined: Dec 10, 2009
Posts: 20
Martin, Thanks so much! That worked for really well -- and simple too.
Have a great day
Joe
Martin Vajsar
Sheriff

Joined: Aug 22, 2010
Posts: 3611
    
  60

You're welcome!
Joe Boman
Greenhorn

Joined: Dec 10, 2009
Posts: 20
I did pick up the following reminder in red from NetBeans when I used the Copy command again tonight:
"Warning: This operation will not copy hidden files. If this project is under version control, the copy may not be versioned.

I don't know that I need to worry about it as I am just working with what appear to be pretty straightforward projects out of Murach's Java Servlets and JSP book. (projects are off actually off Murach's website)
Martin Vajsar
Sheriff

Joined: Aug 22, 2010
Posts: 3611
    
  60

I believe Netbeans doesn't normally create any hidden files. So unless you've created them yourself, or you're using a plug-in or other tool which would create them, you don't need to worry about hidden files. To make sure, just try to search for hidden files in your original project folder - if there aren't any, you're safe. (If there are hidden files, you need to find you why they are there; only then can you decide what to do about them in the new project.)

As far as version control goes: if you aren't using one, this doesn't apply to you. If you're using one, hopefully you know how to add a new project there. By the way, this is the right forum to ask questions about version control too!
Joe Boman
Greenhorn

Joined: Dec 10, 2009
Posts: 20
Thanks!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Help creating replicated Netbeans project?