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 16:50  |
Eclipse User |
|
|
|
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 17:43   |
Eclipse User |
|
|
|
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 17:54   |
Eclipse User |
|
|
|
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 18:04   |
Eclipse User |
|
|
|
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 18:24   |
Eclipse User |
|
|
|
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 18:30  |
Eclipse User |
|
|
|
> 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.
|
|
|
Goto Forum:
Current Time: Sun Jun 08 06:04:17 EDT 2025
Powered by FUDForum. Page generated in 0.03765 seconds
|