|
1 | | -<!-- |
2 | | - Licensed to the Apache Software Foundation (ASF) under one |
3 | | - or more contributor license agreements. See the NOTICE file |
4 | | - distributed with this work for additional information |
5 | | - regarding copyright ownership. The ASF licenses this file |
6 | | - to you under the Apache License, Version 2.0 (the |
7 | | - "License"); you may not use this file except in compliance |
8 | | - with the License. You may obtain a copy of the License at |
9 | | -
|
10 | | - http://www.apache.org/licenses/LICENSE-2.0 |
11 | | -
|
12 | | - Unless required by applicable law or agreed to in writing, |
13 | | - software distributed under the License is distributed on an |
14 | | - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
15 | | - KIND, either express or implied. See the License for the |
16 | | - specific language governing permissions and limitations |
17 | | - under the License. |
18 | | ---> |
19 | | -<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/xsd/maven-4.0.0.xsd"> |
| 1 | +<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor |
| 2 | + license agreements. See the NOTICE file distributed with this work for additional |
| 3 | + information regarding copyright ownership. The ASF licenses this file to |
| 4 | + you under the Apache License, Version 2.0 (the "License"); you may not use |
| 5 | + this file except in compliance with the License. You may obtain a copy of |
| 6 | + the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required |
| 7 | + by applicable law or agreed to in writing, software distributed under the |
| 8 | + License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS |
| 9 | + OF ANY KIND, either express or implied. See the License for the specific |
| 10 | + language governing permissions and limitations under the License. --> |
| 11 | +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 12 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
20 | 13 | <modelVersion>4.0.0</modelVersion> |
21 | 14 | <artifactId>cloud-patches</artifactId> |
22 | 15 | <name>Apache CloudStack SystemVM Patches</name> |
|
67 | 60 | <defaultGoal>install</defaultGoal> |
68 | 61 | <plugins> |
69 | 62 | <plugin> |
70 | | - <artifactId>maven-assembly-plugin</artifactId> |
71 | | - <version>2.3</version> |
72 | | - <configuration> |
73 | | - <finalName>cloud-scripts</finalName> |
74 | | - <appendAssemblyId>false</appendAssemblyId> |
75 | | - <descriptors> |
76 | | - <descriptor>cloudpatch-descriptor.xml</descriptor> |
77 | | - </descriptors> |
78 | | - </configuration> |
| 63 | + <artifactId>maven-antrun-plugin</artifactId> |
| 64 | + <version>1.7</version> |
79 | 65 | <executions> |
80 | 66 | <execution> |
81 | | - <id>make-cloud-scripts</id> |
82 | | - <phase>package</phase> |
| 67 | + <id>build-cloud-scripts</id> |
| 68 | + <phase>install</phase> |
83 | 69 | <goals> |
84 | | - <goal>single</goal> |
| 70 | + <goal>run</goal> |
85 | 71 | </goals> |
| 72 | + <configuration> |
| 73 | + <target> |
| 74 | + <mkdir dir="${basedir}/target/build-patch" /> |
| 75 | + <mkdir dir="${basedir}/target/build-patch/usr/sbin" /> |
| 76 | + <copy overwrite="true" todir="${basedir}/target/build-patch"> |
| 77 | + <fileset dir="${basedir}/systemvm/debian/config/"> |
| 78 | + <include name="**/*" /> |
| 79 | + </fileset> |
| 80 | + <fileset dir="${basedir}/systemvm/debian/vpn/"> |
| 81 | + <include name="**/*" /> |
| 82 | + </fileset> |
| 83 | + <fileset dir="${basedir}/systemvm/debian/xe/"> |
| 84 | + <include name="**/*" /> |
| 85 | + <exclude name="**/xe-*" /> |
| 86 | + <exclude name="**/xen-*" /> |
| 87 | + </fileset> |
| 88 | + </copy> |
| 89 | + <copy overwrite="true" todir="${basedir}/target/build-patch/usr/sbin/"> |
| 90 | + <fileset dir="${basedir}/systemvm/debian/xe/"> |
| 91 | + <include name="**/xe-*" /> |
| 92 | + <include name="**/xen-*" /> |
| 93 | + </fileset> |
| 94 | + </copy> |
| 95 | + <tar destfile="${basedir}/target/patch.tar"> |
| 96 | + <tarfileset dir="${basedir}/target/build-patch/" |
| 97 | + filemode="755"> |
| 98 | + <include name="**/*" /> |
| 99 | + <exclude name="**/.classpath" /> |
| 100 | + <exclude name="**/.project" /> |
| 101 | + <exclude name="**/wscript_build" /> |
| 102 | + </tarfileset> |
| 103 | + </tar> |
| 104 | + <gzip destfile="${basedir}/target/cloud-scripts.tgz" src="${basedir}/target/patch.tar" /> |
| 105 | + <delete dir="${basedir}/target/build-patch" /> |
| 106 | + <delete file="${basedir}/target/patch.tar" /> |
| 107 | + </target> |
| 108 | + </configuration> |
86 | 109 | </execution> |
87 | 110 | </executions> |
88 | 111 | </plugin> |
|
0 commit comments