Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Buckminster » How to get Qualifier from build
How to get Qualifier from build [message #760712] Sun, 04 December 2011 16:09 Go to next message
Thomas Kratz is currently offline Thomas KratzFriend
Messages: 163
Registered: July 2009
Senior Member
Is there a way to write the qualifier used in the current build to a file for example?
Re: How to get Qualifier from build [message #760760 is a reply to message #760712] Mon, 05 December 2011 06:38 Go to previous message
Jakob Braeuchi is currently offline Jakob BraeuchiFriend
Messages: 69
Registered: July 2009
Location: Switzerland
hi thomas,

you can extract the qualifier from a bundle manifest using an ant script:


	<macrodef name="extractManifestVersion">
		<attribute name="file" />
		<attribute name="property" />
			<loadfile property="@{property}" srcfile="@{file}">
						<contains value="Bundle-Version:"/>		
					<replaceregex pattern="^Bundle-Version: \d+\.\d+\.\d+\.(.*)" replace="\1" />

	<target name="setProductVersion">
		<extractManifestVersion file="${}" property="bundle.version" />
		<echo>Set version in ${} to '${bundle.version}'</echo>
		<replace file="${}" token="%REL_Nr%" value="${bundle.version}" />


the ant target above extracts the qualifier from the bundle version and writes it to a file.

Previous Topic:How to discard qualifier
Next Topic:Can't install Buckminster Headless
Goto Forum:

Current Time: Thu Oct 27 17:16:34 GMT 2016

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

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