|
1 | 1 | <?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"> |
3 | 3 |
|
4 | 4 | <property file="build.properties"/> |
5 | 5 | <property name="module.name" value="sbe"/> |
|
27 | 27 |
|
28 | 28 | <property name="cpptasks.lib" location="main/lib/cpptasks-1.0b5.jar"/> |
29 | 29 | <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"/> |
30 | 31 |
|
31 | 32 | <property name="dir.main.cpp.src" location="main/cpp"/> |
32 | 33 | <property name="dir.main.cpp.build" location="target/main/cpp/obj"/> |
|
52 | 53 | <taskdef resource="cpptasks.tasks" classpath="${cpptasks.lib}"/> |
53 | 54 | <taskdef resource="cpptasks.types" classpath="${cpptasks.lib}"/> |
54 | 55 | <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}"/> |
55 | 59 |
|
56 | 60 | <target name="init"> |
57 | 61 | <tstamp/> |
|
70 | 74 | </condition> |
71 | 75 | </target> |
72 | 76 |
|
| 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 | + |
73 | 87 | <target name="checkstyle" depends="init"> |
74 | 88 | <checkstyle config="${checkstyle.config.file}" |
75 | 89 | failOnViolation="true" |
|
0 commit comments