blob: ffa9e5ace8bc27451d165a21c7c199c047fc4e86 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright (c) 2005 IBM Corporation and others. -->
<!-- All rights reserved. This program and the accompanying materials -->
<!-- are made available under the terms of the Eclipse Public License v1.0 -->
<!-- which accompanies this distribution, and is available at -->
<!-- http://www.eclipse.org/legal/epl-v10.html -->
<!-- -->
<!-- Contributors: -->
<!-- IBM Corporation - initial API and implementation -->
<project default="gather_examples" basedir=".">
<target name="init">
<property name="workspace.folder" value=".."/>
<property name="examples.destination" value="${basedir}/examples"/>
<property name="examples.icons.destination" value="${basedir}/icons"/>
<!-- IMPORTANT: Include new examples here. Example that is added here must be added as a dependency in plugin.xml of this plugin -->
<patternset id="examples">
<include name="org.eclipse.gmf.examples.runtime.diagram.geoshapes/geoshapes.zip"/>
<include name="org.eclipse.gmf.examples.runtime.diagram.logic/logic.zip"/>
<include name="org.eclipse.gmf.examples.runtime.diagram.logic.model/logicSemantic.zip"/>
<include name="org.eclipse.gmf.examples.runtime.diagram.logic.model.edit/logicSemanticEdit.zip"/>
<include name="org.eclipse.gmf.examples.runtime.diagram.decorator/servicesDecorator.zip"/>
<include name="org.eclipse.gmf.examples.runtime.diagram.layout/servicesLayout.zip"/>
<include name="org.eclipse.gmf.examples.runtime.emf/emf-msl-general.zip"/>
<include name="org.eclipse.gmf.examples.runtime.emf.clipboard/emf-clipboard-copypaste.zip"/>
<include name="org.eclipse.emf.ocl.examples.interpreter/emf-ocl-interpreter.zip"/>
<include name="org.eclipse.emf.query.examples.ocl/emf-ocl-query.zip"/>
<include name="org.eclipse.emf.validation.examples.ocl/emf-ocl-validation.zip"/>
<include name="org.eclipse.emf.query.examples.statements/emf-query-statements.zip"/>
<include name="org.eclipse.emf.validation.examples.adapter/emf-validation-adapter.zip"/>
<include name="org.eclipse.emf.validation.examples/emf-validation-general.zip"/>
<!-- The following zips are for the EXT library metamodel that is required for the model services examples -->
<include name="org.eclipse.emf.examples.library/ext-library.zip"/>
<include name="org.eclipse.emf.examples.library.edit/ext-library-edit.zip"/>
<include name="org.eclipse.emf.examples.library.editor/ext-library-editor.zip"/>
</patternset>
<!-- IMPORTANT: Include new example icons here -->
<patternset id="icons">
<include name="org.eclipse.gmf.examples.runtime.diagram.geoshapes/icons/geoshape.gif"/>
<include name="org.eclipse.gmf.examples.runtime.diagram.logic/icons/logic.gif"/>
<include name="org.eclipse.gmf.examples.runtime.diagram.logic.model/icons/Circuit.gif"/>
<include name="org.eclipse.gmf.examples.runtime.diagram.logic.model.edit/icons/full/obj16/Element.gif"/>
<include name="org.eclipse.gmf.examples.runtime.diagram.decorator/icons/diagram.gif"/>
<include name="org.eclipse.gmf.examples.runtime.diagram.layout/icons/diagram2.gif"/>
<include name="org.eclipse.gmf.examples.runtime.emf.clipboard/icons/copy.gif"/>
<include name="org.eclipse.emf.ocl.examples.interpreter/icons/ocl.gif"/>
<include name="org.eclipse.emf.query.examples.statements/icons/query.gif"/>
<include name="org.eclipse.emf.validation.examples/icons/validate.gif"/>
</patternset>
</target>
<target name="gather_examples" depends="init">
<copy todir="${examples.destination}" flatten="true">
<fileset dir="${workspace.folder}">
<patternset refid="examples"/>
</fileset>
</copy>
<copy todir="${examples.icons.destination}" flatten="true">
<fileset dir="${workspace.folder}">
<patternset refid="icons"/>
</fileset>
</copy>
</target>
</project>