FeaturesPluginsDocs & SupportCommunityPartners

NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Question re: creating New projects

 
Post new topic   Reply to topic    NetBeans Forums -> PHP Users
View previous topic :: View next topic  
Author Message
camper



Joined: 02 Jun 2009
Posts: 3

PostPosted: Thu Jun 18, 2009 12:07 am    Post subject: Question re: creating New projects Reply with quote

I'm new to using Netbeans. Right now I'm using it to create projects for my class, but am not sure about one item. I want to create a new project using an old project, but not touching anything in the original project. For example, I have files under folder "Ass1" which contains everything related to the first assignment. Now I need to do the second assignment, which is based on the first, but I don't want to touch anything in the "Ass1" folder.

When I try to use New Project "PHP Application with Existing Sources" and try to create Ass2, it ends up either working in Ass1 or making changes in both folders.

Do I need to copy the folder first, making a new Ass2 folder for the second assignment? It's seems the existing sources step is to bring in a project that you may have created outside (or someone else did for you) that you now want to add to Netbeans to work on.

This will help me beyond this one class. Thanks.
Embarassed
Back to top
View user's profile Send private message
Tomas Mysik
Posted via mailing list.





PostPosted: Thu Jun 18, 2009 10:52 am    Post subject: Question re: creating New projects Reply with quote

Hi,

Dne čtvrtek 18 června 2009 02:07:51 camper napsal(a):
Quote:
I'm new to using Netbeans. Right now I'm using it to create projects for
my class, but am not sure about one item. I want to create a new project
using an old project, but not touching anything in the original project.
For example, I have files under folder "Ass1" which contains everything
related to the first assignment. Now I need to do the second assignment,
which is based on the first, but I don't want to touch anything in the
"Ass1" folder.

When I try to use New Project "PHP Application with Existing Sources" and
try to create Ass2, it ends up either working in Ass1 or making changes in
both folders.

Do I need to copy the folder first, making a new Ass2 folder for the second
assignment? It's seems the existing sources step is to bring in a project
that you may have created outside (or someone else did for you) that you
now want to add to Netbeans to work on.

sorry, but I don't understand what you want to achieve. Could you please try
to describe the current state of your projects (I mean their locations on hard
drive) and what should be the final state in NetBeans? Or provide exact steps
you did and which one was "broken" for you.

Thanks,
Tomas
--
Tomas Mysik
address-removed
Back to top
jpdrawneek
Posted via mailing list.





PostPosted: Thu Jun 18, 2009 7:18 pm    Post subject: Question re: creating New projects Reply with quote

Rough guessitmate

Create a new project for Ass2.

Add Ass1 to the include path of the new project.

This will give you all Ass1 classes, but not change or edit anything in Ass1

Or I could be completely wrong....

Tomas Mysik wrote:
Quote:
Hi,

Dne čtvrtek 18 června 2009 02:07:51 camper napsal(a):

Quote:
I'm new to using Netbeans. Right now I'm using it to create projects for
my class, but am not sure about one item. I want to create a new project
using an old project, but not touching anything in the original project.
For example, I have files under folder "Ass1" which contains everything
related to the first assignment. Now I need to do the second assignment,
which is based on the first, but I don't want to touch anything in the
"Ass1" folder.

When I try to use New Project "PHP Application with Existing Sources" and
try to create Ass2, it ends up either working in Ass1 or making changes in
both folders.

Do I need to copy the folder first, making a new Ass2 folder for the second
assignment? It's seems the existing sources step is to bring in a project
that you may have created outside (or someone else did for you) that you
now want to add to Netbeans to work on.


sorry, but I don't understand what you want to achieve. Could you please try
to describe the current state of your projects (I mean their locations on hard
drive) and what should be the final state in NetBeans? Or provide exact steps
you did and which one was "broken" for you.

Thanks,
Tomas

Back to top
camper



Joined: 02 Jun 2009
Posts: 3

PostPosted: Fri Jun 19, 2009 2:54 am    Post subject: Re: Question re: creating New projects Reply with quote

Tomas Mysik wrote:
Hi,

Dne čtvrtek 18 června 2009 02:07:51 camper napsal(a):
k on.
sorry, but I don't understand what you want to achieve. Could you please try
to describe the current state of your projects (I mean their locations on hard
drive) and what should be the final state in NetBeans? Or provide exact steps
you did and which one was "broken" for you.

Thanks,
Tomas
--
Tomas Mysik
address-removed


Okay,

Start new project (CS529Ass2) in Netbeans, PHP, PHP Application with Existing Sources
After pressing next (of course), fill in
Sources Folder: fill in C:\Documents and Settings\Camper\My Documents\NetBeansProjects\CS529Ass1
Project Name: CS529Ass2 - to create new project
Default Encoding: left at UTF-8
Clicked the "Put Netbeans metadata into a separate directory and changed it to CS529Ass2

Pressed next and told it to
Run As: Local Web site
Project URL: Changed to http://localhost/CS529Ass2/
Index file: selected the login.php (that's the first page of the assignment based on project specs)
Clicked "Copy files from Sources Folder to another location" and set it to c:\wamp\www\CS529Ass2 and pressed finish.

After I created a new file for Ass2, I took a look at Ass1 and the new file was also in there, not where I wanted it. I wanted all changes to occur only to Ass2.
Doing it this way, the project shows the present files (but they were not copied to the CS529) and creating a new file puts it into the CS529Ass1, but does not place it in the CS529Ass2 in the Netbeans directory, but it does create the new file in the CS529Ass2 under the c:\wamp\www\CS529Ass2 folder.

What I need it to do is create the CS529Ass2 folder in the C:\Documents and Settings\Camper\My Documents\NetBeansProjects\ folder and copy all files over into it, and also create the CS529Ass2 in the c:\wamp\www\ folder, copying all files over. Then when I create a new file in the CS529Ass2 folder (netbeans one) that it creates it in only CS529Ass2 in both places and not place the few file in CS529Ass1 in either place.

Camper
Back to top
View user's profile Send private message
Tomas Mysik
Posted via mailing list.





PostPosted: Mon Jun 22, 2009 11:47 am    Post subject: Question re: creating New projects Reply with quote

Hi,

Dne pátek 19 června 2009 04:54:49 camper napsal(a):
Quote:
What I need it to do is create the CS529Ass2 folder in the C:\Documents and
Settings\Camper\My Documents\NetBeansProjects\ folder and copy all files
over into it, and also create the CS529Ass2 in the c:\wamp\www\ folder,
copying all files over. Then when I create a new file in the CS529Ass2
folder (netbeans one) that it creates it in only CS529Ass2 in both places
and not place the few file in CS529Ass1 in either place.

unfortunately, still not clear to me what you want to achieve, sorry - let me
summarize what is what in NetBeans:

- PHP project - _exactly_ one PHP project and not more (if one wants to have a
PHP library, he/she will just create another PHP project and "connect" those
two using PHP Include Path category in Project Properties dialog)
- Source folder - folder with PHP/HTML/JS/CSS/... files
- Metadata folder - just _internal_ (!) folder of NetBeans (project properties
like project URL are stored there), no custom data
- copying sources - this is suitable when one wants to have e.g. all the PHP
projects somehow organized under his/her home directory; but to access such a
project via a web server, sources must be copied under a web server's document
root; this can be done in Project Properties dialog, Sources category

Not sure whether I answered your question or not - I hope I did.

HTH,
Tomas
--
Tomas Mysik
address-removed
Back to top
camper



Joined: 02 Jun 2009
Posts: 3

PostPosted: Mon Jun 22, 2009 4:56 pm    Post subject: Reply with quote

Okay, I think that I'm understanding what you are saying. If I'm going to do a new project, but using code/files from any other project, either I have to "include it" (if nothing in a particular file is changing) or just copy the files over manually so that the new project is a complete project since I will be working on projects that may be similar but will have some changing in codes and adjustments for what the project is for.

My Ass1 files were being changed in Ass2, but I didn't want to touch anything in Ass1 folder when working on Ass2. In Windows Explorer I copied the Ass1 folder and renamed it Ass2 and then opened the folder as a new project. I'll continue to do that for the future.

Camper Very Happy
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> PHP Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB