Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Buckminster » buckminster build does not call custom action but perform does
buckminster build does not call custom action but perform does [message #519136] Sat, 06 March 2010 23:25 Go to next message
Patrick Ruckstuhl is currently offline Patrick RuckstuhlFriend
Messages: 65
Registered: July 2009
Member
Sorry for the many questions but even after reading the book I'm still stuck with a couple of things and it is kind of hard (for me at least) to find out what's going on and where something goes wrong.

I have a custom action specified in a cspex of an eclipse plugin

        <actions>
                <!-- Place your Actions here -->
                <public name="aranea.generate" actor="jdt.ant" always="true">
                        <actorProperties>
                                <property key="buildFile" value="build.xml" />
                                <property key="targets" value="generate"/>
                        </actorProperties>
                        <products>
                                <path path="src-gen" />
                        </products>
                </public>
        </actions>
...
        <alterGroups>
                <!-- Place your Group alterations here -->
                <public name="eclipse.build.source">
                        <attribute name="aranea.generate"/>
                </public>
        </alterGroups>


When I run
buckminster build


the action is not run. If I run

buckminster perform ...#eclipse.build


the action is performed.

What am I doing wrong?
Re: buckminster build does not call custom action but perform does [message #519165 is a reply to message #519136] Sun, 07 March 2010 16:34 Go to previous messageGo to next message
Achim Demelt is currently offline Achim DemeltFriend
Messages: 160
Registered: July 2009
Senior Member
Hi Patrick,

The "build" command simply invokes the workspace's build mechanism. It
doesn't care about actions or any other properties defined for components,
or even the CSPEC/CSPEX, for that matter. Only the "perform" command does
that job, so it's natural that only the "perform" command picks up your
advised action from the CSPEX. If you want something to happen as part of
the regular workspace build process --- and this includes building in the
IDE --- you'll have to use a builder.

HTH,
Achim

Patrick Ruckstuhl wrote:

> Sorry for the many questions but even after reading the book I'm still
> stuck with a couple of things and it is kind of hard (for me at least) to
> find out what's going on and where something goes wrong.
>
> I have a custom action specified in a cspex of an eclipse plugin
>
>
> <actions>
> <!-- Place your Actions here -->
> <public name="aranea.generate" actor="jdt.ant"
> always="true">
> <actorProperties>
> <property key="buildFile"
> value="build.xml" /> <property
> key="targets" value="generate"/>
> </actorProperties>
> <products>
> <path path="src-gen" />
> </products>
> </public>
> </actions>
> ..
> <alterGroups>
> <!-- Place your Group alterations here -->
> <public name="eclipse.build.source">
> <attribute name="aranea.generate"/>
> </public>
> </alterGroups>
>
>
> When I run
>
> buckminster build
>
>
> the action is not run. If I run
>
>
> buckminster perform ...#eclipse.build
>
>
> the action is performed.
>
> What am I doing wrong?
Re: buckminster build does not call custom action but perform does [message #519172 is a reply to message #519136] Sun, 07 March 2010 18:14 Go to previous messageGo to next message
Patrick Ruckstuhl is currently offline Patrick RuckstuhlFriend
Messages: 65
Registered: July 2009
Member
Thanks for the information. In my case a perform is exactly what I need.

Does the reverse apply? So does a perform of "eclipse.build" do the same as calling buckminster build?

Thanks
Re: buckminster build does not call custom action but perform does [message #519234 is a reply to message #519172] Mon, 08 March 2010 03:28 Go to previous message
Achim Demelt is currently offline Achim DemeltFriend
Messages: 160
Registered: July 2009
Senior Member
The build command builds all projects in the workspace, whereas the
eclipse.build action only builds the component it is invoked on, and
(potentially) its dependencies.

Achim

Patrick Ruckstuhl wrote:

> Thanks for the information. In my case a perform is exactly what I need.
>
> Does the reverse apply? So does a perform of "eclipse.build" do the same
> as calling buckminster build?
>
> Thanks
Previous Topic:site.p2/ contains non-packed and packed jars
Next Topic:'remembering' problem
Goto Forum:
  


Current Time: Fri Apr 19 21:30:26 GMT 2024

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

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

Back to the top