-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
25 lines (24 loc) · 1.14 KB
/
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
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:ivy="antlib:org.apache.ivy.ant" name="MetaWearAPI" default="publish" basedir="." >
<property name="dist.dir" value="dist" />
<property name="aar.dir" value="scanner/build/outputs/aar" />
<property name="aar.file" value="scanner-release.aar" />
<property name="artifact.file" value="scanner.aar" />
<property name="artifact.source.file" value="scanner-sources.jar" />
<target name="clean">
<delete dir="${dist.dir}" />
</target>
<target name="setup">
<mkdir dir="${dist.dir}" />
<jar destfile="${dist.dir}/${artifact.source.file}" basedir="scanner/src/main/java"/>
<copy file="${aar.dir}/${aar.file}" toFile="${dist.dir}/${artifact.file}"/>
</target>
<target name="ivy-resolve">
<ivy:resolve file="ivy.xml" />
</target>
<target name="publish" depends="ivy-resolve,setup" description="Publish this build into repository">
<ivy:publish pubrevision="${version}" resolver="publish-server" >
<artifacts pattern="${dist.dir}/[artifact](-[classifier]).[ext]"/>
</ivy:publish>
</target>
</project>