• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

RAD 7 creating project with existing directories

 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
JavaRebel Support
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic