blob: 790da0db51da53b832e39bbf1bcad20d03e91c51 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2005, 2019 SAP SE
All rights reserved. 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
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<name>Releng</name>
<groupId>org.eclipse.graphiti</groupId>
<artifactId>releng</artifactId>
<version>0.18.0-SNAPSHOT</version>
<packaging>pom</packaging>
<build>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>CopyToLastSuccessArea</id>
<phase>install</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<echo message="Deleting old ZIP archive from last_success area"/>
<delete dir="${WORKSPACE}/last_success/archive/" failonerror="false"/>
<echo message="Deleting old update site from last_success area"/>
<delete dir="${WORKSPACE}/last_success/updatesite/" failonerror="false"/>
<echo message="Copying updatesite.zip to last_success area"/>
<copy todir="${WORKSPACE}/last_success/archive/">
<fileset dir="${WORKSPACE}/graphiti/org.eclipse.graphiti/features/org.eclipse.graphiti.site/target/" includes="org.eclipse.graphiti.site-*.zip" />
</copy>
<echo message="Unpacking archive to last_success updatesite area"/>
<unzip src="${WORKSPACE}/graphiti/org.eclipse.graphiti/features/org.eclipse.graphiti.site/target/org.eclipse.graphiti.site-0.18.0-SNAPSHOT.zip" dest="${WORKSPACE}/last_success/updatesite/"/>
</tasks>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>