aoo-ant.xml (bee6bcb9) aoo-ant.xml (cede1e5b)
1<?xml version="1.0" encoding="UTF-8"?>
2<!--***********************************************************
3 *
4 * Licensed to the Apache Software Foundation (ASF) under one
5 * or more contributor license agreements. See the NOTICE file
6 * distributed with this work for additional information
7 * regarding copyright ownership. The ASF licenses this file
8 * to you under the Apache License, Version 2.0 (the

--- 104 unchanged lines hidden (view full) ---

113 destdir="${main.build.dir}"
114 debug="${main.debug}"
115 debuglevel="lines,vars,source"
116 deprecation="${main.deprecation}"
117 classpathref="main.classpath"
118 includeantruntime="false"/>
119 </target>
120
1<?xml version="1.0" encoding="UTF-8"?>
2<!--***********************************************************
3 *
4 * Licensed to the Apache Software Foundation (ASF) under one
5 * or more contributor license agreements. See the NOTICE file
6 * distributed with this work for additional information
7 * regarding copyright ownership. The ASF licenses this file
8 * to you under the Apache License, Version 2.0 (the

--- 104 unchanged lines hidden (view full) ---

113 destdir="${main.build.dir}"
114 debug="${main.debug}"
115 debuglevel="lines,vars,source"
116 deprecation="${main.deprecation}"
117 classpathref="main.classpath"
118 includeantruntime="false"/>
119 </target>
120
121 <target name="test-compile" depends="compile,idl">
122 <property name="test.skip" value="true" unless:set="OOO_JUNIT_JAR"/>
123 <echo message="No junit, skipping tests" unless:set="OOO_JUNIT_JAR"/>
121 <target name="test-check">
122 <local name="tests.present"/>
123 <available type="dir" file="${test.src.dir}" property="tests.present"/>
124 <echo message="No tests" unless:set="tests.present"/>
124
125
125 <mkdir dir="${test.build.dir}" if:set="OOO_JUNIT_JAR"/>
126 <local name="only.junit.absent"/>
127 <condition property="only.junit.absent">
128 <and>
129 <isset property="tests.present"/>
130 <not><isset property="OOO_JUNIT_JAR"/></not>
131 </and>
132 </condition>
133 <echo message="No junit, skipping tests" if:set="only.junit.absent"/>
134
135 <condition property="test.skip">
136 <or>
137 <not><isset property="test.present"/></not>
138 <not><isset property="OOO_JUNIT_JAR"/></not>
139 </or>
140 </condition>
141 </target>
142
143 <target name="test-compile" depends="compile,idl,test-check">
144 <mkdir dir="${test.build.dir}" unless:set="test.skip"/>
126 <javac srcdir="${test.src.dir}"
127 destdir="${test.build.dir}"
128 debug="${test.debug}"
129 debuglevel="lines,vars,source"
130 deprecation="${test.deprecation}"
131 classpathref="internal.test.classpath"
132 includeantruntime="false"
145 <javac srcdir="${test.src.dir}"
146 destdir="${test.build.dir}"
147 debug="${test.debug}"
148 debuglevel="lines,vars,source"
149 deprecation="${test.deprecation}"
150 classpathref="internal.test.classpath"
151 includeantruntime="false"
133 if:set="OOO_JUNIT_JAR"/>
152 unless:set="test.skip"/>
134 </target>
135
136 <!-- fork="true" is sadly necessary on Ubuntu due to multiple versions of junit confusing Ant,
137 see https://github.com/real-logic/simple-binary-encoding/issues/96 -->
138 <target name="test" depends="test-compile" unless="${test.skip}">
139 <mkdir dir="${test.reports.dir}"/>
140 <junit printsummary="yes" haltonfailure="yes" showoutput="true" filtertrace="false" fork="true">
141 <classpath refid="internal.test.classpath"/>

--- 43 unchanged lines hidden ---
153 </target>
154
155 <!-- fork="true" is sadly necessary on Ubuntu due to multiple versions of junit confusing Ant,
156 see https://github.com/real-logic/simple-binary-encoding/issues/96 -->
157 <target name="test" depends="test-compile" unless="${test.skip}">
158 <mkdir dir="${test.reports.dir}"/>
159 <junit printsummary="yes" haltonfailure="yes" showoutput="true" filtertrace="false" fork="true">
160 <classpath refid="internal.test.classpath"/>

--- 43 unchanged lines hidden ---