3 Replies Latest reply on Sep 10, 2009 6:12 PM by null null

    want to port project from myeclipse to jboss tools...

    null null Novice

      We have a project and we don't really want to change the directory structure as it matches all of our other projects(jar projects included here). It is like so...

      project
      input
      javasrc - src code
      libinclude - jar files that go in WEB-INF/lib when bundling war
      libexclude - jar files needed for compile but don't go in war
      webroot - contains all the xhtml files
      WEB-INF - contains seam descriptors
      output - a bunch of generated directories

      We would like to setup jboss tools just like myeclipse where
      1. jboss tools does not generate any files in input/.... otherwise we have to deal with cvsignores and that is no fun.
      2. jboss tools can be setup so that all jars in libinclude go into WEB-INF/lib on deployment and all classes go to WEB-INF/classes

      Is there way to set this up or jboss tools still behind here with respect to myeclipse? I would love to make the move, but we have 20 projects(jars and wars) all with the above directory structure that people are familiar with.

      libinclude contains our seam and jsf implementation and hibernate and other stuff.
      libexclude contains the runtime jars that we don't need to deploy like things we may have added to a commonlib directory or servlet-api.jar.

      thanks for ANY bit of advice on this!!!!
      Dean

        • 1. Re: want to port project from myeclipse to jboss tools...
          null null Novice

          shoot, my tabs got ripped out..here is the dir structure again

          project
          ---input
          ------javasrc - src code
          ------libinclude - jar files that go in WEB-INF/lib when bundling war
          ------libexclude - jar files needed for compile but don't go in war
          ------webroot - contains all the xhtml files
          ---------WEB-INF - contains seam descriptors
          ---output - a bunch of generated directories
          


          • 2. Re: want to port project from myeclipse to jboss tools...
            Rob Stryker Master

            I'd have to see an example project to know for sure (i'm not too familiar with myeclipse), but I believe it probably depends mostly on the content of your project/.settings/ folder. Specifically there should be a file in there called org.eclipse.wst.component.xml (or similar).

            I'm also not sure I'd use the term "behind" myeclipse. Just because your structure was tailored to myeclipse doesn't mean we're behind, it just means you have to figure out the easiest path to smush your stuff into ours ;)

            Again, let me know about that xml file.

            • 3. Re: want to port project from myeclipse to jboss tools...
              null null Novice

              yes, "behind" can be relative. I am new to jboss tools, but then I was new to myeclipse when I set that up as well though it did take me an hour to setup as there was one trick that was tough. With jboss tools, I have been playing and playing with it with no luck.

              I have no .settings folder in my myeclipse project at all so there is not the file that you speak of. I even tried setting this up in WTP project but did not succeed there either. How does one setup the location of javasrc, the jars to include in web-inf, the jars to use to compile but exclude from web-inf and then finally the xhtml files and web-inf descriptors. Those are the 5 things that need to get put somewhere. It seems like all the IDE's should really just ask you for those 5 things and be done with it(with little question marks next to each one explaining it).

              anyways, is there a way to set up those 5 locations and have jboss deploy to tomcat/webapps (instead of copying into my source code directories).

              in fact, when I fooled around with setup, and then diffed against cvs, my project structure had all these added files and I had to blow everything away...very annoying when it does stuff in the source tree when using version control. I just wish there was a tutorial on setting up a project with a different dir structure than the example(I even saw someone post on the WTP project the other day asking the same question).

              Do you know of any docs or examples on setting up a different dir structure?
              thanks,
              Dean