This repository has been archived by the owner on Nov 10, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
ci.build.xml
68 lines (58 loc) · 2.55 KB
/
ci.build.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<?xml version="1.0"?>
<!-- Continuous integration related targets -->
<project name="JBoss EL Continuous Integration Support" basedir="." xmlns:artifact="urn:maven-artifact-ant">
<path id="maven-ant-tasks.classpath" path="lib/maven-ant-tasks.jar" />
<typedef resource="org/apache/maven/artifact/ant/antlib.xml" uri="urn:maven-artifact-ant" classpathref="maven-ant-tasks.classpath" />
<artifact:remoteRepository id="jboss-snapshots-repository" url="dav:https://repository.jboss.org/nexus/content/repositories/snapshots">
<authentication username="${username}" password="${password}" />
</artifact:remoteRepository>
<!-- <artifact:remoteRepository id="jboss-staging-repository-group" url="https://repository.jboss.org/nexus/service/local/staging/deploy/maven2">
<authentication username="${username}" password="${password}" />
</artifact:remoteRepository>
-->
<target name="initdav">
<artifact:install-provider artifactId="wagon-webdav" version="1.0-beta-2" />
</target>
<target name="deployJBossELSnapshot" description="Deploy a JBoss EL snapshot to snapshots.jboss.org" depends="initdav">
<deploySnapshot pom="pom.xml" jar="dist/jboss-el.jar" srcjar="dist/jboss-el-sources.jar" />
</target>
<target name="tests">
<build target="clean" />
<build target="test" />
</target>
<target name="snapshot">
<build target="clean" />
<build target="build" />
<ant target="deployJBossELSnapshot" antfile="${ant.file}" inheritall="false" inheritrefs="false" dir="." />
<ant target="tests" antfile="${ant.file}" inheritall="false" inheritrefs="false" dir="." />
</target>
<macrodef name="build">
<attribute name="target" />
<sequential>
<ant antfile="build.xml" target="@{target}" inheritall="false" inheritrefs="false" dir="." />
</sequential>
</macrodef>
<!-- <macrodef name="deploySnapshotPom">
<attribute name="pom" />
<sequential>
<artifact:deploy uniqueVersion="false">
<pom file="@{pom}" />
<remoteRepository refid="snapshots.jboss.org" />
</artifact:deploy>
</sequential>
</macrodef>
-->
<macrodef name="deploySnapshot">
<attribute name="pom" />
<attribute name="jar" />
<attribute name="srcjar" />
<sequential>
<artifact:deploy file="@{jar}" uniqueVersion="false">
<pom file="@{pom}" />
<attach file="@{srcjar}" classifier="sources" />
<remoteRepository refid="jboss-snapshots-repository" />
<!-- <remoteRepository refid="jboss-staging-repository-group" /> -->
</artifact:deploy>
</sequential>
</macrodef>
</project>