| <?xml version="1.0"?> |
| <!-- |
| Copyright (c) 2020 Eclispe contributors and others. |
| All rights reserved. This program and the accompanying materials |
| are made available under the terms of the Eclipse Public License v2.0 |
| which accompanies this distribution, and is available at |
| http://www.eclipse.org/legal/epl-v20.html |
| --> |
| <project name="copyExampleLib" basedir=".."> |
| |
| <property name="examples.path" value="../../org.eclipse.emf/tests/org.eclipse.emf.test.tools/examples" /> |
| <basename file="${build.project}" property="project" /> |
| |
| <macrodef name="copyExample"> |
| <attribute name="project" /> |
| <sequential> |
| <delete includeemptydirs="true" failonerror="false"> |
| <fileset dir="${examples.path}/@{project}"> |
| <include name="**" /> |
| </fileset> |
| </delete> |
| |
| <copy todir="${examples.path}/@{project}" overwrite="true"> |
| <fileset dir="@{project}/examples"> |
| <include name="**" /> |
| </fileset> |
| </copy> |
| </sequential> |
| </macrodef> |
| |
| </project> |