wood burning stoves 2.0*
The moose likes IDEs, Version Control and other tools and the fly likes RAD 7  creating project with existing  directories 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 "RAD 7  creating project with existing  directories" Watch "RAD 7  creating project with existing  directories" New topic
Author

RAD 7 creating project with existing directories

Rajani Deshpande
Ranch Hand

Joined: May 08, 2000
Posts: 45
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


Rajani
Toomas Römer
JavaRebel Support
Greenhorn

Joined: Jul 07, 2008
Posts: 17
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 ]

JRebel reloads Java code on-the-fly
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30070
    
149

Rajani,
Why can't you pull in the projects from CVS directly to RAD? RAD = Eclipse + IBM plugins after all.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Rajani Deshpande
Ranch Hand

Joined: May 08, 2000
Posts: 45
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30070
    
149

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.
 
Consider Paul's rocket mass heater.
 
subject: RAD 7 creating project with existing directories
 
Similar Threads
Importing Eclipse project in to MyEclipse 6.6
automation project creation
How to config new java prj to an existing ear??
Sticky tag problem
Importing an Existing Web Application in MyEclipse