Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » 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
Member
hi,

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 "bdv.data" points to the bin-folder of the current bundle, admin.services 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="bdv.data" name="eclipse.build"/>
 <attribute alias="admin.services" name="bundle.jar" component="ch.rtc.bdv.admin.services.interfaces"/>
 <!--attribute alias="jabas.core" name="bundle.jar" component="ch.rtc.jabas.core"/-->
 <!--attribute alias="jabas.types" name="bundle.jar" component="ch.rtc.jabas.types"/-->
</prerequisites>	


the action's ant-script:

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


please note the different handling of "bdv.data" and "admin.services".

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

thanks
jakob

[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 Mar 19 10:08:09 GMT 2024

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

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

Back to the top