Skip to content

Commit c54d627

Browse files
author
Todd L. Montgomery
committed
addressing aeron-io#85. Added maven-ant-tasks and maven.install ant target for installing into local maven repos.
1 parent 3110c75 commit c54d627

File tree

3 files changed

+40
-1
lines changed

3 files changed

+40
-1
lines changed

build.xml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="ISO-8859-1"?>
2-
<project name="Real-Logic-SBE" default="all" basedir=".">
2+
<project name="Real-Logic-SBE" default="all" basedir="." xmlns:artifact="antlib:org.apache.maven.artifact.ant">
33

44
<property file="build.properties"/>
55
<property name="module.name" value="sbe"/>
@@ -27,6 +27,7 @@
2727

2828
<property name="cpptasks.lib" location="main/lib/cpptasks-1.0b5.jar"/>
2929
<property name="doxygen.lib" location="main/lib/ant-doxygen-1.6.1.jar"/>
30+
<property name="maven-ant-tasks.lib" location="main/lib/maven-ant-tasks-2.1.3.jar"/>
3031

3132
<property name="dir.main.cpp.src" location="main/cpp"/>
3233
<property name="dir.main.cpp.build" location="target/main/cpp/obj"/>
@@ -52,6 +53,9 @@
5253
<taskdef resource="cpptasks.tasks" classpath="${cpptasks.lib}"/>
5354
<taskdef resource="cpptasks.types" classpath="${cpptasks.lib}"/>
5455
<taskdef resource="org/doxygen/tools/antlib.xml" classpath="${doxygen.lib}"/>
56+
<typedef resource="org/apache/maven/artifact/ant/antlib.xml"
57+
uri="antlib:org.apache.maven.artifact.ant"
58+
classpath="${maven-ant-tasks.lib}"/>
5559

5660
<target name="init">
5761
<tstamp/>
@@ -70,6 +74,16 @@
7074
</condition>
7175
</target>
7276

77+
<artifact:pom id="sbe.pom" file="sbe-pom.xml"/>
78+
79+
<target name="maven.install" depends="clean, checkstyle, build, test, javadoc, dist" description="maven install">
80+
<artifact:install file="${dir.dist}/${module.name}-${build.version}-${DSTAMP}.jar">
81+
<artifact:pom refid="sbe.pom"/>
82+
<artifact:attach file="${dir.dist}/${module.name}-src-${build.version}-${DSTAMP}.jar" type="jar" classifier="sources"/>
83+
<artifact:attach file="${dir.dist}/${module.name}-api-${build.version}-${DSTAMP}.jar" type="jar" classifier="javadoc"/>
84+
</artifact:install>
85+
</target>
86+
7387
<target name="checkstyle" depends="init">
7488
<checkstyle config="${checkstyle.config.file}"
7589
failOnViolation="true"

main/lib/maven-ant-tasks-2.1.3.jar

1.26 MB
Binary file not shown.

sbe-pom.xml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<project>
2+
<modelVersion>4.0.0</modelVersion>
3+
<groupId>uk.co.real_logic</groupId>
4+
<artifactId>sbe</artifactId>
5+
<version>${build.version}-SNAPSHOT</version>
6+
<packaging>jar</packaging>
7+
8+
<name>Simple Binary Encoding</name>
9+
<description>FIX/SBE - OSI layer 6 presentation for encoding and decoding application messages in binary format for low-latency applications</description>
10+
<url>https://github.com/real-logic/simple-binary-encoding</url>
11+
<licenses>
12+
<license>
13+
<name>The Apache Software License, Version 2.0</name>
14+
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
15+
<distribution>repo</distribution>
16+
</license>
17+
</licenses>
18+
<scm>
19+
<url>https://github.com/real-logic/simple-binary-encoding.git</url>
20+
<connection>scm:git:https://github.com/real-logic/simple-binary-encoding.git</connection>
21+
</scm>
22+
23+
<dependencies>
24+
</dependencies>
25+
</project>

0 commit comments

Comments
 (0)