Jump to: navigation, search

Difference between revisions of "0.1.0.v20070520 Release Notes (Buckminster)"

(What you need to do)
Line 4: Line 4:
  
 
=What you need to do=
 
=What you need to do=
* If you have written your own actions that make use of an "ant" actor, please follow the directions on [[Ant actor API (Buckminster)|Ant actor API]] page.
+
* If you have written your own actions that make use of an "ant" actor, please read up on the documentation of [[Ant actor API (Buckminster)|Ant actor API]] and make necessary changes to your scripts. Here are some examples:
 +
 
 +
====Example using filesetgroup====
 +
If you used the buckminster.filesetgroup and you used to write:
 +
<pre>
 +
<buckminster.filesetgroup refid="some.name.filesetgroup"/>
 +
</pre>
 +
 
 +
Replace it with:
 +
<pre>
 +
<buckminster.filesetgroup value="${fs:some.name}"/>
 +
</pre>
 +
 
 +
====Example using singleton====
 +
If you used to rely on buckminsters ability to pass singleton prerequisites or products in a property and wrote things like:
 +
<pre>
 +
<mkdir dir="${some.singleton}"/>
 +
</pre>
 +
 
 +
Replace with:
 +
<pre>
 +
<mkdir dir="${sp:some.singleton}"/>
 +
</pre>
 +
 
 +
====Example using fileset====
 +
If you used a property that appointed a folder containing one single file that you don't know the name of and want it expanded and wrote things similar to:
 +
<pre>
 +
<pathconvert property="input.file">
 +
    <path>
 +
        <fileset dir="${requirement}" includes="*.zip"/>
 +
    </path>
 +
</pathconvert>
 +
</pre>
 +
 
 +
Replace with:
 +
<pre>
 +
<buckminster.valuefileset value="${fs:requirement}" id="requirement.fileset"/>
 +
<pathconvert property="input.file">
 +
    <path>
 +
        <fileset refid="requirement.fileset"/>
 +
    </path>
 +
</pathconvert>
 +
</pre>
  
 
[[Category:Buckminster]]
 
[[Category:Buckminster]]
 
[[Category:Buckminster release notes]]
 
[[Category:Buckminster release notes]]

Revision as of 05:06, 21 May 2007

< To: Buckminster Project

What has changed in this build?

  • Ant actor API - Buckminster will no longer use Ant "fileset" references to pass requirement and products information to the Ant runtime.

What you need to do

  • If you have written your own actions that make use of an "ant" actor, please read up on the documentation of Ant actor API and make necessary changes to your scripts. Here are some examples:

Example using filesetgroup

If you used the buckminster.filesetgroup and you used to write:

<buckminster.filesetgroup refid="some.name.filesetgroup"/>

Replace it with:

<buckminster.filesetgroup value="${fs:some.name}"/>

Example using singleton

If you used to rely on buckminsters ability to pass singleton prerequisites or products in a property and wrote things like:

<mkdir dir="${some.singleton}"/>

Replace with:

<mkdir dir="${sp:some.singleton}"/>

Example using fileset

If you used a property that appointed a folder containing one single file that you don't know the name of and want it expanded and wrote things similar to:

<pathconvert property="input.file">
    <path>
        <fileset dir="${requirement}" includes="*.zip"/>
    </path>
</pathconvert>

Replace with:

<buckminster.valuefileset value="${fs:requirement}" id="requirement.fileset"/>
<pathconvert property="input.file">
    <path>
        <fileset refid="requirement.fileset"/>
    </path>
</pathconvert>