Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Difficulty Getting Ant to Run in Eclipse 3.0.1
Difficulty Getting Ant to Run in Eclipse 3.0.1 [message #195250] Wed, 09 February 2005 21:50 Go to next message
Joe Gliniecki is currently offline Joe GlinieckiFriend
Messages: 12
Registered: July 2009
Junior Member
I am finally moving from Eclipse 2.1.2 to 3.0.1. I've had some ant scripts
in 2.1.2 that compliled java code and ran junit tests. I have been unable
to get them to run in 3.0.1. When I right click on build.xml and do a Run
-> Ant Build, there is no output to the console and no entry in the
<workspace>/.metadata/.log. I also tried to run the "Hello World" script
from the help doc, but had the same results. I can run the Junit tests
from within eclipse so my project has all the proper libraries in the
build path. Is there some basic setup of classpath or properties in the
external tools dialog required in 3.0.1 to run a basic ant script?

Thanks,
Joe
Re: Difficulty Getting Ant to Run in Eclipse 3.0.1 [message #195264 is a reply to message #195250] Wed, 09 February 2005 22:20 Go to previous messageGo to next message
Darin Swanson is currently offline Darin SwansonFriend
Messages: 2386
Registered: July 2009
Senior Member
When you do Run-->Ant Build... are any problems reported?

Darins

"Joe Gliniecki" <jgliniecki@yahoo.com> wrote in message
news:cue0ip$fiu$1@www.eclipse.org...
> I am finally moving from Eclipse 2.1.2 to 3.0.1. I've had some ant scripts
> in 2.1.2 that compliled java code and ran junit tests. I have been unable
> to get them to run in 3.0.1. When I right click on build.xml and do a Run
> -> Ant Build, there is no output to the console and no entry in the
> <workspace>/.metadata/.log. I also tried to run the "Hello World" script
> from the help doc, but had the same results. I can run the Junit tests
> from within eclipse so my project has all the proper libraries in the
> build path. Is there some basic setup of classpath or properties in the
> external tools dialog required in 3.0.1 to run a basic ant script?
>
> Thanks,
> Joe
>
Re: Difficulty Getting Ant to Run in Eclipse 3.0.1 [message #195272 is a reply to message #195264] Wed, 09 February 2005 22:29 Go to previous messageGo to next message
Joe Gliniecki is currently offline Joe GlinieckiFriend
Messages: 12
Registered: July 2009
Junior Member
Nope, no problems, so doesn't appear to be an XML parsing error or
anything like that. When I do Run-->Ant Build, its as if I didn't click on
anything. No change in any of the windows, no dialogs, and nothing in the
log.


Darin Swanson wrote:

> When you do Run-->Ant Build... are any problems reported?

> Darins

> "Joe Gliniecki" <jgliniecki@yahoo.com> wrote in message
> news:cue0ip$fiu$1@www.eclipse.org...
>> I am finally moving from Eclipse 2.1.2 to 3.0.1. I've had some ant scripts
>> in 2.1.2 that compliled java code and ran junit tests. I have been unable
>> to get them to run in 3.0.1. When I right click on build.xml and do a Run
>> -> Ant Build, there is no output to the console and no entry in the
>> <workspace>/.metadata/.log. I also tried to run the "Hello World" script
>> from the help doc, but had the same results. I can run the Junit tests
>> from within eclipse so my project has all the proper libraries in the
>> build path. Is there some basic setup of classpath or properties in the
>> external tools dialog required in 3.0.1 to run a basic ant script?
>>
>> Thanks,
>> Joe
>>
Re: Difficulty Getting Ant to Run in Eclipse 3.0.1 [message #195277 is a reply to message #195272] Wed, 09 February 2005 22:43 Go to previous messageGo to next message
Darin Swanson is currently offline Darin SwansonFriend
Messages: 2386
Registered: July 2009
Senior Member
In the debug view is any launch created?
Do you have the builds set to capture output on the Main tab of the launch
configuration?
If you create a new buildfile and attempt to run it any better success? That
is, is this a migration issue with 2.1.2 create launch configurations?

HTH
Darins

"Joe Gliniecki" <jgliniecki@yahoo.com> wrote in message
news:cue2t4$p6f$1@www.eclipse.org...
> Nope, no problems, so doesn't appear to be an XML parsing error or
> anything like that. When I do Run-->Ant Build, its as if I didn't click on
> anything. No change in any of the windows, no dialogs, and nothing in the
> log.
>
>
> Darin Swanson wrote:
>
> > When you do Run-->Ant Build... are any problems reported?
>
> > Darins
>
> > "Joe Gliniecki" <jgliniecki@yahoo.com> wrote in message
> > news:cue0ip$fiu$1@www.eclipse.org...
> >> I am finally moving from Eclipse 2.1.2 to 3.0.1. I've had some ant
scripts
> >> in 2.1.2 that compliled java code and ran junit tests. I have been
unable
> >> to get them to run in 3.0.1. When I right click on build.xml and do a
Run
> >> -> Ant Build, there is no output to the console and no entry in the
> >> <workspace>/.metadata/.log. I also tried to run the "Hello World"
script
> >> from the help doc, but had the same results. I can run the Junit tests
> >> from within eclipse so my project has all the proper libraries in the
> >> build path. Is there some basic setup of classpath or properties in the
> >> external tools dialog required in 3.0.1 to run a basic ant script?
> >>
> >> Thanks,
> >> Joe
> >>
>
>
Re: Difficulty Getting Ant to Run in Eclipse 3.0.1 [message #195285 is a reply to message #195277] Wed, 09 February 2005 22:54 Go to previous messageGo to next message
Joe Gliniecki is currently offline Joe GlinieckiFriend
Messages: 12
Registered: July 2009
Junior Member
Yes, I forgot to mention that. I did check the debug view, but there
wasn't anything running. Also the capture output checkbox is checked on
the main tab of the config window.

I did create a new project and a new build file with the "Hello World" ant
script from the helpdoc that basically just does an echo, but get the same
results.

Is there any kind of general environment variable that needs to be set or
jar from Apache that needs to be installed? I've been assuming that
eclipse would have everything it needed to run a trivial "Hello World" ant
script, but maybe I'm missing something.

Thanks,
Joe


Darin Swanson wrote:

> In the debug view is any launch created?
> Do you have the builds set to capture output on the Main tab of the launch
> configuration?
> If you create a new buildfile and attempt to run it any better success? That
> is, is this a migration issue with 2.1.2 create launch configurations?

> HTH
> Darins

> "Joe Gliniecki" <jgliniecki@yahoo.com> wrote in message
> news:cue2t4$p6f$1@www.eclipse.org...
>> Nope, no problems, so doesn't appear to be an XML parsing error or
>> anything like that. When I do Run-->Ant Build, its as if I didn't click on
>> anything. No change in any of the windows, no dialogs, and nothing in the
>> log.
>>
>>
>> Darin Swanson wrote:
>>
>> > When you do Run-->Ant Build... are any problems reported?
>>
>> > Darins
>>
>> > "Joe Gliniecki" <jgliniecki@yahoo.com> wrote in message
>> > news:cue0ip$fiu$1@www.eclipse.org...
>> >> I am finally moving from Eclipse 2.1.2 to 3.0.1. I've had some ant
> scripts
>> >> in 2.1.2 that compliled java code and ran junit tests. I have been
> unable
>> >> to get them to run in 3.0.1. When I right click on build.xml and do a
> Run
>> >> -> Ant Build, there is no output to the console and no entry in the
>> >> <workspace>/.metadata/.log. I also tried to run the "Hello World"
> script
>> >> from the help doc, but had the same results. I can run the Junit tests
>> >> from within eclipse so my project has all the proper libraries in the
>> >> build path. Is there some basic setup of classpath or properties in the
>> >> external tools dialog required in 3.0.1 to run a basic ant script?
>> >>
>> >> Thanks,
>> >> Joe
>> >>
>>
>>
Re: Difficulty Getting Ant to Run in Eclipse 3.0.1 [message #195293 is a reply to message #195285] Wed, 09 February 2005 23:04 Go to previous messageGo to next message
Darin Swanson is currently offline Darin SwansonFriend
Messages: 2386
Registered: July 2009
Senior Member
I am puzzled.
Out of the box Eclipse 3.0.1 has all that is needed to run your basic Ant
buildfiles.

Go to the Ant Runtime classpath preference page. Please list what is
included there?
Window>Preferences>Ant>Runtime>Classpath
Try hitting "Restore Defaults"

Can you please explain exactly how you installed and migrated to 3.0.1?
out on your disk where Eclipse is installed can you verify that the
following JARs exist:
.../plugins/org.eclipse.ant.core_3.0.0/lib/antsupportlib.jar
.../plugins/org.eclipse.ant.ui_3.0.1/lib/antrunner.jar
.../plugins/org.eclipse.ant.ui_3.0.1/lib/remoteAnt.jar

If all this fails can you try Eclipse 3.0.1 with a new workspace and see if
you have success?

Darins

"Joe Gliniecki" <jgliniecki@yahoo.com> wrote in message
news:cue4as$v2m$1@www.eclipse.org...
> Yes, I forgot to mention that. I did check the debug view, but there
> wasn't anything running. Also the capture output checkbox is checked on
> the main tab of the config window.
>
> I did create a new project and a new build file with the "Hello World" ant
> script from the helpdoc that basically just does an echo, but get the same
> results.
>
> Is there any kind of general environment variable that needs to be set or
> jar from Apache that needs to be installed? I've been assuming that
> eclipse would have everything it needed to run a trivial "Hello World" ant
> script, but maybe I'm missing something.
>
> Thanks,
> Joe
>
>
> Darin Swanson wrote:
>
> > In the debug view is any launch created?
> > Do you have the builds set to capture output on the Main tab of the
launch
> > configuration?
> > If you create a new buildfile and attempt to run it any better success?
That
> > is, is this a migration issue with 2.1.2 create launch configurations?
>
> > HTH
> > Darins
>
> > "Joe Gliniecki" <jgliniecki@yahoo.com> wrote in message
> > news:cue2t4$p6f$1@www.eclipse.org...
> >> Nope, no problems, so doesn't appear to be an XML parsing error or
> >> anything like that. When I do Run-->Ant Build, its as if I didn't click
on
> >> anything. No change in any of the windows, no dialogs, and nothing in
the
> >> log.
> >>
> >>
> >> Darin Swanson wrote:
> >>
> >> > When you do Run-->Ant Build... are any problems reported?
> >>
> >> > Darins
> >>
> >> > "Joe Gliniecki" <jgliniecki@yahoo.com> wrote in message
> >> > news:cue0ip$fiu$1@www.eclipse.org...
> >> >> I am finally moving from Eclipse 2.1.2 to 3.0.1. I've had some ant
> > scripts
> >> >> in 2.1.2 that compliled java code and ran junit tests. I have been
> > unable
> >> >> to get them to run in 3.0.1. When I right click on build.xml and do
a
> > Run
> >> >> -> Ant Build, there is no output to the console and no entry in the
> >> >> <workspace>/.metadata/.log. I also tried to run the "Hello World"
> > script
> >> >> from the help doc, but had the same results. I can run the Junit
tests
> >> >> from within eclipse so my project has all the proper libraries in
the
> >> >> build path. Is there some basic setup of classpath or properties in
the
> >> >> external tools dialog required in 3.0.1 to run a basic ant script?
> >> >>
> >> >> Thanks,
> >> >> Joe
> >> >>
> >>
> >>
>
>
Re: Difficulty Getting Ant to Run in Eclipse 3.0.1 [message #195301 is a reply to message #195293] Wed, 09 February 2005 23:24 Go to previous messageGo to next message
Joe Gliniecki is currently offline Joe GlinieckiFriend
Messages: 12
Registered: July 2009
Junior Member
Darwin,
The jars were all there in the plugins directory. I did try starting
eclipse where I pointed to a new workspace and the trivial ant script
worked! So aparently something is corrupted in the original workspace.
Surprising though, since I've been pointing the 3.0.1 install to its own
workspace from the start (didn't reuse the 2.1 workspace). Also surprising
in how it failed (no error messages, nothting output to the console).

Anyhow, I should be on my way now. I'll just delete the old workspace.

Thanks for all your help!!
-Joe

Darin Swanson wrote:

> I am puzzled.
> Out of the box Eclipse 3.0.1 has all that is needed to run your basic Ant
> buildfiles.

> Go to the Ant Runtime classpath preference page. Please list what is
> included there?
> Window>Preferences>Ant>Runtime>Classpath
> Try hitting "Restore Defaults"

> Can you please explain exactly how you installed and migrated to 3.0.1?
> out on your disk where Eclipse is installed can you verify that the
> following JARs exist:
> .../plugins/org.eclipse.ant.core_3.0.0/lib/antsupportlib.jar
> .../plugins/org.eclipse.ant.ui_3.0.1/lib/antrunner.jar
> .../plugins/org.eclipse.ant.ui_3.0.1/lib/remoteAnt.jar

> If all this fails can you try Eclipse 3.0.1 with a new workspace and see if
> you have success?

> Darins

> "Joe Gliniecki" <jgliniecki@yahoo.com> wrote in message
> news:cue4as$v2m$1@www.eclipse.org...
>> Yes, I forgot to mention that. I did check the debug view, but there
>> wasn't anything running. Also the capture output checkbox is checked on
>> the main tab of the config window.
>>
>> I did create a new project and a new build file with the "Hello World" ant
>> script from the helpdoc that basically just does an echo, but get the same
>> results.
>>
>> Is there any kind of general environment variable that needs to be set or
>> jar from Apache that needs to be installed? I've been assuming that
>> eclipse would have everything it needed to run a trivial "Hello World" ant
>> script, but maybe I'm missing something.
>>
>> Thanks,
>> Joe
>>
>>
>> Darin Swanson wrote:
>>
>> > In the debug view is any launch created?
>> > Do you have the builds set to capture output on the Main tab of the
> launch
>> > configuration?
>> > If you create a new buildfile and attempt to run it any better success?
> That
>> > is, is this a migration issue with 2.1.2 create launch configurations?
>>
>> > HTH
>> > Darins
>>
>> > "Joe Gliniecki" <jgliniecki@yahoo.com> wrote in message
>> > news:cue2t4$p6f$1@www.eclipse.org...
>> >> Nope, no problems, so doesn't appear to be an XML parsing error or
>> >> anything like that. When I do Run-->Ant Build, its as if I didn't click
> on
>> >> anything. No change in any of the windows, no dialogs, and nothing in
> the
>> >> log.
>> >>
>> >>
>> >> Darin Swanson wrote:
>> >>
>> >> > When you do Run-->Ant Build... are any problems reported?
>> >>
>> >> > Darins
>> >>
>> >> > "Joe Gliniecki" <jgliniecki@yahoo.com> wrote in message
>> >> > news:cue0ip$fiu$1@www.eclipse.org...
>> >> >> I am finally moving from Eclipse 2.1.2 to 3.0.1. I've had some ant
>> > scripts
>> >> >> in 2.1.2 that compliled java code and ran junit tests. I have been
>> > unable
>> >> >> to get them to run in 3.0.1. When I right click on build.xml and do
> a
>> > Run
>> >> >> -> Ant Build, there is no output to the console and no entry in the
>> >> >> <workspace>/.metadata/.log. I also tried to run the "Hello World"
>> > script
>> >> >> from the help doc, but had the same results. I can run the Junit
> tests
>> >> >> from within eclipse so my project has all the proper libraries in
> the
>> >> >> build path. Is there some basic setup of classpath or properties in
> the
>> >> >> external tools dialog required in 3.0.1 to run a basic ant script?
>> >> >>
>> >> >> Thanks,
>> >> >> Joe
>> >> >>
>> >>
>> >>
>>
>>
Re: Difficulty Getting Ant to Run in Eclipse 3.0.1 [message #195308 is a reply to message #195301] Wed, 09 February 2005 23:30 Go to previous message
Darin Swanson is currently offline Darin SwansonFriend
Messages: 2386
Registered: July 2009
Senior Member
> worked! So aparently something is corrupted in the original workspace.
> Surprising though, since I've been pointing the 3.0.1 install to its own
> workspace from the start (didn't reuse the 2.1 workspace). Also surprising
> in how it failed (no error messages, nothting output to the console).

I agree this is way less than optimal but you are the first case that I am
aware of and I have no way to know what happened nor how to fix for better
error reporting??
If it happens again and you have a notion on how it happened please log a
bug report so I can fix the problem.

> Anyhow, I should be on my way now. I'll just delete the old workspace.
>
> Thanks for all your help!!
> -Joe

Thanks for sticking with us.
Previous Topic:Custom Problem Marker Attributes?
Next Topic:Make nested class to "normal" class
Goto Forum:
  


Current Time: Sat Jul 13 17:19:16 GMT 2024

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

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

Back to the top