Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Buckminster » Problem migrating from Buckminster 3.6 to 3.7(Different behaviour from 3.6 to 3.7)
Problem migrating from Buckminster 3.6 to 3.7 [message #829355] Mon, 26 March 2012 07:26 Go to next message
Jakob Braeuchi is currently offline Jakob Braeuchi
Messages: 69
Registered: July 2009
Location: Switzerland
Member
hi,

after switching to Eclipse and Buckminster 3.7 we found, that some of our cspex didn't work anymore.
in the following sample we generate a simple file named "generated.txt" in the project directory.
this file is also referenced in the build.properties of the project.

when invoking the buckminster action "bundle.jar" the generated file is packed (as expected) into the resulting jar file when using Buckminster 3.6.
when we do the same with Buckminster 3.7 the generated file is NOT included in the jar although it's available in the project directory.

the cspex:
<?xml version="1.0" encoding="UTF-8"?>
<cspecExtension xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:bc="http://www.eclipse.org/buckminster/Common-1.0" xmlns="http://www.eclipse.org/buckminster/CSpec-1.0">
	<actions>
		<private name="clean.folder" actor="ant">
			<actorProperties>
				<property key="buildFile" value="build/make.ant" />
				<property key="targets" value="clean.folder" />
			</actorProperties>
			<properties>
				<property key="gen.file" value="generated.txt" />
			</properties>
		</private>
		<private name="tst.bundle" actor="ant">
			<actorProperties>
				<property key="buildFile" value="build/make.ant" />
				<property key="targets" value="tst.bundle" />
			</actorProperties>
	        <products alias="gen.file" base="${buckminster.home}">
                        <path path="generated.txt"/>
                </products>
		<prerequisites>
			<attribute name="clean.folder" />
		</prerequisites>
		</private>
	</actions>
	<alterActions>
		<public name="bundle.jar">
			<alterPrerequisites>
				<attribute name="tst.bundle" />
			</alterPrerequisites>
		</public>
	</alterActions>
</cspecExtension>


build.properties with generated.txt:
source.. = src/java/
output.. = classes/
bin.includes = META-INF/,\
               .,\
               generated.txt


a complete sample project is included in the attached archive.

thanks
jakob

[Updated on: Mon, 26 March 2012 07:27]

Report message to a moderator

Re: Problem migrating from Buckminster 3.6 to 3.7 [message #849409 is a reply to message #829355] Thu, 19 April 2012 05:49 Go to previous message
Jakob Braeuchi is currently offline Jakob Braeuchi
Messages: 69
Registered: July 2009
Location: Switzerland
Member
bump, no one ?
Previous Topic:Materialize from SVN branch
Next Topic:[solved] RCP Build fails
Goto Forum:
  


Current Time: Thu Oct 23 20:44:08 GMT 2014

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

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