33
2
mirror of https://github.com/joomla-extensions/jedchecker.git synced 2024-11-13 08:46:31 +00:00
jedchecker/builds/plugin.xml
2012-05-21 10:33:11 +02:00

65 lines
2.4 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!--
Generic build plugin
${plugin} should be mod_something...
-->
<project name="plugin" default="buildPlugin">
<target name="buildPlugin">
<explode propertyName="pluginType" string="${plugin}" delimiter="_" key="1" />
<explode propertyName="pluginName" string="${plugin}" delimiter="_" key="2" />
<!--do we have a media folder?-->
<available file="${dirs.source}\media\${plugin}"
type="dir" property="mod.media.exist" value="yes"/>
<if>
<equals arg1="${adminLang.exist}" arg2="1"/>
<then>
<copy todir="${destination.dir}/plugins/${pluginType}/${pluginName}/administrator/language/">
<fileset dir="${dirs.source}/administrator/language/">
<include name="**/*.${plugin}.**"/>
</fileset>
</copy>
</then>
</if>
<copy todir="${destination.dir}/plugins/${pluginType}/${pluginName}">
<fileset dir="${dirs.source}/plugins/${pluginType}/${pluginName}" includes="**/*.*"/>
</copy>
<if>
<equals arg1="${mod.media.exist}" arg2="1"/>
<then>
<copy todir="${destination.dir}/modules/${pluginType}/${pluginName}/media/${plugin}">
<fileset dir="${dirs.source}/media/${plugin}">
<include name="**/*.*"/>
<exclude name="kml/*.*"/>
</fileset>
</copy>
</then>
</if>
<copy file="${dirs.source}/plugins/${pluginType}/${pluginName}/${pluginName}.xml"
tofile="${destination.dir}/plugins/${pluginType}/${pluginName}/${pluginName}.xml" overwrite="true">
<filterchain>
<replacetokens begintoken="@@" endtoken="@@">
<token key="DATE" value="${build.date}"/>
<token key="VERSION" value="${build.version}"/>
<token key="PLUGINNAME" value="${plugin}"/>
</replacetokens>
</filterchain>
</copy>
<extfile file="${destination.dir}/plugins/${pluginType}/${pluginName}/${pluginName}.xml"
sourceDir="${dirs.source}/plugins/${pluginType}/${pluginName}"
component="${plugin}"
type="plugin"
/>
</target>
</project>