Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Using custom ant script problem in Eclipse.
Using custom ant script problem in Eclipse. [message #182189] Wed, 29 November 2006 19:35 Go to next message
Eclipse UserFriend
Originally posted by: dh.evolutionnext.gmail.com

Hey everyone, I am a newcomer to Eclipse.

I created a new project using an existing Ant Buildfile using the New
Project... wizard that comes with Eclipse. The project created fine.
The only problem is, is that my ant script doesn't run because my
basedir = "." and my project seems to think that my build.xml is in the
workspace and not in my already existing project directory.

The result I get is:
Buildfile: /home/danno/workspace/my-war/build.xml

BUILD FAILED
/home/danno/workspace/my-war/build.xml:73:
/home/danno/workspace/my-war/lib not found.

The message is pretty clear. The thing is that my lib directory is
actually in /home/danno/development/my-war and not in
/home/danno/workspace/my-war. I do not want to combine the workspace
and my actual development directory, because I want my project to be as
IDE agnostic as possible.


So how do I go about making sure I don't get that error?
Re: Using custom ant script problem in Eclipse. [message #182563 is a reply to message #182189] Fri, 01 December 2006 18:19 Go to previous message
Eclipse UserFriend
Originally posted by: eclipse5.rizzoweb.com

Daniel Hinojosa wrote:
> Hey everyone, I am a newcomer to Eclipse.
>
> I created a new project using an existing Ant Buildfile using the New
> Project... wizard that comes with Eclipse. The project created fine.
> The only problem is, is that my ant script doesn't run because my
> basedir = "." and my project seems to think that my build.xml is in the
> workspace and not in my already existing project directory.
>
> The result I get is:
> Buildfile: /home/danno/workspace/my-war/build.xml
>
> BUILD FAILED
> /home/danno/workspace/my-war/build.xml:73:
> /home/danno/workspace/my-war/lib not found.
>
> The message is pretty clear. The thing is that my lib directory is
> actually in /home/danno/development/my-war and not in
> /home/danno/workspace/my-war. I do not want to combine the workspace
> and my actual development directory, because I want my project to be as
> IDE agnostic as possible.

You can have your "actual development" directory be the same as the
Eclipse project directory without any "pollution" - I do it all the
time. The only Eclipse-specific stuff in there will be the .project and
..classpath files.
The Eclipse Help has a good tutorial on Project Configuration that
includes an example of creating an Eclipse project from an existing
development directory structure - that might guide you to setting up
your Eclipse project appropriately.

If you still want your specific error resolved, I think it would help to
have more details about the direcrotries involved and where the relevant
files are. Something like this might help:

/Eclipse/
/workspace/

/myProject/
build.xml
/build-output/
/source/
/packageA/
/packageB/
<etc>
/lib/


and so forth. This gives everyone a clear picture of how your structure
is laid out.

Hope this helps,
Eric
Previous Topic:unused resource tool
Next Topic:Switch to default perspective
Goto Forum:
  


Current Time: Sat Apr 27 00:03:42 GMT 2024

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

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

Back to the top