core-extras.xml revision bf5156a896cd0169ffb3a1fd145c114ddab0538c
<?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>