|
|
Re: buckminster.postbind? [message #739143 is a reply to message #738954] |
Mon, 17 October 2011 06:14 |
|
On 2011-10-17 02:18, Philip Bedingfield wrote:
> I'd like to know the answer to this as well. I want to run some java code after it is bound to the workplace.
>
> Anyone? A workaround perhaps?
One thing that you could try is to use a .cspex to add a prerequisite to the generated 'eclipse.build' action. If I'm
not mistaking, such a prerequisite will execute just prior to the eclipse build which means that it will kick in after
the bind. It's not a one time action (it happens on every perform) but that shouldn't matter if all that it does is a
refresh.
- thomas
|
|
|
|
|
|
|
Re: buckminster.postbind? [message #788018 is a reply to message #787346] |
Wed, 01 February 2012 08:50 |
|
Hi Jakob,
Buckminster builds are issued as actions. Either from the Buckminster menu in the IDE or by use of the headless perform
command. What you do with your 'my.build' function is exactly right. It will be called after the eclipse.build action
has executed.
Perhaps you want something to execute during the the Eclipse incremental build phase? You can do that too, but not from
a CSpec. You're then entering the domain of eclipse builders and they are defined in the .project file of the Eclipse
project. The 'eclipse.build' in Buckminster will call the Eclipse builder which in turn uses those definitions. You can
read more about that here:
http://www.eclipse.org/articles/Article-Builders/builders.html
HTH,
- thomas
On 01/31/2012 02:30 PM, Jakob Braeuchi wrote:
> hi,
>
> i would like to implement some kind of post.build functionality. this works with the proprietary my.build action:
>
>
> <public name="my.build" actor="null">
> <prerequisites>
> <attribute name="eclipse.build" />
> <attribute name="datapackage.export" /> <attribute name="datapackage.update" />
> </prerequisites>
> </public>
>
>
> but how can i enhance the existing eclipse.build action with my additional stuff. using alterAction i can only set
> prerequisites, there's no postrequistes.
>
> thanks for your help
> jakob
|
|
|
|
|
|
|
|
|
|
|
|
Re: buckminster.postbind? [message #792904 is a reply to message #792658] |
Tue, 07 February 2012 14:53 |
|
Jakob,
The eclipse.build is an internal action that represents the workspace build. It cannot be replaced with a group. You can
add a new group that uses the eclipse.build as a prerequisite and adds additional things though.
Regards,
Thomas Hallgren
On 02/07/2012 09:44 AM, Jakob Braeuchi wrote:
> hi henrik,
>
> i replaced my action eclipse.build with a group with the same name.
> unfortunately the group does not work.
>
>
> ...
> <groups>
> <!-- overwrite eclipse.build -->
> <public name="eclipse.build"> <attribute name="original.eclipse.build"/>
> <attribute name="get.datapackage"/>
> </public>
> </groups>
>
> <artifacts>
> <public name="datapackage" path="datapackage/datapackage.xml" />
> <private name="admin.services.lib" path="lib/ch.rtc.bdv.admin.services.interfaces.jar" /> </artifacts>
>
> <alterActions>
> <!-- overwrite eclipse.build -->
> <rename oldName="eclipse.build" newName="original.eclipse.build"/>
> </alterActions>
>
>
> i get an error during the build:
>
> ERROR [0003] : java.lang.ClassCastException: org.eclipse.buckminster.core.cspec.model.Group cannot be cast to
> org.eclipse.buckminster.core.cspec.model.Action
>
> btw i do not understand why the renamed eclipse.build action complains about a missing actor; is this a bug ?
>
> thanks
> jakob
>
|
|
|
Re: buckminster.postbind? [message #793180 is a reply to message #792904] |
Tue, 07 February 2012 21:24 |
Jakob Braeuchi Messages: 69 Registered: July 2009 Location: Switzerland |
Member |
|
|
hi thomas,
my first try was to replace eclipse.build with my own action, but then the actor was missing in the renamed action.
Action ch.rtc.bdv.data:osgi.bundle$1.0.0.qualifier#original.eclipse.build refers to actor with id null but no such actor has been registered with extension-point org.eclipse.buckminster.core.actors
thanks
jakob
[Updated on: Tue, 07 February 2012 21:24] Report message to a moderator
|
|
|
Re: buckminster.postbind? [message #793187 is a reply to message #793180] |
Tue, 07 February 2012 21:31 |
|
Hi Jakob,
You cannot replace the eclipse.build action. It's an internal action that acts as a placeholder for the workspace
builder. Think of it as a hook to that builder. You can either call it directly or use it as a prerequisite in other
actions. That's it.
- thomas
On 02/07/2012 10:24 PM, Jakob Braeuchi wrote:
> hi thomas,
>
> my first try was to replace eclipse.build with my own action, but then actor was missing in the renamed action.
> Action ch.rtc.bdv.data:osgi.bundle$1.0.0.qualifier#original.eclipse.build refers to actor with id null but no such actor
> has been registered with extension-point org.eclipse.buckminster.core.actors
>
>
> thanks jakob
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04796 seconds