Including autogenerated directories/classes in buildpath? [message #72455] |
Thu, 03 July 2003 13:40  |
Eclipse User |
|
|
|
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 #77233 is a reply to message #76907] |
Thu, 17 July 2003 13:11  |
Eclipse User |
|
|
|
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
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.04169 seconds