<project name="mpsAdditionalPluginsDist" default="build" basedir="../">
  <!-- Generated by MPS -->
  <property name="build.dir" location="build" />
  <property name="build.tmp" location="${build.dir}/tmp/mpsAdditionalPluginsDist" />
  <property name="build.layout" location="${build.dir}/artifacts/mpsAdditionalPluginsDist" />
  <property name="plugin.version" value="1.0.SNAPSHOT" />
  <property name="artifacts.mpsDates" location="${build.dir}/artifacts/mpsDates" />
  <property name="artifacts.mpsDeprecatedBuildlanguage" location="${build.dir}/artifacts/mpsDeprecatedBuildlanguage" />
  <property file="${artifacts.mpsDates}/build.properties" prefix="import.mpsDates" />
  <property name="mpsBootstrapCore.version" value="${import.mpsDates.mpsBootstrapCore.version}" />
  
  <target name="assemble" depends="fetchDependencies">
    <mkdir dir="${build.layout}" />
    <zip destfile="${build.layout}/${plugin.version}-additional-plugin.zip">
      <zipfileset dir="${artifacts.mpsDates}/mps-dates" prefix="mps-dates" />
      <zipfileset dir="${artifacts.mpsDeprecatedBuildlanguage}/mps-build-deprecated" prefix="mps-build-deprecated" />
    </zip>
    <echo file="${build.layout}/build.properties">mpsAdditionalPluginsDist.plugin.version=${plugin.version}${line.separator}mpsBootstrapCore.version=${mpsBootstrapCore.version}</echo>
  </target>
  
  <target name="buildDependents">
    <ant antfile="build/mpsBootstrapCore.xml" inheritAll="false" useNativeBasedir="true" />
    <ant antfile="build/mpsCore.xml" inheritAll="false" useNativeBasedir="true" />
    <ant antfile="build/mpsDates.xml" inheritAll="false" useNativeBasedir="true" />
    <ant antfile="build/mpsDeprecatedBuildlanguage.xml" inheritAll="false" useNativeBasedir="true" />
  </target>
  
  <target name="fetchDependencies" />
  
  <target name="build" depends="assemble" />
  
  <target name="clean">
    <delete dir="${build.tmp}" />
    <delete dir="${build.layout}" />
  </target>
</project>