Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Builders do not follow displayed order
Builders do not follow displayed order [message #169709] Wed, 21 July 2004 18:00 Go to next message
Eclipse UserFriend
Folks,

I'm in the process of moving from Eclipse 2.1 to 3.0. Our project build
consists of 3 steps: 1. an ANT pre compile operation, 2. the Java builder,
and
3. an ANT post compile operation. These must be performed in order.

Under 2.1, these executed in order (1, 2, 3) and all worked fine.

Under 3.0, the order is not being forced as displayed in the Builders
dialog...the build is failing miserably. The ordered executed appears to
be 1, 3, 2.

How to I force the order of build displayed in the Builders dialog within
Eclipse 3.0?

Cheers,
Re: Builders do not follow displayed order [message #169846 is a reply to message #169709] Thu, 22 July 2004 20:34 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: vladimir.none.com

That's odd. Are you adding these ant builders through external tools? Are
you sure that your ant builder points to appropriate ant targets? Do
everything again from scratch...

Cheers.
Re: Builders do not follow displayed order [message #169852 is a reply to message #169846] Fri, 23 July 2004 04:06 Go to previous messageGo to next message
Eclipse UserFriend
You have all of the Ant builders set to run in the foreground?
Ensure that the "Launch in background" option on the Build Options tab is
not toggled

HTH
Darins

"vladimir" <vladimir@none.com> wrote in message
news:cdpmeu$v5v$1@eclipse.org...
> That's odd. Are you adding these ant builders through external tools? Are
> you sure that your ant builder points to appropriate ant targets? Do
> everything again from scratch...
>
> Cheers.
>
Re: Builders do not follow displayed order [message #170061 is a reply to message #169852] Mon, 26 July 2004 14:49 Go to previous messageGo to next message
Eclipse UserFriend
I've just tried all of Darin's and Vladimir's suggestions. No
change...build is failing badly. Problem is actually worse than I
originally described. Instead of running the displayed build order of:

1. Ant target pre compile
2. Eclipse Java build
3. Ant target post compile.

....what I'm seeing is : 1, 3, 2, 1, 3.

???

"Darin Swanson" <Darin_Swanson@us.ibm.com> wrote in message
news:cdqd8b$trm$1@eclipse.org...
> You have all of the Ant builders set to run in the foreground?
> Ensure that the "Launch in background" option on the Build Options tab is
> not toggled
>
> HTH
> Darins
>
> "vladimir" <vladimir@none.com> wrote in message
> news:cdpmeu$v5v$1@eclipse.org...
> > That's odd. Are you adding these ant builders through external tools?
Are
> > you sure that your ant builder points to appropriate ant targets? Do
> > everything again from scratch...
> >
> > Cheers.
> >
>
>
Re: Builders do not follow displayed order [message #170069 is a reply to message #170061] Mon, 26 July 2004 15:28 Go to previous messageGo to next message
Eclipse UserFriend
Did you configure the "working set of relevant resources" in your two Ant
builds?

I have a build configuration that is a subset of this, only steps 1 & 2. I
was also seeing step 1 repeat after the Java builder, until I narrowed the
working set to the source files relevant to the Ant build. I believe that
the default is the entire project, so the Java build modifies the bin dir,
which triggers a new build of the Ant builder.

Can't explain why 3 runs before 2...

-- Dave

"P Duffy" <paduffy@cisco.com> wrote in message
news:ce3jl9$pir$1@eclipse.org...
> I've just tried all of Darin's and Vladimir's suggestions. No
> change...build is failing badly. Problem is actually worse than I
> originally described. Instead of running the displayed build order of:
>
> 1. Ant target pre compile
> 2. Eclipse Java build
> 3. Ant target post compile.
>
> ...what I'm seeing is : 1, 3, 2, 1, 3.
>
> ???
>
> "Darin Swanson" <Darin_Swanson@us.ibm.com> wrote in message
> news:cdqd8b$trm$1@eclipse.org...
> > You have all of the Ant builders set to run in the foreground?
> > Ensure that the "Launch in background" option on the Build Options tab
is
> > not toggled
> >
> > HTH
> > Darins
> >
> > "vladimir" <vladimir@none.com> wrote in message
> > news:cdpmeu$v5v$1@eclipse.org...
> > > That's odd. Are you adding these ant builders through external tools?
> Are
> > > you sure that your ant builder points to appropriate ant targets? Do
> > > everything again from scratch...
> > >
> > > Cheers.
> > >
> >
> >
>
>
Re: Builders do not follow displayed order [message #170090 is a reply to message #170069] Mon, 26 July 2004 17:14 Go to previous messageGo to next message
Eclipse UserFriend
My step 1 is ANT creating a dir structure and running JavaCC to build a few
..java source files from a syntax description.
Step 2 is the full Java source compile (includes those files generated in
step 1).
Step 3 is basically ANT moving files around to enable run/debug.

This all worked fine under 2.1

"Dave Carlson" <dcarlson@xmlmodeling.com> wrote in message
news:ce3ltt$ton$1@eclipse.org...
> Did you configure the "working set of relevant resources" in your two Ant
> builds?

No. We didn't touch anything when we moved from 2.1 to 3.0

>
> I have a build configuration that is a subset of this, only steps 1 & 2.
I
> was also seeing step 1 repeat after the Java builder, until I narrowed the
> working set to the source files relevant to the Ant build. I believe that
> the default is the entire project, so the Java build modifies the bin dir,
> which triggers a new build of the Ant builder.
>
> Can't explain why 3 runs before 2...

Looks like it runs all the the ANT steps, does the Java Build, then runs all
the ANT steps again.
>
> -- Dave
>
> "P Duffy" <paduffy@cisco.com> wrote in message
> news:ce3jl9$pir$1@eclipse.org...
> > I've just tried all of Darin's and Vladimir's suggestions. No
> > change...build is failing badly. Problem is actually worse than I
> > originally described. Instead of running the displayed build order of:
> >
> > 1. Ant target pre compile
> > 2. Eclipse Java build
> > 3. Ant target post compile.
> >
> > ...what I'm seeing is : 1, 3, 2, 1, 3.
> >
> > ???
> >
> > "Darin Swanson" <Darin_Swanson@us.ibm.com> wrote in message
> > news:cdqd8b$trm$1@eclipse.org...
> > > You have all of the Ant builders set to run in the foreground?
> > > Ensure that the "Launch in background" option on the Build Options tab
> is
> > > not toggled
> > >
> > > HTH
> > > Darins
> > >
> > > "vladimir" <vladimir@none.com> wrote in message
> > > news:cdpmeu$v5v$1@eclipse.org...
> > > > That's odd. Are you adding these ant builders through external
tools?
> > Are
> > > > you sure that your ant builder points to appropriate ant targets? Do
> > > > everything again from scratch...
> > > >
> > > > Cheers.
> > > >
> > >
> > >
> >
> >
>
>
Re: Builders do not follow displayed order [message #170270 is a reply to message #170090] Tue, 27 July 2004 10:03 Go to previous messageGo to next message
Eclipse UserFriend
Is your step 1 creating java files in a java source dir for the project?
If not, it won't trigger the java build.

Also -- does your step 1 refresh the project? If not, it won't trigger
the java build.

So...

my guess would be

1) builder 1 is triggered because some non-java code was modified
(javacc grammar, perhaps), but step 1 isn't refreshing.

2) builder 2 is *not* triggered because eclipse doesn't see any java
files in a source dir changing

3) builder 3 is triggered for the same reason as step 1, but refreshes
the project after running

4) builder 2 is invoked because step 3 refreshed and now eclipse sees
java file changes (however those changes aren't in the working set of
step 1...)

5) builder 1 is triggered because it's watching the output dir(s), which
is changed by step 2

6) builder 3 is triggered because it sees changes made by builder 1, and
refreshes

7) no trigger files have changed so we're done

I don't know if that's exactly what is happening, but that may give you
something to work with... I've had similar fun when working with (the
vastly superior) ANTLR.

Ok, so I'm biased because I contributed to ANTLR ;)

Anyway, hope this helps a bit...

- Scott




In article <ce3s4d$8ab$1@eclipse.org>, paduffy@cisco.com says...
> My step 1 is ANT creating a dir structure and running JavaCC to build a few
> .java source files from a syntax description.
> Step 2 is the full Java source compile (includes those files generated in
> step 1).
> Step 3 is basically ANT moving files around to enable run/debug.
>
> This all worked fine under 2.1
>
> "Dave Carlson" <dcarlson@xmlmodeling.com> wrote in message
> news:ce3ltt$ton$1@eclipse.org...
> > Did you configure the "working set of relevant resources" in your two Ant
> > builds?
>
> No. We didn't touch anything when we moved from 2.1 to 3.0
>
> >
> > I have a build configuration that is a subset of this, only steps 1 & 2.
> I
> > was also seeing step 1 repeat after the Java builder, until I narrowed the
> > working set to the source files relevant to the Ant build. I believe that
> > the default is the entire project, so the Java build modifies the bin dir,
> > which triggers a new build of the Ant builder.
> >
> > Can't explain why 3 runs before 2...
>
> Looks like it runs all the the ANT steps, does the Java Build, then runs all
> the ANT steps again.
> >
> > -- Dave
> >
> > "P Duffy" <paduffy@cisco.com> wrote in message
> > news:ce3jl9$pir$1@eclipse.org...
> > > I've just tried all of Darin's and Vladimir's suggestions. No
> > > change...build is failing badly. Problem is actually worse than I
> > > originally described. Instead of running the displayed build order of:
> > >
> > > 1. Ant target pre compile
> > > 2. Eclipse Java build
> > > 3. Ant target post compile.
> > >
> > > ...what I'm seeing is : 1, 3, 2, 1, 3.
> > >
> > > ???
> > >
> > > "Darin Swanson" <Darin_Swanson@us.ibm.com> wrote in message
> > > news:cdqd8b$trm$1@eclipse.org...
> > > > You have all of the Ant builders set to run in the foreground?
> > > > Ensure that the "Launch in background" option on the Build Options tab
> > is
> > > > not toggled
> > > >
> > > > HTH
> > > > Darins
> > > >
> > > > "vladimir" <vladimir@none.com> wrote in message
> > > > news:cdpmeu$v5v$1@eclipse.org...
> > > > > That's odd. Are you adding these ant builders through external
> tools?
> > > Are
> > > > > you sure that your ant builder points to appropriate ant targets? Do
> > > > > everything again from scratch...
> > > > >
> > > > > Cheers.
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>
>
Re: Builders do not follow displayed order [message #170285 is a reply to message #170270] Tue, 27 July 2004 10:34 Go to previous message
Eclipse UserFriend
"Scott Stanchfield" <scott@javadude.com> wrote in message
news:MPG.1b702acc98b978dd989711@news.eclipse.org...
> Is your step 1 creating java files in a java source dir for the project?

Yes

> If not, it won't trigger the java build.
>
> Also -- does your step 1 refresh the project? If not, it won't trigger
> the java build.

Yes

Like I said, this all worked fine under 2.1

>
> So...
>
> my guess would be
>
> 1) builder 1 is triggered because some non-java code was modified
> (javacc grammar, perhaps), but step 1 isn't refreshing.
>
> 2) builder 2 is *not* triggered because eclipse doesn't see any java
> files in a source dir changing
>
> 3) builder 3 is triggered for the same reason as step 1, but refreshes
> the project after running
>
> 4) builder 2 is invoked because step 3 refreshed and now eclipse sees
> java file changes (however those changes aren't in the working set of
> step 1...)
>
> 5) builder 1 is triggered because it's watching the output dir(s), which
> is changed by step 2
>
> 6) builder 3 is triggered because it sees changes made by builder 1, and
> refreshes
>
> 7) no trigger files have changed so we're done
>
> I don't know if that's exactly what is happening, but that may give you
> something to work with... I've had similar fun when working with (the
> vastly superior) ANTLR.
>
> Ok, so I'm biased because I contributed to ANTLR ;)
>
> Anyway, hope this helps a bit...
>
> - Scott
>
>
>
>
> In article <ce3s4d$8ab$1@eclipse.org>, paduffy@cisco.com says...
> > My step 1 is ANT creating a dir structure and running JavaCC to build a
few
> > .java source files from a syntax description.
> > Step 2 is the full Java source compile (includes those files generated
in
> > step 1).
> > Step 3 is basically ANT moving files around to enable run/debug.
> >
> > This all worked fine under 2.1
> >
> > "Dave Carlson" <dcarlson@xmlmodeling.com> wrote in message
> > news:ce3ltt$ton$1@eclipse.org...
> > > Did you configure the "working set of relevant resources" in your two
Ant
> > > builds?
> >
> > No. We didn't touch anything when we moved from 2.1 to 3.0
> >
> > >
> > > I have a build configuration that is a subset of this, only steps 1 &
2.
> > I
> > > was also seeing step 1 repeat after the Java builder, until I narrowed
the
> > > working set to the source files relevant to the Ant build. I believe
that
> > > the default is the entire project, so the Java build modifies the bin
dir,
> > > which triggers a new build of the Ant builder.
> > >
> > > Can't explain why 3 runs before 2...
> >
> > Looks like it runs all the the ANT steps, does the Java Build, then runs
all
> > the ANT steps again.
> > >
> > > -- Dave
> > >
> > > "P Duffy" <paduffy@cisco.com> wrote in message
> > > news:ce3jl9$pir$1@eclipse.org...
> > > > I've just tried all of Darin's and Vladimir's suggestions. No
> > > > change...build is failing badly. Problem is actually worse than I
> > > > originally described. Instead of running the displayed build order
of:
> > > >
> > > > 1. Ant target pre compile
> > > > 2. Eclipse Java build
> > > > 3. Ant target post compile.
> > > >
> > > > ...what I'm seeing is : 1, 3, 2, 1, 3.
> > > >
> > > > ???
> > > >
> > > > "Darin Swanson" <Darin_Swanson@us.ibm.com> wrote in message
> > > > news:cdqd8b$trm$1@eclipse.org...
> > > > > You have all of the Ant builders set to run in the foreground?
> > > > > Ensure that the "Launch in background" option on the Build Options
tab
> > > is
> > > > > not toggled
> > > > >
> > > > > HTH
> > > > > Darins
> > > > >
> > > > > "vladimir" <vladimir@none.com> wrote in message
> > > > > news:cdpmeu$v5v$1@eclipse.org...
> > > > > > That's odd. Are you adding these ant builders through external
> > tools?
> > > > Are
> > > > > > you sure that your ant builder points to appropriate ant
targets? Do
> > > > > > everything again from scratch...
> > > > > >
> > > > > > Cheers.
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
> >
Previous Topic:finally block does not complete normally
Next Topic:importing existing code
Goto Forum:
  


Current Time: Wed May 07 03:00:02 EDT 2025

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

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

Back to the top