Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Run Ant oddities
Run Ant oddities [message #163985] Fri, 11 June 2004 13:42 Go to next message
Eclipse UserFriend
Using RC1 I have a user who when selecting on one "build.xml" see the
following when right clicking on the build.xml file.


One has Run --> Ant Build
Ant Build
External Tools

But when selecting a different build.xml file, it just has Run (which
brings up the run config).


Why a different behavior from build.xml to build.xml???
Re: Run Ant oddities [message #163993 is a reply to message #163985] Fri, 11 June 2004 14:58 Go to previous messageGo to next message
Eclipse UserFriend
"mike shipkowski" <michael.shipkowski@sas.com> wrote in message
news:cacquc$mnh$1@eclipse.org...
> Using RC1 I have a user who when selecting on one "build.xml" see the
> following when right clicking on the build.xml file.
>
>
> One has Run --> Ant Build
> Ant Build
> External Tools

This would be the menu presented if the build.xml has "valid" Ant buildfile
content.
That is it has a root element that is a "project".
Since the content has been deemed to be a Ant buildfile, the options to
perform an Ant build are presented

> But when selecting a different build.xml file, it just has Run (which
> brings up the run config).
>
This build.xml does not have a root project element.
Since the content is not deemed to be an Ant buildfile, no options are
presented to perform an Ant build.

If this is not the case for your user, please log a reproducible test case
against platform ant.

HTH
Darins
Re: Run Ant oddities [message #164000 is a reply to message #163993] Fri, 11 June 2004 14:18 Go to previous messageGo to next message
Eclipse UserFriend
Could you expand on what "root project element." means?? Is this a
location in the project???


Darin Swanson wrote:

> "mike shipkowski" <michael.shipkowski@sas.com> wrote in message
> news:cacquc$mnh$1@eclipse.org...
> > Using RC1 I have a user who when selecting on one "build.xml" see the
> > following when right clicking on the build.xml file.
> >
> >
> > One has Run --> Ant Build
> > Ant Build
> > External Tools

> This would be the menu presented if the build.xml has "valid" Ant buildfile
> content.
> That is it has a root element that is a "project".
> Since the content has been deemed to be a Ant buildfile, the options to
> perform an Ant build are presented

> > But when selecting a different build.xml file, it just has Run (which
> > brings up the run config).
> >
> This build.xml does not have a root project element.
> Since the content is not deemed to be an Ant buildfile, no options are
> presented to perform an Ant build.

> If this is not the case for your user, please log a reproducible test case
> against platform ant.

> HTH
> Darins
Re: Run Ant oddities [message #164007 is a reply to message #164000] Fri, 11 June 2004 14:58 Go to previous messageGo to next message
Eclipse UserFriend
The syntax required by Ant to be considered a valid buildfile.

<project name="My Buildfile" default="build" basedir="..">
<!--rest of your buildfile goes in here..including your default target
build-->
</project>

The root element is the project element.

HTH
Darins

"mike shipkowski" <michael.shipkowski@sas.com> wrote in message
news:cact15$p9m$1@eclipse.org...
> Could you expand on what "root project element." means?? Is this a
> location in the project???
>
>
> Darin Swanson wrote:
>
> > "mike shipkowski" <michael.shipkowski@sas.com> wrote in message
> > news:cacquc$mnh$1@eclipse.org...
> > > Using RC1 I have a user who when selecting on one "build.xml" see the
> > > following when right clicking on the build.xml file.
> > >
> > >
> > > One has Run --> Ant Build
> > > Ant Build
> > > External Tools
>
> > This would be the menu presented if the build.xml has "valid" Ant
buildfile
> > content.
> > That is it has a root element that is a "project".
> > Since the content has been deemed to be a Ant buildfile, the options to
> > perform an Ant build are presented
>
> > > But when selecting a different build.xml file, it just has Run (which
> > > brings up the run config).
> > >
> > This build.xml does not have a root project element.
> > Since the content is not deemed to be an Ant buildfile, no options are
> > presented to perform an Ant build.
>
> > If this is not the case for your user, please log a reproducible test
case
> > against platform ant.
>
> > HTH
> > Darins
>
>
Re: Run Ant oddities [message #164042 is a reply to message #164000] Fri, 11 June 2004 15:27 Go to previous messageGo to next message
Eclipse UserFriend
The problem goes away if a comment prior to the project xml line is
removed....this seems to be an error in thea the comment should be
ignored....


mike shipkowski wrote:

> Could you expand on what "root project element." means?? Is this a
> location in the project???


> Darin Swanson wrote:

> > "mike shipkowski" <michael.shipkowski@sas.com> wrote in message
> > news:cacquc$mnh$1@eclipse.org...
> > > Using RC1 I have a user who when selecting on one "build.xml" see the
> > > following when right clicking on the build.xml file.
> > >
> > >
> > > One has Run --> Ant Build
> > > Ant Build
> > > External Tools

> > This would be the menu presented if the build.xml has "valid" Ant buildfile
> > content.
> > That is it has a root element that is a "project".
> > Since the content has been deemed to be a Ant buildfile, the options to
> > perform an Ant build are presented

> > > But when selecting a different build.xml file, it just has Run (which
> > > brings up the run config).
> > >
> > This build.xml does not have a root project element.
> > Since the content is not deemed to be an Ant buildfile, no options are
> > presented to perform an Ant build.

> > If this is not the case for your user, please log a reproducible test case
> > against platform ant.

> > HTH
> > Darins
Re: Run Ant oddities [message #164074 is a reply to message #164042] Fri, 11 June 2004 15:49 Go to previous message
Eclipse UserFriend
We did have a bug in determination of content type (but I am pretty sure
this was fixed before RC1 and does not sound the same as what you are
describing)
https://bugs.eclipse.org/bugs/show_bug.cgi?id=63298

maybe we have others...
Can you provide a sample buildfile (in a bug or here) so that I can test on
the RC2 candidate?

Thanks
Darins

"mike shipkowski" <michael.shipkowski@sas.com> wrote in message
news:cad12r$tk1$1@eclipse.org...
> The problem goes away if a comment prior to the project xml line is
> removed....this seems to be an error in thea the comment should be
> ignored....
>
>
> mike shipkowski wrote:
>
> > Could you expand on what "root project element." means?? Is this a
> > location in the project???
>
>
> > Darin Swanson wrote:
>
> > > "mike shipkowski" <michael.shipkowski@sas.com> wrote in message
> > > news:cacquc$mnh$1@eclipse.org...
> > > > Using RC1 I have a user who when selecting on one "build.xml" see
the
> > > > following when right clicking on the build.xml file.
> > > >
> > > >
> > > > One has Run --> Ant Build
> > > > Ant Build
> > > > External Tools
>
> > > This would be the menu presented if the build.xml has "valid" Ant
buildfile
> > > content.
> > > That is it has a root element that is a "project".
> > > Since the content has been deemed to be a Ant buildfile, the options
to
> > > perform an Ant build are presented
>
> > > > But when selecting a different build.xml file, it just has Run
(which
> > > > brings up the run config).
> > > >
> > > This build.xml does not have a root project element.
> > > Since the content is not deemed to be an Ant buildfile, no options are
> > > presented to perform an Ant build.
>
> > > If this is not the case for your user, please log a reproducible test
case
> > > against platform ant.
>
> > > HTH
> > > Darins
>
>
Previous Topic:Multiple locations for a JAR sourcepath
Next Topic:Eclipse don't stop in breakpoints
Goto Forum:
  


Current Time: Fri Sep 19 10:54:37 EDT 2025

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

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

Back to the top