Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Java Project from Existing Ant Buildfile problems
Java Project from Existing Ant Buildfile problems [message #297429] Fri, 13 January 2006 10:51 Go to next message
Eclipse UserFriend
I am attempting to define a new project from an existing ant buildfile.
I have built this project from the command line with ant and the build.xml
with no errors.

In eclipse, I select:
New Project -> Java Project from Existing Ant Buildfile

Then this is next:

Select javac declaration to use to define project:
<>javac task found in target "compileCore"
<>javac task found in target "compileTomcat"
<>javac task found in target "compileAxis"

I select the first (not really knowing which to select)

Everything seems to go well (no error or warning messages), but something
is amiss. There are a bazillion errors. Lots of things like:
The import org.apache.axis cannot be resolved.

What needs to be done?
Re: Java Project from Existing Ant Buildfile problems [message #297430 is a reply to message #297429] Fri, 13 January 2006 10:59 Go to previous messageGo to next message
Eclipse UserFriend
It would appear that your buildfile is more complex than the build file
project creation code can handle.

Selection of the javac task sets the buildpath for the project that is
created.
With multiple javacs, and with the current limitation of setting the
buildpath from only one javac declaration, you are likely missing many
required elements for a complete buildpath for your project.

You can use the creation support and then add as required to the buildpath
of the created project.

HTH
Darins

"al" <allelopath@hotmail.com> wrote in message
news:b99dae6cd25e8154e02cce77dac6ccdd$1@www.eclipse.org...
>I am attempting to define a new project from an existing ant buildfile.
> I have built this project from the command line with ant and the build.xml
> with no errors.
>
> In eclipse, I select:
> New Project -> Java Project from Existing Ant Buildfile
>
> Then this is next:
>
> Select javac declaration to use to define project:
> <>javac task found in target "compileCore"
> <>javac task found in target "compileTomcat"
> <>javac task found in target "compileAxis"
>
> I select the first (not really knowing which to select)
>
> Everything seems to go well (no error or warning messages), but something
> is amiss. There are a bazillion errors. Lots of things like:
> The import org.apache.axis cannot be resolved.
>
> What needs to be done?
>
>
Re: Java Project from Existing Ant Buildfile problems [message #297431 is a reply to message #297430] Fri, 13 January 2006 11:05 Go to previous messageGo to next message
Eclipse UserFriend
What do you mean by 'creation support'?
Re: Java Project from Existing Ant Buildfile problems [message #297433 is a reply to message #297431] Fri, 13 January 2006 11:12 Go to previous messageGo to next message
Eclipse UserFriend
What you did: define a new project from an existing ant buildfile.

"al" <allelopath@hotmail.com> wrote in message
news:2b3e0187e3c7e617f3fefd88b6a616e4$1@www.eclipse.org...
> What do you mean by 'creation support'?
>
Re: Java Project from Existing Ant Buildfile problems [message #297435 is a reply to message #297433] Fri, 13 January 2006 11:30 Go to previous message
Eclipse UserFriend
oic...thanks.
Previous Topic:TableViewer losing its virtualization in a Section
Next Topic:Missing markers with eclipse 3.1 latest release
Goto Forum:
  


Current Time: Mon Aug 18 17:32:07 EDT 2025

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

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

Back to the top