diff options
author | Eike Stepper | 2012-09-17 11:33:04 +0000 |
---|---|---|
committer | Eike Stepper | 2012-09-17 11:33:04 +0000 |
commit | 9a7246a8f0eb951349e4fb80b616b6cfd8a87426 (patch) | |
tree | d2a02765a3a41ff1128550da86562f691e5213cd /plugins/org.eclipse.emf.cdo.examples.installer/copyExampleLib.ant | |
parent | a0ff8689e231b70edaed471cc194ad4ab0f1ead7 (diff) | |
download | cdo-9a7246a8f0eb951349e4fb80b616b6cfd8a87426.tar.gz cdo-9a7246a8f0eb951349e4fb80b616b6cfd8a87426.tar.xz cdo-9a7246a8f0eb951349e4fb80b616b6cfd8a87426.zip |
Make example installer builds automatic
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.examples.installer/copyExampleLib.ant')
-rw-r--r-- | plugins/org.eclipse.emf.cdo.examples.installer/copyExampleLib.ant | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/copyExampleLib.ant b/plugins/org.eclipse.emf.cdo.examples.installer/copyExampleLib.ant new file mode 100644 index 0000000000..bf0c8e6b24 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/copyExampleLib.ant @@ -0,0 +1,70 @@ +<?xml version="1.0"?> +<!-- + Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) 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: + Eike Stepper - initial API and implementation +--> +<project name="copyExampleLib" basedir=".."> + + <property name="examples.path" value="org.eclipse.emf.cdo.examples.installer/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}"> + <exclude name=".externalToolBuilders/" /> + <exclude name="database/" /> + <exclude name="bin/" /> + <exclude name=".settings/org.eclipse.mylyn*" /> + <exclude name=".settings/org.eclipse.pde.api.tools.prefs" /> + <exclude name="**/.gitignore" /> + <include name="**" /> + </fileset> + </copy> + + <replaceregexp file="${examples.path}/@{project}/.project" + byline="false" + flags="s" + match="\s*<buildCommand>\s+<name>org.eclipse.ui.externaltools.ExternalToolBuilder.*?</buildCommand>" + replace="" /> + + <replaceregexp file="${examples.path}/@{project}/.project" + byline="false" + flags="s" + match="\s*<buildCommand>\s+<name>org.eclipse.pde.api.tools.apiAnalysisBuilder.*?</buildCommand>" + replace="" /> + + <replaceregexp file="${examples.path}/@{project}/.project" + byline="false" + flags="s" + match="\s*<buildCommand>\s+<name>org.eclipse.emf.cdo.releng.version.VersionBuilder.*?</buildCommand>" + replace="" /> + + <replaceregexp file="${examples.path}/@{project}/.project" + byline="false" + flags="s" + match="\s*<nature>org.eclipse.pde.api.tools.apiAnalysisNature</nature>" + replace="" /> + + <replaceregexp file="${examples.path}/@{project}/.project" + byline="false" + flags="s" + match="\s*<nature>org.eclipse.emf.cdo.releng.version.VersionNature</nature>" + replace="" /> + </sequential> + </macrodef> + +</project> |