Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Buckminster » How to get complete classpath for an action
How to get complete classpath for an action [message #784374] Fri, 27 January 2012 12:37
Jakob Braeuchi is currently offline Jakob BraeuchiFriend
Messages: 69
Registered: July 2009
Location: Switzerland

i have an ant-based buckminster action and i want to execute a java class in this action. the bundle defining the action resides in the workspace and requires other bundles, some in the workspace some in the target-platform. to execute the java class i need the complete classpath for this bundle; but i didn't find a proper solution Sad

as a workaround i defined the referenced bundles in the prerequisites of the action.
the attribute "" points to the bin-folder of the current bundle, to the jar of the referenced bundle (in workspace). the commented bundles reside in the target platform which is added to the classpath in the action's ant-script:

<prerequisites alias="input"> 
 <attribute alias="" name=""/>
 <attribute alias="" name="bundle.jar" component=""/>
 <!--attribute alias="jabas.core" name="bundle.jar" component="ch.rtc.jabas.core"/-->
 <!--attribute alias="jabas.types" name="bundle.jar" component="ch.rtc.jabas.types"/-->

the action's ant-script:

<!-- add bundles and complete target platform to classpath -->
<path id="">
 <pathelement path="${}"/>
 <buckminster.valuefileset value="${}"/>
 <!--pathelement path="${sp:jabas.core}"/-->
 <!--pathelement path="${sp:jabas.types}"/-->
 <fileset dir="${target.location}/plugins">
   <include name="*.jar" />

please note the different handling of "" and "".

this workaround runs as expected, but i hope there's a better, more intuitive way to do it !


[Updated on: Fri, 27 January 2012 12:38]

Report message to a moderator

Previous Topic:Problem with site.p2 action and director
Next Topic:[buckminster headless] Is there an out-of-the-box way to build a product?
Goto Forum:

Current Time: Tue May 22 19:36:30 GMT 2018

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

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

Back to the top