Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Converting an Eclipse Java project to a Google AppEngine one

I have a project with a large amount of pre-processing. I have written this part and would now like to convert the project to a GAE project. I have enabled the GAE support in Project->Properties and have some functionality but when I want to testrun the app I get a "Web application archive directory does not exist."

Is there a way to automatically generate the missing folders and files or do I have to do that manually?

I do not want to copy my classes into a newly created project since that would mean loosing all my version control.

like image 222
Leonard Ehrenfried Avatar asked Jul 29 '09 10:07

Leonard Ehrenfried


2 Answers

I think that with the GAE plugin for Eclipse, you can create a GAE app skeleton. You just have then to move your old project files into this project, and you're done.

For just conversion, I don't know if it's possible, if the structure of your app is completely different from the GAE structure.

As for the error you have, it seems that your app lacks a WEB-INF directory that any webapp needs to run.

like image 193
Valentin Rocher Avatar answered Oct 20 '22 09:10

Valentin Rocher


I am using GAE Eclipse Plugin 1.2.1 and Eclipse 3.4.2 and I have tried the same operation and have been unsuccessful so far. I believe the eclipse plugin is hardcoded to look for the various components at specific locations. (The right approach would have been to configure the GAE plugin to look for the all the WEB-APP components at other locations than the default.) I would think that given these versions, converting an eclipse project directly wouldn't be possible.

A possible solution, given this constraint, would be create a new GAE project and copy all your existing code into that structure without altering the folders already created by the GAE plugin.

like image 28
Shreeni Avatar answered Oct 20 '22 09:10

Shreeni