Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RAD 7 creating project with existing directories

 
Rajani Deshpande
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
just installed RAD. I have a project set up in Eclipse.( which has different directory structure and is also linked to a cvs repository.

How do I keep the existing directory structure and create an ear in RAD?
Right now I have moved the src files so that RAD can create an ear file and deploy.

But When its time to check in , I have to again move the files to the directories in CVS and then check in .

Any Idea?

Thanks
 
Toomas Römer
JavaRebel Support
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe symbolic links will help you set up another directory structure? You can link folders to different locations and names under Windows and Linux. See the Symbolic link Wikipedia article.

Or you could have a ANT build file which will package your current structure into another one in a EAR file. Could not find a link to it but the general idea is that you can do:


[ August 13, 2008: Message edited by: Toomas R�mer ]
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34422
347
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rajani,
Why can't you pull in the projects from CVS directly to RAD? RAD = Eclipse + IBM plugins after all.
 
Rajani Deshpande
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, Thats what I did, but our CVS project structure is not similar to RAD.
for eg --We have all the jsps and css in a folder called view/jsp and view/css view/js etc

also we have some config files and tlds in src/conf dir.

When I build it , the view files should be copied to the WebContent folder in RAD and the config files to the webcontent/web-inf folder.

the java src and properties are getting cmpiled and copied in webcontent/web-inf/classes correctly.

I tried checking the allow output folders and tried add the view and conf folders to src and setting the output folders for them. but that didnt work out ..
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34422
347
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rajani,
Now I understand. RAD is unforgiving about changing that particular detail. If you aren't editing the project, you can jar it up and have you EAR refer to it as a .war file. If you are editing the project in RAD (as is more likely), you do need to change the directory structure.

If you are planning on using RAD from now on, I recommend just changing the structure and committing to CVS.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic