You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by Jukka Uusisalo <ju...@dnainternet.net> on 2004/04/23 22:34:24 UTC

Eclipse issue

Hi,

Does somebody have suggestions or good practices how create eclipse projects
against geronimo directory structure from cvs?

I made one eclipse project like geronimo-module = eclipse-module, but it
feels
little bit hard to find needed parts to get compiled etc. Also one big
project with several
source root does not make me happy.

Any ideas, propably some has done this before?

- Jukka -




Re: Eclipse issue

Posted by Jukka Uusisalo <ju...@dnainternet.net>.
----- Original Message ----- 
From: "David Blevins" <da...@visi.com>
To: <ge...@incubator.apache.org>
Sent: Saturday, April 24, 2004 12:07 AM
Subject: Re: Eclipse issue


> On Fri, Apr 23, 2004 at 11:34:24PM +0300, Jukka Uusisalo wrote:
> > Hi,
> >
> > Does somebody have suggestions or good practices how create eclipse
projects
> > against geronimo directory structure from cvs?
> >
> > I made one eclipse project like geronimo-module = eclipse-module, but it
> > feels
> > little bit hard to find needed parts to get compiled etc. Also one big
> > project with several
> > source root does not make me happy.
> >
> > Any ideas, propably some has done this before?
>
>
> I do this bash loop in the incubator-geronimo dir after a cvs checkout.
>
>     for module in "$(find ./*/ -name project.xml | sed
's/project.xml//')"; do
>         echo $module
>         pushd $PWD &> /dev/null;
>         cd $module
>         maven eclipse > /dev/null
>         popd &> /dev/null
>     done;
>
> Then you just have to refresh or import the eclipse projects.
>

Thanks, maybe that maven eclipse plugin is just what I need. I'll check that
one.

- Jukka -


Re: Eclipse issue

Posted by David Blevins <da...@visi.com>.
On Fri, Apr 23, 2004 at 11:34:24PM +0300, Jukka Uusisalo wrote:
> Hi,
> 
> Does somebody have suggestions or good practices how create eclipse projects
> against geronimo directory structure from cvs?
> 
> I made one eclipse project like geronimo-module = eclipse-module, but it
> feels
> little bit hard to find needed parts to get compiled etc. Also one big
> project with several
> source root does not make me happy.
> 
> Any ideas, propably some has done this before?


I do this bash loop in the incubator-geronimo dir after a cvs checkout.

    for module in "$(find ./*/ -name project.xml | sed 's/project.xml//')"; do
        echo $module
        pushd $PWD &> /dev/null; 
        cd $module
        maven eclipse > /dev/null
        popd &> /dev/null
    done;

Then you just have to refresh or import the eclipse projects.

-David

Re: Eclipse issue

Posted by A Carbone <ac...@hotmail.com>.
ok thank you for the info... I thought that had a Unix based flavor... hmmm
cygwin :-\ I have had problems every time I have ever tried to use it so I
think I will just try to figure something out. maybe I will resort to that
if I must. I know alot of people use it very successfully but have been
trying to steer clear not that I'm a huge fan of windows either! oh what to
do... ha ha ha thanks for the help though... I never thought I would say
this maybe I will try to get a Mac laptop with OSX on it I have seen good
things from it, would be nice if someone would port that to x86
architecture! ha ha ha

A. Carbone
----- Original Message ----- 
From: "David Blevins" <da...@visi.com>
To: <ge...@incubator.apache.org>
Sent: Monday, April 26, 2004 2:12 PM
Subject: Re: Eclipse issue


> On Mon, Apr 26, 2004 at 01:57:41PM -0400, A Carbone wrote:
> > That loop is a Linux or Unix only thing correct? it looks like it is
using
> > command scripting or something not familiar to me, could just be my
> > ignorance sorry for the dumb question! is there a way to do the same in
dos?
> > would I have to write a batch file to do it?
> >
>
> Right, a bash thing specifically.  Should work out-of-the-box on
> Linux, Mac OS X, and most Unix flavors.  It can work on windows too,
> of you grab Cygwin (http://www.cygwin.com), a windows implementation
> of POSIX created by Cygnus software then bought by Red Hat.
>
> I use Cygwin on every windows machine I touch--it's a live-saver.
>
> You could do something similar in a plain command prompt with a loop
> but it would be hard to replicate the find command.  You'd have to
> create a list of the 37 modules to loop over by hand.
>
> -David
>
>
> > ----- Original Message ----- 
> > From: "David Blevins" <da...@visi.com>
> > To: <ge...@incubator.apache.org>
> > Sent: Monday, April 26, 2004 12:24 PM
> > Subject: Re: Eclipse issue
> >
> >
> > > Just as a note to everyone, maven *will* create your .project files
> > > and .classpath files including all dependencies to other jars.  You
> > > just need to type 'maven eclipse' in the directories where the
> > > project.xml files are located.  If you type 'maven eclipse' at the top
> > > directory (incubator-geronimo), your not going to get anything useful
> > > as that project.xml file doesn't contain any dependency information or
> > > even information about where the source is.
> > >
> > > The project.xml files for good 'maven eclipse' usage are:
> > >     - applications/jmxdebug/project.xml
> > >     - modules/assembly/project.xml
> > >     - modules/clustering/project.xml
> > >     - modules/common/project.xml
> > >     - modules/connector/project.xml
> > >     - modules/console-web/project.xml
> > >     - modules/core/project.xml
> > >     - modules/deployment/project.xml
> > >     - modules/j2ee/project.xml
> > >     - modules/jetty/project.xml
> > >     - modules/kernel/project.xml
> > >     - modules/maven-plugin/project.xml
> > >     - modules/maven-xmlbeans-plugin/project.xml
> > >     - modules/naming/project.xml
> > >     - modules/network/project.xml
> > >     - modules/remoting/project.xml
> > >     - modules/security/project.xml
> > >     - modules/system/project.xml
> > >     - modules/transaction/project.xml
> > >     - sandbox/activation/project.xml
> > >     - sandbox/explorer/project.xml
> > >     - sandbox/javamail/project.xml
> > >     - sandbox/mail/project.xml
> > >     - sandbox/twiddle/project.xml
> > >     - sandbox/webdav/project.xml
> > >     - sandbox/xbeans/project.xml
> > >     - specs/ejb/project.xml
> > >     - specs/j2ee/project.xml
> > >     - specs/j2ee-connector/project.xml
> > >     - specs/j2ee-deployment/project.xml
> > >     - specs/j2ee-jacc/project.xml
> > >     - specs/j2ee-management/project.xml
> > >     - specs/jms/project.xml
> > >     - specs/jsp/project.xml
> > >     - specs/jta/project.xml
> > >     - specs/schema/project.xml
> > >     - specs/servlet/project.xml
> > >
> > > Now, there are 37 different places where you would need to run 'maven
> > > eclipse' and that is a redundant task that could easily be done with a
> > > little Bash loop like this:
> > >
> > >     for module in "$(find ./*/ -name project.xml | sed
> > 's/project.xml//')"; do
> > >         echo $module
> > >         pushd $PWD &> /dev/null;
> > >         cd $module
> > >         maven eclipse > /dev/null
> > >         popd &> /dev/null
> > >     done;
> > >
> > > Then you can import the eclipse projects into eclipse just fine.  You
> > > only need to import the ones you are interested in as the .classpath
> > > of each will already the jars of the related projects in its
> > > classpath.
> > >
> > > -David
> > >
> > >
> > >
> > > On Mon, Apr 26, 2004 at 12:31:55PM -0300, Emerson Cargnin wrote:
> > > > I've been out of this list for a while, and before I got out I
promess
> > to
> > > > send a patch with a working version of .project and .classpath and a
> > how-to
> > > > to allow debugging inside eclipse.
> > > >
> > > > I was requested to create an article for a Java brazillian magazine
> > about
> > > > geronimo. So I'll update my eclipse configuration to match the
current
> > state
> > > > of it.
> > > >
> > > > Emerson
> > > > ----- Original Message ----- 
> > > > From: "Patrick Mueller" <pm...@yahoo.com>
> > > > To: <ge...@incubator.apache.org>
> > > > Sent: Monday, April 26, 2004 12:03 PM
> > > > Subject: Re: Eclipse issue
> > > >
> > > >
> > > > | On Apr 23, 2004, at 4:34 PM, Jukka Uusisalo wrote:
> > > > | > Does somebody have suggestions or good practices how create
eclipse
> > > > | > projects
> > > > | > against geronimo directory structure from cvs?
> > > > | >
> > > > | > I made one eclipse project like geronimo-module =
eclipse-module,
> > but
> > > > | > it
> > > > | > feels
> > > > | > little bit hard to find needed parts to get compiled etc. Also
one
> > big
> > > > | > project with several
> > > > | > source root does not make me happy.
> > > > |
> > > > | I previously posted a Python script I use to build a .project and
> > > > | .classpath file for Eclipse, but I've tweaked it a bit since then
so
> > am
> > > > | re-posting.  It goes the 'one big project' route.  I first run
maven
> > > > | from the command-line, then run the script.  The end goal for now
is
> > to
> > > > | get an Eclipse project which has all the dependencies set up, so
that
> > > > | you can do interesting introspection things like find references,
etc.
> > > > |
> > > > | One day I should Jelly-ize this ...
> > > > |
> > > > |
> > > > |
> > > >
> > > >
> > >
> >
> --------------------------------------------------------------------------
> > --
> > > > ----
> > > >
> > > >
> > > > |
> > > > |
> > > > | Patrick Mueller
> > > > | pmuellr@yahoo.com
> > > > |
> > > >
> > > >
> > > > ---
> > > > Outgoing mail is certified Virus Free.
> > > > Checked by AVG anti-virus system (http://www.grisoft.com).
> > > > Version: 6.0.668 / Virus Database: 430 - Release Date: 24/4/2004
> > >
>

Re: Eclipse issue

Posted by David Blevins <da...@visi.com>.
On Mon, Apr 26, 2004 at 01:57:41PM -0400, A Carbone wrote:
> That loop is a Linux or Unix only thing correct? it looks like it is using
> command scripting or something not familiar to me, could just be my
> ignorance sorry for the dumb question! is there a way to do the same in dos?
> would I have to write a batch file to do it?
> 

Right, a bash thing specifically.  Should work out-of-the-box on
Linux, Mac OS X, and most Unix flavors.  It can work on windows too,
of you grab Cygwin (http://www.cygwin.com), a windows implementation
of POSIX created by Cygnus software then bought by Red Hat.

I use Cygwin on every windows machine I touch--it's a live-saver.

You could do something similar in a plain command prompt with a loop
but it would be hard to replicate the find command.  You'd have to
create a list of the 37 modules to loop over by hand.

-David


> ----- Original Message ----- 
> From: "David Blevins" <da...@visi.com>
> To: <ge...@incubator.apache.org>
> Sent: Monday, April 26, 2004 12:24 PM
> Subject: Re: Eclipse issue
> 
> 
> > Just as a note to everyone, maven *will* create your .project files
> > and .classpath files including all dependencies to other jars.  You
> > just need to type 'maven eclipse' in the directories where the
> > project.xml files are located.  If you type 'maven eclipse' at the top
> > directory (incubator-geronimo), your not going to get anything useful
> > as that project.xml file doesn't contain any dependency information or
> > even information about where the source is.
> >
> > The project.xml files for good 'maven eclipse' usage are:
> >     - applications/jmxdebug/project.xml
> >     - modules/assembly/project.xml
> >     - modules/clustering/project.xml
> >     - modules/common/project.xml
> >     - modules/connector/project.xml
> >     - modules/console-web/project.xml
> >     - modules/core/project.xml
> >     - modules/deployment/project.xml
> >     - modules/j2ee/project.xml
> >     - modules/jetty/project.xml
> >     - modules/kernel/project.xml
> >     - modules/maven-plugin/project.xml
> >     - modules/maven-xmlbeans-plugin/project.xml
> >     - modules/naming/project.xml
> >     - modules/network/project.xml
> >     - modules/remoting/project.xml
> >     - modules/security/project.xml
> >     - modules/system/project.xml
> >     - modules/transaction/project.xml
> >     - sandbox/activation/project.xml
> >     - sandbox/explorer/project.xml
> >     - sandbox/javamail/project.xml
> >     - sandbox/mail/project.xml
> >     - sandbox/twiddle/project.xml
> >     - sandbox/webdav/project.xml
> >     - sandbox/xbeans/project.xml
> >     - specs/ejb/project.xml
> >     - specs/j2ee/project.xml
> >     - specs/j2ee-connector/project.xml
> >     - specs/j2ee-deployment/project.xml
> >     - specs/j2ee-jacc/project.xml
> >     - specs/j2ee-management/project.xml
> >     - specs/jms/project.xml
> >     - specs/jsp/project.xml
> >     - specs/jta/project.xml
> >     - specs/schema/project.xml
> >     - specs/servlet/project.xml
> >
> > Now, there are 37 different places where you would need to run 'maven
> > eclipse' and that is a redundant task that could easily be done with a
> > little Bash loop like this:
> >
> >     for module in "$(find ./*/ -name project.xml | sed
> 's/project.xml//')"; do
> >         echo $module
> >         pushd $PWD &> /dev/null;
> >         cd $module
> >         maven eclipse > /dev/null
> >         popd &> /dev/null
> >     done;
> >
> > Then you can import the eclipse projects into eclipse just fine.  You
> > only need to import the ones you are interested in as the .classpath
> > of each will already the jars of the related projects in its
> > classpath.
> >
> > -David
> >
> >
> >
> > On Mon, Apr 26, 2004 at 12:31:55PM -0300, Emerson Cargnin wrote:
> > > I've been out of this list for a while, and before I got out I promess
> to
> > > send a patch with a working version of .project and .classpath and a
> how-to
> > > to allow debugging inside eclipse.
> > >
> > > I was requested to create an article for a Java brazillian magazine
> about
> > > geronimo. So I'll update my eclipse configuration to match the current
> state
> > > of it.
> > >
> > > Emerson
> > > ----- Original Message ----- 
> > > From: "Patrick Mueller" <pm...@yahoo.com>
> > > To: <ge...@incubator.apache.org>
> > > Sent: Monday, April 26, 2004 12:03 PM
> > > Subject: Re: Eclipse issue
> > >
> > >
> > > | On Apr 23, 2004, at 4:34 PM, Jukka Uusisalo wrote:
> > > | > Does somebody have suggestions or good practices how create eclipse
> > > | > projects
> > > | > against geronimo directory structure from cvs?
> > > | >
> > > | > I made one eclipse project like geronimo-module = eclipse-module,
> but
> > > | > it
> > > | > feels
> > > | > little bit hard to find needed parts to get compiled etc. Also one
> big
> > > | > project with several
> > > | > source root does not make me happy.
> > > |
> > > | I previously posted a Python script I use to build a .project and
> > > | .classpath file for Eclipse, but I've tweaked it a bit since then so
> am
> > > | re-posting.  It goes the 'one big project' route.  I first run maven
> > > | from the command-line, then run the script.  The end goal for now is
> to
> > > | get an Eclipse project which has all the dependencies set up, so that
> > > | you can do interesting introspection things like find references, etc.
> > > |
> > > | One day I should Jelly-ize this ...
> > > |
> > > |
> > > |
> > >
> > >
> >
> > --------------------------------------------------------------------------
> --
> > > ----
> > >
> > >
> > > |
> > > |
> > > | Patrick Mueller
> > > | pmuellr@yahoo.com
> > > |
> > >
> > >
> > > ---
> > > Outgoing mail is certified Virus Free.
> > > Checked by AVG anti-virus system (http://www.grisoft.com).
> > > Version: 6.0.668 / Virus Database: 430 - Release Date: 24/4/2004
> >

Re: Eclipse issue

Posted by Eliot Stock <ba...@czss.com>.
It's a bash script. Cygwin (http://cygwin.com/) will give you bash on 
Windows.

Eliot Stock.

A Carbone wrote:

>That loop is a Linux or Unix only thing correct? it looks like it is using
>command scripting or something not familiar to me, could just be my
>ignorance sorry for the dumb question! is there a way to do the same in dos?
>would I have to write a batch file to do it?
>
>A Carbone
>
>----- Original Message ----- 
>From: "David Blevins" <da...@visi.com>
>To: <ge...@incubator.apache.org>
>Sent: Monday, April 26, 2004 12:24 PM
>Subject: Re: Eclipse issue
>
>
>  
>
>>Just as a note to everyone, maven *will* create your .project files
>>and .classpath files including all dependencies to other jars.  You
>>just need to type 'maven eclipse' in the directories where the
>>project.xml files are located.  If you type 'maven eclipse' at the top
>>directory (incubator-geronimo), your not going to get anything useful
>>as that project.xml file doesn't contain any dependency information or
>>even information about where the source is.
>>
>>The project.xml files for good 'maven eclipse' usage are:
>>    - applications/jmxdebug/project.xml
>>    - modules/assembly/project.xml
>>    - modules/clustering/project.xml
>>    - modules/common/project.xml
>>    - modules/connector/project.xml
>>    - modules/console-web/project.xml
>>    - modules/core/project.xml
>>    - modules/deployment/project.xml
>>    - modules/j2ee/project.xml
>>    - modules/jetty/project.xml
>>    - modules/kernel/project.xml
>>    - modules/maven-plugin/project.xml
>>    - modules/maven-xmlbeans-plugin/project.xml
>>    - modules/naming/project.xml
>>    - modules/network/project.xml
>>    - modules/remoting/project.xml
>>    - modules/security/project.xml
>>    - modules/system/project.xml
>>    - modules/transaction/project.xml
>>    - sandbox/activation/project.xml
>>    - sandbox/explorer/project.xml
>>    - sandbox/javamail/project.xml
>>    - sandbox/mail/project.xml
>>    - sandbox/twiddle/project.xml
>>    - sandbox/webdav/project.xml
>>    - sandbox/xbeans/project.xml
>>    - specs/ejb/project.xml
>>    - specs/j2ee/project.xml
>>    - specs/j2ee-connector/project.xml
>>    - specs/j2ee-deployment/project.xml
>>    - specs/j2ee-jacc/project.xml
>>    - specs/j2ee-management/project.xml
>>    - specs/jms/project.xml
>>    - specs/jsp/project.xml
>>    - specs/jta/project.xml
>>    - specs/schema/project.xml
>>    - specs/servlet/project.xml
>>
>>Now, there are 37 different places where you would need to run 'maven
>>eclipse' and that is a redundant task that could easily be done with a
>>little Bash loop like this:
>>
>>    for module in "$(find ./*/ -name project.xml | sed
>>    
>>
>'s/project.xml//')"; do
>  
>
>>        echo $module
>>        pushd $PWD &> /dev/null;
>>        cd $module
>>        maven eclipse > /dev/null
>>        popd &> /dev/null
>>    done;
>>
>>Then you can import the eclipse projects into eclipse just fine.  You
>>only need to import the ones you are interested in as the .classpath
>>of each will already the jars of the related projects in its
>>classpath.
>>
>>-David
>>
>>
>>
>>On Mon, Apr 26, 2004 at 12:31:55PM -0300, Emerson Cargnin wrote:
>>    
>>
>>>I've been out of this list for a while, and before I got out I promess
>>>      
>>>
>to
>  
>
>>>send a patch with a working version of .project and .classpath and a
>>>      
>>>
>how-to
>  
>
>>>to allow debugging inside eclipse.
>>>
>>>I was requested to create an article for a Java brazillian magazine
>>>      
>>>
>about
>  
>
>>>geronimo. So I'll update my eclipse configuration to match the current
>>>      
>>>
>state
>  
>
>>>of it.
>>>
>>>Emerson
>>>----- Original Message ----- 
>>>From: "Patrick Mueller" <pm...@yahoo.com>
>>>To: <ge...@incubator.apache.org>
>>>Sent: Monday, April 26, 2004 12:03 PM
>>>Subject: Re: Eclipse issue
>>>
>>>
>>>| On Apr 23, 2004, at 4:34 PM, Jukka Uusisalo wrote:
>>>| > Does somebody have suggestions or good practices how create eclipse
>>>| > projects
>>>| > against geronimo directory structure from cvs?
>>>| >
>>>| > I made one eclipse project like geronimo-module = eclipse-module,
>>>      
>>>
>but
>  
>
>>>| > it
>>>| > feels
>>>| > little bit hard to find needed parts to get compiled etc. Also one
>>>      
>>>
>big
>  
>
>>>| > project with several
>>>| > source root does not make me happy.
>>>|
>>>| I previously posted a Python script I use to build a .project and
>>>| .classpath file for Eclipse, but I've tweaked it a bit since then so
>>>      
>>>
>am
>  
>
>>>| re-posting.  It goes the 'one big project' route.  I first run maven
>>>| from the command-line, then run the script.  The end goal for now is
>>>      
>>>
>to
>  
>
>>>| get an Eclipse project which has all the dependencies set up, so that
>>>| you can do interesting introspection things like find references, etc.
>>>|
>>>| One day I should Jelly-ize this ...
>>>|
>>>|
>>>|
>>>
>>>
>>>      
>>>
>>--------------------------------------------------------------------------
>>    
>>
>--
>  
>
>>>----
>>>
>>>
>>>|
>>>|
>>>| Patrick Mueller
>>>| pmuellr@yahoo.com
>>>|
>>>
>>>
>>>---
>>>Outgoing mail is certified Virus Free.
>>>Checked by AVG anti-virus system (http://www.grisoft.com).
>>>Version: 6.0.668 / Virus Database: 430 - Release Date: 24/4/2004
>>>      
>>>


Re: Eclipse issue

Posted by A Carbone <ac...@hotmail.com>.
That loop is a Linux or Unix only thing correct? it looks like it is using
command scripting or something not familiar to me, could just be my
ignorance sorry for the dumb question! is there a way to do the same in dos?
would I have to write a batch file to do it?

A Carbone

----- Original Message ----- 
From: "David Blevins" <da...@visi.com>
To: <ge...@incubator.apache.org>
Sent: Monday, April 26, 2004 12:24 PM
Subject: Re: Eclipse issue


> Just as a note to everyone, maven *will* create your .project files
> and .classpath files including all dependencies to other jars.  You
> just need to type 'maven eclipse' in the directories where the
> project.xml files are located.  If you type 'maven eclipse' at the top
> directory (incubator-geronimo), your not going to get anything useful
> as that project.xml file doesn't contain any dependency information or
> even information about where the source is.
>
> The project.xml files for good 'maven eclipse' usage are:
>     - applications/jmxdebug/project.xml
>     - modules/assembly/project.xml
>     - modules/clustering/project.xml
>     - modules/common/project.xml
>     - modules/connector/project.xml
>     - modules/console-web/project.xml
>     - modules/core/project.xml
>     - modules/deployment/project.xml
>     - modules/j2ee/project.xml
>     - modules/jetty/project.xml
>     - modules/kernel/project.xml
>     - modules/maven-plugin/project.xml
>     - modules/maven-xmlbeans-plugin/project.xml
>     - modules/naming/project.xml
>     - modules/network/project.xml
>     - modules/remoting/project.xml
>     - modules/security/project.xml
>     - modules/system/project.xml
>     - modules/transaction/project.xml
>     - sandbox/activation/project.xml
>     - sandbox/explorer/project.xml
>     - sandbox/javamail/project.xml
>     - sandbox/mail/project.xml
>     - sandbox/twiddle/project.xml
>     - sandbox/webdav/project.xml
>     - sandbox/xbeans/project.xml
>     - specs/ejb/project.xml
>     - specs/j2ee/project.xml
>     - specs/j2ee-connector/project.xml
>     - specs/j2ee-deployment/project.xml
>     - specs/j2ee-jacc/project.xml
>     - specs/j2ee-management/project.xml
>     - specs/jms/project.xml
>     - specs/jsp/project.xml
>     - specs/jta/project.xml
>     - specs/schema/project.xml
>     - specs/servlet/project.xml
>
> Now, there are 37 different places where you would need to run 'maven
> eclipse' and that is a redundant task that could easily be done with a
> little Bash loop like this:
>
>     for module in "$(find ./*/ -name project.xml | sed
's/project.xml//')"; do
>         echo $module
>         pushd $PWD &> /dev/null;
>         cd $module
>         maven eclipse > /dev/null
>         popd &> /dev/null
>     done;
>
> Then you can import the eclipse projects into eclipse just fine.  You
> only need to import the ones you are interested in as the .classpath
> of each will already the jars of the related projects in its
> classpath.
>
> -David
>
>
>
> On Mon, Apr 26, 2004 at 12:31:55PM -0300, Emerson Cargnin wrote:
> > I've been out of this list for a while, and before I got out I promess
to
> > send a patch with a working version of .project and .classpath and a
how-to
> > to allow debugging inside eclipse.
> >
> > I was requested to create an article for a Java brazillian magazine
about
> > geronimo. So I'll update my eclipse configuration to match the current
state
> > of it.
> >
> > Emerson
> > ----- Original Message ----- 
> > From: "Patrick Mueller" <pm...@yahoo.com>
> > To: <ge...@incubator.apache.org>
> > Sent: Monday, April 26, 2004 12:03 PM
> > Subject: Re: Eclipse issue
> >
> >
> > | On Apr 23, 2004, at 4:34 PM, Jukka Uusisalo wrote:
> > | > Does somebody have suggestions or good practices how create eclipse
> > | > projects
> > | > against geronimo directory structure from cvs?
> > | >
> > | > I made one eclipse project like geronimo-module = eclipse-module,
but
> > | > it
> > | > feels
> > | > little bit hard to find needed parts to get compiled etc. Also one
big
> > | > project with several
> > | > source root does not make me happy.
> > |
> > | I previously posted a Python script I use to build a .project and
> > | .classpath file for Eclipse, but I've tweaked it a bit since then so
am
> > | re-posting.  It goes the 'one big project' route.  I first run maven
> > | from the command-line, then run the script.  The end goal for now is
to
> > | get an Eclipse project which has all the dependencies set up, so that
> > | you can do interesting introspection things like find references, etc.
> > |
> > | One day I should Jelly-ize this ...
> > |
> > |
> > |
> >
> >
>
> --------------------------------------------------------------------------
--
> > ----
> >
> >
> > |
> > |
> > | Patrick Mueller
> > | pmuellr@yahoo.com
> > |
> >
> >
> > ---
> > Outgoing mail is certified Virus Free.
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.668 / Virus Database: 430 - Release Date: 24/4/2004
>

Re: Eclipse issue

Posted by David Blevins <da...@visi.com>.
Just as a note to everyone, maven *will* create your .project files
and .classpath files including all dependencies to other jars.  You
just need to type 'maven eclipse' in the directories where the
project.xml files are located.  If you type 'maven eclipse' at the top
directory (incubator-geronimo), your not going to get anything useful
as that project.xml file doesn't contain any dependency information or
even information about where the source is.

The project.xml files for good 'maven eclipse' usage are:
    - applications/jmxdebug/project.xml
    - modules/assembly/project.xml
    - modules/clustering/project.xml
    - modules/common/project.xml
    - modules/connector/project.xml
    - modules/console-web/project.xml
    - modules/core/project.xml
    - modules/deployment/project.xml
    - modules/j2ee/project.xml
    - modules/jetty/project.xml
    - modules/kernel/project.xml
    - modules/maven-plugin/project.xml
    - modules/maven-xmlbeans-plugin/project.xml
    - modules/naming/project.xml
    - modules/network/project.xml
    - modules/remoting/project.xml
    - modules/security/project.xml
    - modules/system/project.xml
    - modules/transaction/project.xml
    - sandbox/activation/project.xml
    - sandbox/explorer/project.xml
    - sandbox/javamail/project.xml
    - sandbox/mail/project.xml
    - sandbox/twiddle/project.xml
    - sandbox/webdav/project.xml
    - sandbox/xbeans/project.xml
    - specs/ejb/project.xml
    - specs/j2ee/project.xml
    - specs/j2ee-connector/project.xml
    - specs/j2ee-deployment/project.xml
    - specs/j2ee-jacc/project.xml
    - specs/j2ee-management/project.xml
    - specs/jms/project.xml
    - specs/jsp/project.xml
    - specs/jta/project.xml
    - specs/schema/project.xml
    - specs/servlet/project.xml

Now, there are 37 different places where you would need to run 'maven
eclipse' and that is a redundant task that could easily be done with a
little Bash loop like this:

    for module in "$(find ./*/ -name project.xml | sed 's/project.xml//')"; do
        echo $module
        pushd $PWD &> /dev/null;
        cd $module
        maven eclipse > /dev/null
        popd &> /dev/null
    done;

Then you can import the eclipse projects into eclipse just fine.  You
only need to import the ones you are interested in as the .classpath
of each will already the jars of the related projects in its
classpath.

-David



On Mon, Apr 26, 2004 at 12:31:55PM -0300, Emerson Cargnin wrote:
> I've been out of this list for a while, and before I got out I promess to
> send a patch with a working version of .project and .classpath and a how-to
> to allow debugging inside eclipse.
> 
> I was requested to create an article for a Java brazillian magazine about
> geronimo. So I'll update my eclipse configuration to match the current state
> of it.
> 
> Emerson
> ----- Original Message ----- 
> From: "Patrick Mueller" <pm...@yahoo.com>
> To: <ge...@incubator.apache.org>
> Sent: Monday, April 26, 2004 12:03 PM
> Subject: Re: Eclipse issue
> 
> 
> | On Apr 23, 2004, at 4:34 PM, Jukka Uusisalo wrote:
> | > Does somebody have suggestions or good practices how create eclipse
> | > projects
> | > against geronimo directory structure from cvs?
> | >
> | > I made one eclipse project like geronimo-module = eclipse-module, but
> | > it
> | > feels
> | > little bit hard to find needed parts to get compiled etc. Also one big
> | > project with several
> | > source root does not make me happy.
> |
> | I previously posted a Python script I use to build a .project and
> | .classpath file for Eclipse, but I've tweaked it a bit since then so am
> | re-posting.  It goes the 'one big project' route.  I first run maven
> | from the command-line, then run the script.  The end goal for now is to
> | get an Eclipse project which has all the dependencies set up, so that
> | you can do interesting introspection things like find references, etc.
> |
> | One day I should Jelly-ize this ...
> |
> |
> |
> 
> 
> ----------------------------------------------------------------------------
> ----
> 
> 
> |
> |
> | Patrick Mueller
> | pmuellr@yahoo.com
> |
> 
> 
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.668 / Virus Database: 430 - Release Date: 24/4/2004

Re: Eclipse issue

Posted by Emerson Cargnin <ec...@bol.com.br>.
I've been out of this list for a while, and before I got out I promess to
send a patch with a working version of .project and .classpath and a how-to
to allow debugging inside eclipse.

I was requested to create an article for a Java brazillian magazine about
geronimo. So I'll update my eclipse configuration to match the current state
of it.

Emerson
----- Original Message ----- 
From: "Patrick Mueller" <pm...@yahoo.com>
To: <ge...@incubator.apache.org>
Sent: Monday, April 26, 2004 12:03 PM
Subject: Re: Eclipse issue


| On Apr 23, 2004, at 4:34 PM, Jukka Uusisalo wrote:
| > Does somebody have suggestions or good practices how create eclipse
| > projects
| > against geronimo directory structure from cvs?
| >
| > I made one eclipse project like geronimo-module = eclipse-module, but
| > it
| > feels
| > little bit hard to find needed parts to get compiled etc. Also one big
| > project with several
| > source root does not make me happy.
|
| I previously posted a Python script I use to build a .project and
| .classpath file for Eclipse, but I've tweaked it a bit since then so am
| re-posting.  It goes the 'one big project' route.  I first run maven
| from the command-line, then run the script.  The end goal for now is to
| get an Eclipse project which has all the dependencies set up, so that
| you can do interesting introspection things like find references, etc.
|
| One day I should Jelly-ize this ...
|
|
|


----------------------------------------------------------------------------
----


|
|
| Patrick Mueller
| pmuellr@yahoo.com
|


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.668 / Virus Database: 430 - Release Date: 24/4/2004


Re: Eclipse issue

Posted by Patrick Mueller <pm...@yahoo.com>.
On Apr 23, 2004, at 4:34 PM, Jukka Uusisalo wrote:
> Does somebody have suggestions or good practices how create eclipse 
> projects
> against geronimo directory structure from cvs?
>
> I made one eclipse project like geronimo-module = eclipse-module, but 
> it
> feels
> little bit hard to find needed parts to get compiled etc. Also one big
> project with several
> source root does not make me happy.

I previously posted a Python script I use to build a .project and 
.classpath file for Eclipse, but I've tweaked it a bit since then so am 
re-posting.  It goes the 'one big project' route.  I first run maven 
from the command-line, then run the script.  The end goal for now is to 
get an Eclipse project which has all the dependencies set up, so that 
you can do interesting introspection things like find references, etc.

One day I should Jelly-ize this ...