Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Including autogenerated directories/classes in buildpath?
Including autogenerated directories/classes in buildpath? [message #72455] Thu, 03 July 2003 13:40 Go to next message
Eclipse UserFriend
Originally posted by: ehansen.convergentnet.com

I'm working on a J2EE project and am using Ant/XDoclet extensively to
autogenerate all of my interfaces/stubs for EJBs. I'm keeping the
autogenerated source in a separate directory from the developer created
source for a few reasons, one being easier source code control management.
The problem is that none of the developer created source can see the
autogenerated files and I have unresolved class errors all over the place.

This doesn't cause a compilation problem, since I use Ant to do my building,
but I'd like to clean this up if at all possible (plus I like the realtime
dependency checking in Eclipse).

All of the autogenerated source files live in a directory that is created by
Ant. Do I have to manually add the autogenerated source folder to the build
path everytime I create a new instance of this project?

Example:

src
com
blah1
blah2
ejbsrc
com
blah1
blah2

In this case blah1 is developer generated source which relies on classes in
ejbsrc/blah1, but ejbsrc (and everything underneath it) don't exist until
after the first Ant build.

Any suggestions?

Thanks,
Erik
Re: Including autogenerated directories/classes in buildpath? [message #72697 is a reply to message #72455] Fri, 04 July 2003 03:00 Go to previous messageGo to next message
Eclipse UserFriend
I don't understand your problem. Why don't you just add "ejbsrc" as a source
folder to the project, once and for all?

Regards, Ilja
Re: Including autogenerated directories/classes in buildpath? [message #76907 is a reply to message #72455] Wed, 16 July 2003 20:48 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: gwong.kinzan.com

I believe I want to do a similar thing. Are you wanting to do this all
programmatically rather then doing manually via the java properties action?

Erik Hansen wrote:

> I'm working on a J2EE project and am using Ant/XDoclet extensively to
> autogenerate all of my interfaces/stubs for EJBs. I'm keeping the
> autogenerated source in a separate directory from the developer created
> source for a few reasons, one being easier source code control management.
> The problem is that none of the developer created source can see the
> autogenerated files and I have unresolved class errors all over the place.

> This doesn't cause a compilation problem, since I use Ant to do my building,
> but I'd like to clean this up if at all possible (plus I like the realtime
> dependency checking in Eclipse).

> All of the autogenerated source files live in a directory that is created by
> Ant. Do I have to manually add the autogenerated source folder to the build
> path everytime I create a new instance of this project?

> Example:

> src
> com
> blah1
> blah2
> ejbsrc
> com
> blah1
> blah2

> In this case blah1 is developer generated source which relies on classes in
> ejbsrc/blah1, but ejbsrc (and everything underneath it) don't exist until
> after the first Ant build.

> Any suggestions?

> Thanks,
> Erik
Re: Including autogenerated directories/classes in buildpath? [message #77233 is a reply to message #76907] Thu, 17 July 2003 13:11 Go to previous message
Eclipse UserFriend
Originally posted by: ehansen.convergentnet.com

The problem with adding the ejbsrc folder to the build path was that it
doesn't exist until the first Ant run with ejbdoclet to generate the
remote/local,remotehome/localhome classes.

I worked around it by adding the ejbsrc folder to source control so that it
exists prior to the first XDoclet run. This way, when I create the project
in Eclipse, I can add that folder to the build path at project creation
time.


"Garland Wong" <gwong@kinzan.com> wrote in message
news:bf4rpq$m8j$1@eclipse.org...
> I believe I want to do a similar thing. Are you wanting to do this all
> programmatically rather then doing manually via the java properties
action?
>
> Erik Hansen wrote:
>
> > I'm working on a J2EE project and am using Ant/XDoclet extensively to
> > autogenerate all of my interfaces/stubs for EJBs. I'm keeping the
> > autogenerated source in a separate directory from the developer created
> > source for a few reasons, one being easier source code control
management.
> > The problem is that none of the developer created source can see the
> > autogenerated files and I have unresolved class errors all over the
place.
>
> > This doesn't cause a compilation problem, since I use Ant to do my
building,
> > but I'd like to clean this up if at all possible (plus I like the
realtime
> > dependency checking in Eclipse).
>
> > All of the autogenerated source files live in a directory that is
created by
> > Ant. Do I have to manually add the autogenerated source folder to the
build
> > path everytime I create a new instance of this project?
>
> > Example:
>
> > src
> > com
> > blah1
> > blah2
> > ejbsrc
> > com
> > blah1
> > blah2
>
> > In this case blah1 is developer generated source which relies on classes
in
> > ejbsrc/blah1, but ejbsrc (and everything underneath it) don't exist
until
> > after the first Ant build.
>
> > Any suggestions?
>
> > Thanks,
> > Erik
>
>
Previous Topic:PDE Junit help
Next Topic:Get rid of Errors when not using Eclipse's Compiler?
Goto Forum:
  


Current Time: Wed Jun 18 16:04:41 EDT 2025

Powered by FUDForum. Page generated in 0.04309 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top