<?xml version="1.0" encoding="UTF-8"?>
<project name="ch.sahits.codegen.sdk" default="zip.sources" basedir=".">
<property name="version" value="2.1.0"/>
<target name="init">
<property name="feature.temp.folder" value="${basedir}/feature.temp.folder"/>
<property name="feature.destination" value="${basedir}"/>
</target>
<target name="all.plugins" depends="init">
<ant antfile="sdk-build.xml" dir="../ch.sahits.codegen.microsoft" target="${target}">
</ant>
<ant antfile="sdk-build.xml" dir="../ch.sahits.codegen.core" target="${target}">
</ant>
<ant antfile="sdk-build.xml" dir="../ch.sahits.codegen.help" target="${target}">
</ant>
<ant antfile="sdk-build.xml" dir="../ch.sahits.codegen.java.datatools" target="${target}">
</ant>
<ant antfile="sdk-build.xml" dir="../ch.sahits.codegen.sql" target="${target}">
</ant>
<ant antfile="sdk-build.xml" dir="../ch.sahits.model" target="${target}">
</ant>
<ant antfile="sdk-build.xml" dir="../ch.sahits.codegen.java" target="${target}">
</ant>
<ant antfile="sdk-build.xml" dir="../ch.sahits.codegen.mysql" target="${target}">
</ant>
<ant antfile="sdk-build.xml" dir="../ch.sahits.codegen.oracle" target="${target}">
</ant>
<ant antfile="sdk-build.xml" dir="../ch.sahits.codegen.java.gui" target="${target}">
</ant>
<ant antfile="sdk-build.xml" dir="../ch.sahits.codegen.java.examples" target="${target}">
</ant>
<ant antfile="sdk-build.xml" dir="../ch.sahits.codegen.test" target="${target}">
</ant>
<ant antfile="sdk-build.xml" dir="../ch.sahits.codegen.ui" target="${target}">
</ant>
</target>
<target name="all.features" depends="init">
</target>
<target name="update.feature" depends="init">
</target>
<target name="all.children" depends="init,all.features,all.plugins,update.feature">
</target>
<target name="children" if="include.children">
<antcall target="all.children"/>
</target>
<target name="build.zips" depends="init">
<antcall target="all.children">
<param name="target" value="build.zips"/>
</antcall>
</target>
<target name="zip.sources" depends="init">
<delete dir="${feature.temp.folder}"/>
<mkdir dir="${feature.temp.folder}"/>
<antcall target="all.children">
<param name="target" value="src.zip"/>
</antcall>
<antcall target="all.children">
<param name="target" value="gather.sources"/>
<param name="destination.temp.folder" value="${feature.temp.folder}/plugins/ch.sahits.codegen.sdk.source_${version}/src"/>
<param name="include.children" value="true"/>
</antcall>
<zip destfile="${feature.destination}/ch.sahits.codegen.sdk_${version}.src.zip" basedir="${feature.temp.folder}" filesonly="true" whenempty="skip" update="false"/>
<delete dir="${feature.temp.folder}"/>
</target>
<target name="clean" depends="init" description="Clean the feature: ch.sahits.codegen.sdk of all the zips, jars and logs created.">
<delete file="${feature.destination}/ch.sahits.codegen.sdk_${version}.jar"/>
<delete file="${feature.destination}/ch.sahits.codegen.sdk_${version}.bin.dist.zip"/>
<delete file="${feature.destination}/ch.sahits.codegen.sdk_${version}.log.zip"/>
<delete file="${feature.destination}/ch.sahits.codegen.sdk_${version}.src.zip"/>
<delete dir="${feature.temp.folder}"/>
<antcall target="all.children">
<param name="target" value="clean"/>
</antcall>
</target>
<target name="refresh" depends="init" if="eclipse.running" description="Refresh this folder.">
<eclipse.convertPath fileSystemPath="/home/andi/eclipse/feature_ch.sahits.codegen.sdk/" property="resourcePath"/>
<eclipse.refreshLocal resource="${resourcePath}" depth="infinite"/>
<antcall target="all.children">
<param name="target" value="refresh"/>
</antcall>
</target>
<target name="gather.sources">
<antcall target="children">
<param name="target" value="gather.sources"/>
<param name="destination.temp.folder" value="${feature.temp.folder}/plugins/ch.sahits.codegen.sdk.source_${version}/src"/>
</antcall>
</target>
</project>