Importing Existing Project [message #119983] |
Sun, 27 November 2005 07:47 |
Matthew Peddlesden Messages: 3 Registered: July 2009 |
Junior Member |
|
|
Hi!
I'm making good progress with some publishing tags for ANT to
automatically create eclipse project files to allow our projects to be
edited nicely within Eclipse - by and large it works quite well, a few
bugs that i'm on the way to fixing (recursion of dependencies primarily!).
Now, the problem i'm having is probably silly, but bear with me :)
I've got a folder structure such as :
/vsbuild/projects/myproject
/vsbuild/projects/myproject/src
/vsbuild/projects/myproject/test
/vsbuild/projects/myproject/build
/vsbuild/projects/myproject/etc
/vsbuild/projects/myproject/etc/deploy
/vsbuild/projects/myproject/nbproject
/vsbuild/projects/myproject/nbproject/private
/vsbuild/projects/myproject/report
I don't want it to compile *anything* that isn't in either src or test and
i've set up some fairly extensive exclusions - indeed, looking in the
output folder it does indeed seem to be showing me exactly the right
subset.
The problem is that i'm getting compilation errors in two files within the
nbproject folders, they are specifically excluded in the java build path
and do not appear in the output folder, yet they are validated by Eclipse.
I noticed that another file in etc was also being validated - but to my
shame that one really was a bug :-) - still, it shouldn't have found it :)
:)
The file in nbproject is a netbeans project.xml and the error is related
to not being able to find the definition of a particular schema element...
I don't care, it's nothing to do with the project, at least not where
Eclipse is concerned :)
Any way I can control what Eclipse itself is validating?
Thanks in advance - nearly there :) :)
Matt.
|
|
|
Re: Importing Existing Project [message #120520 is a reply to message #119983] |
Tue, 29 November 2005 19:15 |
Eclipse User |
|
|
|
Originally posted by: eclipse3.rizzoweb.com
Matthew Peddlesden wrote:
>
> I've got a folder structure such as :
>
> /vsbuild/projects/myproject
> /vsbuild/projects/myproject/src
> /vsbuild/projects/myproject/test
> /vsbuild/projects/myproject/build
> /vsbuild/projects/myproject/etc
> /vsbuild/projects/myproject/etc/deploy
> /vsbuild/projects/myproject/nbproject
> /vsbuild/projects/myproject/nbproject/private
> /vsbuild/projects/myproject/report
>
> I don't want it to compile *anything* that isn't in either src or test
> and i've set up some fairly extensive exclusions - indeed, looking in
> the output folder it does indeed seem to be showing me exactly the right
> subset.
>
> The problem is that i'm getting compilation errors in two files within
> the nbproject folders, they are specifically excluded in the java build
> path and do not appear in the output folder, yet they are validated by
> Eclipse. I noticed that another file in etc was also being validated -
> but to my shame that one really was a bug :-) - still, it shouldn't have
> found it :) :)
In the Project's properties dialog, what is listed as the Source
Locations (under the Java Build Path section)?
It should only be src/ and test/ and nothing else, but according to what
you say above it sounds as if other directories are listed as Source
Locations.
HTH,
Eric
|
|
|
|
Re: Importing Existing Project [message #121144 is a reply to message #121006] |
Thu, 01 December 2005 20:38 |
Eclipse User |
|
|
|
Originally posted by: eclipse3.rizzoweb.com
Matthew Peddlesden wrote:
> Hi again,
>
> Thanks again Eric, I ultimately sussed it by defining the project route
> as a source folder and excluding everything I didn't want (including all
> the genuine source folders) and then including the source folders
> separately, that works absolutely superbly.
That is really going the long way around to get where you want to go. It
is intended to work by explicitly defining individual Source Locations
within the project tree, not using the entire project tree as a Source
Location with extensive inclusions/exclusions. Why have you chosen to go
that way? In doing so you've chosen to make things more complicated than
they need be.
Eric
|
|
|
Powered by
FUDForum. Page generated in 0.07353 seconds