Problem migrating from Buckminster 3.6 to 3.7 [message #829355] |
Mon, 26 March 2012 07:26 |
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
|
|
|
|
Powered by
FUDForum. Page generated in 0.02719 seconds