Call action after action completes [message #542444] |
Thu, 24 June 2010 17:03  |
Eclipse User |
|
|
|
Hello,
After I call create.product action I need to remove some files from a plugin that was build. I was thinking of creating an action that calls ant script to do this, but not sure where to call this action after create.product finishes. Action I want to call is remove.j2ee. Here is my cspex file:
<?xml version="1.0" encoding="UTF-8"?>
<cspecExtension xmlns:com="http://www.eclipse.org/buckminster/Common-1.0"
xmlns="http://www.eclipse.org/buckminster/CSpec-1.0">
<actions>
<!-- actions that removes j2ee.jar from common -->
<public name="remove.j2ee" actor="ant">
<actorProperties>
<property key="cleanUp" value="build/cleanUp.xml" />
<property key="targets" value="removeJ2ee" />
</actorProperties>
</public>
<public name="create.product" actor="ant">
<actorProperties>
<property key="buildFile" value="build/product.ant" />
<property key="targets" value="create.product" />
<property key="removej2ee" value="remove.j2ee" />
</actorProperties>
<properties>
<property key="profile" value="iitProfile" />
<property key="iu" value="iit.product" />
</properties>
<prerequisites alias="repository">
<attribute name="site.p2" />
</prerequisites>
<products alias="destination" base="${buckminster.output}">
<path path="integrationtools.${target.os}.${target.arch}/" />
</products>
</public>
<public name="create.product.zip" actor="ant">
<actorProperties>
<property key="buildFileId" value="buckminster.pdetasks" />
<property key="targets" value="create.zip" />
</actorProperties>
<prerequisites alias="action.requirements">
<attribute name="create.product" />
</prerequisites>
<products alias="action.output" base="${buckminster.output}">
<path
path="integrationtools.${target.ws}.${target.os}.${target.arch}.zip" />
</products>
</public>
</actions>
</cspecExtension>
Also, is this the right approach or there is easier/better way to do this?
thanks,
Alex
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.07620 seconds