core-extras.xml revision bc1109485d3d133cb6432ab3116e13496ef0bf47
<?xml version="1.0" encoding="UTF-8"?>
<project name="CoreExtrasBuild">
<macrodef name="prop2array">
<attribute name="from" />
<attribute name="to" />
<sequential>
<if>
<and>
<isset property="@{from}" />
<length string="${@{from}}" when="ne" length="0" />
</and>
<then>
<propertyregex property="array"
override="true"
input="${@{from}}"
casesensitive="false"
regexp="([^\,\s]+)"
replace="'\1'"
/>
<property name="@{to}" value="[${array}]" />
</then>
</if>
</sequential>
</macrodef>
<target name="core">
<for param="file">
<path>
</path>
<sequential>
<echo level="info">Filtering: @{file}, replacing @YUI_CORE@ with:</echo>
<move file="@{file}" tofile="@{file}.tmp" />
<move file="@{file}.tmp" tofile="@{file}">
<filterchain>
<replacetokens>
</replacetokens>
</filterchain>
</move>
</sequential>
</for>
</target>
</project>