This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem copying project (eclipse)

 
panuque bla
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

you see, i have a GWT Java project in Eclipse that works with a database. The project is divided into 3sub- (server, client and gwt code compiled). All ok. Now, i had to create the same project but to work with another database (of course same structure). I copy the 3sub projects and i create a new project. Then, i go to database.properties file, which is where I have the route database, and i change the route.

And here comes the problem. When i run the new project, i dont know why, but access to old file database.properties, which I am accessing the old database.

What is the problem? I copied the wrong project? can be references for each subproject? as I watch that?

Thanks
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
panuque, welcome to Java Ranch!

It seems that you did not change all of the database configuration files. Of course without seeing exactly what you did, and how you access the database, it is hard to tell. Any source and details you can provide would be helpful.

I have never had any issues with creating new projects by copying existing project. All I have had to do is modify the project name in the .project file before importing the new project. Of course, if any code of configuration options in your source code depend on hard-coded file locations, your new code could be accessing files in the old location. Temporarily removing the old projects might help in debugging this issue.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic