Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help creating replicated Netbeans project?

 
Joe Boman
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3752
62
Chrome Netbeans IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Martin, Thanks so much! That worked for really well -- and simple too.
Have a great day
Joe
 
Martin Vajsar
Sheriff
Posts: 3752
62
Chrome Netbeans IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're welcome!
 
Joe Boman
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3752
62
Chrome Netbeans IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic