File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes IDEs, Version Control and other tools and the fly likes Problem copying project (eclipse) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Problem copying project (eclipse)" Watch "Problem copying project (eclipse)" New topic
Author

Problem copying project (eclipse)

panuque bla
Greenhorn

Joined: Aug 01, 2011
Posts: 5
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

Joined: May 14, 2008
Posts: 5812
    
    7

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.


JBoss In Action
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Problem copying project (eclipse)
 
Similar Threads
How to get the path of property file.
gwt junit in dynamic web project
Gwt
gwt and jpa in an eclipse project
Could not find the main class:com.google.gwt.user.tools.WebAppCreator. Program will exit.