blob: e92e4e208627f2ac87c10ff83246fad19f732e01 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2023 Willink Transformations and others.
This program and the accompanying materials
are made available under the terms of the Eclipse Public License 2.0
which accompanies this distribution, and is available at
https://www.eclipse.org/legal/epl-2.0/
SPDX-License-Identifier: EPL-2.0
Contributors:
E.D.Willink - initial API and implementation
-->
<!-- This uses Eclipse ANT tasks. It MUST run in the same JRE as the workspace. -->
<project name="org.eclipse.ocl.examples" default="zip.examples" basedir=".">
<target name="init">
</target>
<patternset id="zip.excludes"
excludes="src.zip,build.xml,javaCompiler*,temp.folder/**,@dot/**,target/**"/>
<target name="zip.examples" depends="init">
<!-- OCL examples -->
<!--eclipse.convertPath resourcePath="org.eclipse.ocl.examples.extlibrary" property="projectDir"/-->
<zip destfile="zips/extlibrary.zip" basedir="../org.eclipse.ocl.examples.extlibrary">
<patternset refid="zip.excludes"/>
</zip>
<!--eclipse.convertPath resourcePath="org.eclipse.ocl.examples.interpreter" property="projectDir"/-->
<zip destfile="zips/interpreter.zip" basedir="../org.eclipse.ocl.examples.interpreter">
<patternset refid="zip.excludes"/>
</zip>
<!--eclipse.convertPath resourcePath="org.eclipse.ocl.examples.project.empty" property="projectDir"/-->
<zip destfile="zips/empty.zip" basedir="../org.eclipse.ocl.examples.project.empty">
<patternset refid="zip.excludes"/>
</zip>
<!--eclipse.convertPath resourcePath="org.eclipse.ocl.examples.project.completeocltutorial" property="projectDir"/-->
<zip destfile="zips/completeocltutorial.zip" basedir="../org.eclipse.ocl.examples.project.completeocltutorial">
<patternset refid="zip.excludes"/>
</zip>
<!--eclipse.convertPath resourcePath="org.eclipse.ocl.examples.project.oclinecoretutorial" property="projectDir"/-->
<zip destfile="zips/oclinecoretutorial.zip" basedir="../org.eclipse.ocl.examples.project.oclinecoretutorial">
<patternset refid="zip.excludes"/>
</zip>
<!--eclipse.convertPath resourcePath="org.eclipse.ocl.examples.project.royalandloyal" property="projectDir"/-->
<zip destfile="zips/royalandloyal.zip" basedir="../org.eclipse.ocl.examples.project.royalandloyal">
<patternset refid="zip.excludes"/>
</zip>
</target>
<target name="clean" depends="init" description="Clean the plug-in: org.eclipse.ocl.examples.">
<delete>
<fileset dir="zips" includes="*.zip"/>
</delete>
<antcall target="refresh"/>
</target>
<target name="refresh" depends="init" if="eclipse.running" description="Refresh this folder.">
<eclipse.refreshLocal resource="/org.eclipse.ocl.examples" depth="infinite"/>
</target>
</project>