Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Importing Existing Project
Importing Existing Project [message #119983] Sun, 27 November 2005 07:47 Go to next message
Matthew Peddlesden is currently offline Matthew PeddlesdenFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 #121006 is a reply to message #120520] Thu, 01 December 2005 03:35 Go to previous messageGo to next message
Matthew Peddlesden is currently offline Matthew PeddlesdenFriend
Messages: 3
Registered: July 2009
Junior Member
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.

The issue with the files being picked up that shouldn't have been appears
that MyEclipse XML validation doesn't take in to account what is a source
folder and what is not, so i've had to switch that off.

Other than that, working very well.

Thanks!

Matt.
Re: Importing Existing Project [message #121144 is a reply to message #121006] Thu, 01 December 2005 20:38 Go to previous message
Eclipse UserFriend
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
Previous Topic:Could not create action delegate for id
Next Topic:Error after upgrading to RubyDevTools 0.6.0
Goto Forum:
  


Current Time: Sun Oct 06 08:33:56 GMT 2024

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

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

Back to the top