forked from vaadin/vaadin-deps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommon.xml
26 lines (22 loc) · 892 Bytes
/
common.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?xml version="1.0"?>
<project name="common" basedir="." default=""
xmlns:ivy="antlib:org.apache.ivy.ant">
<dirname property="project.root" file="${ant.file.common}" />
<fileset id="osgi-export.libs" dir="${project.root}/lib"
includes="*.jar" />
<property name="version" value="1.0-SNAPSHOT" />
<property name="vendor" value="Vaadin Ltd" />
<target name="pom.xml">
<fail unless="pom.file" message="No pom.file parameter given" />
<fail unless="module.name" message="No module.name parameter given" />
<fail unless="version" message="No version parameter given" />
<copy file="${project.root}/pom-template.xml" tofile="${pom.file}">
<filterchain>
<replacetokens begintoken="@" endtoken="@">
<token key="version" value="${version}" />
<token key="module.name" value="${module.name}" />
</replacetokens>
</filterchain>
</copy>
</target>
</project>