Changeset 23524 in osm
- Timestamp:
- 2010-10-09T13:29:07+02:00 (14 years ago)
- Location:
- applications/editors/josm/plugins/turnrestrictions
- Files:
-
- 2 added
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/turnrestrictions/build.xml
r23510 r23524 39 39 ** should not be necessary to change the following properties 40 40 --> 41 <property name="josm" location="../../core/dist/josm-custom.jar"/> 41 <!-- <property name="josm" location="../../core/dist/josm-custom.jar"/> --> 42 <property name="josm" location="../JOSM/dist/josm-custom.jar"/> 42 43 <property name="plugin.build.dir" value="build"/> 43 44 <property name="plugin.src.dir" value="src"/> … … 46 47 <property name="ant.build.javac.target" value="1.5"/> 47 48 <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/> 48 49 <property name="test.build.dir" value="test/build" /> 49 50 <!-- 50 51 ********************************************************** … … 54 55 <target name="init"> 55 56 <mkdir dir="${plugin.build.dir}"/> 57 <mkdir dir="${test.build.dir}"/> 56 58 </target> 57 59 … … 253 255 <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist"> 254 256 </target> 257 258 259 <!-- ************************************************************************************ --> 260 <!-- * Targets for compiling and running tests --> 261 <!-- ************************************************************************************ --> 262 <property name="eclipse.plugin.dir" value="C:\software\eclipse-3.6.1\plugins" /> 263 264 <path id="groovy.path"> 265 <pathelement location="${eclipse.plugin.dir}/org.codehaus.groovy_1.7.5.xx-20100926-2000-e36-RC1\lib\groovy-all-1.7.5.jar"/> 266 </path> 267 268 <path id="junit.path"> 269 <pathelement location="${eclipse.plugin.dir}/org.junit_4.8.1.v4_8_1_v20100427-1100\junit.jar" /> 270 </path> 271 272 <path id="test.class.path"> 273 <pathelement location="${josm}"/> 274 <pathelement location="${plugin.build.dir}" /> 275 <path refid="groovy.path"/> 276 <path refid="junit.path"/> 277 </path> 278 279 <path id="groovyc.path"> 280 <path refid="junit.path" /> 281 <path refid="groovy.path" /> 282 <pathelement location="${josm}" /> 283 <pathelement location="${test.build.dir}" /> 284 <pathelement location="${plugin.build.dir}" /> 285 <!-- if we didn't explicitly put hamcrest on the class path, groovyc would 286 abort and report it is missing a hamcrest class --> 287 <pathelement location="test/lib/hamcrest-all-1.2.jar" /> 288 </path> 289 290 <taskdef name="groovyc" classname="org.codehaus.groovy.ant.Groovyc" classpathref="groovy.path"/> 291 292 <target name="test-clean"> 293 <delete dir="${test.build.dir}"/> 294 <mkdir dir="${test.build.dir}"/> 295 </target> 296 297 <target name="test-compile" depends="compile,test-clean" description="Compiles the test files"> 298 <echo message="compiling groovy test cases for ${plugin.jar} ... "/> 299 300 <groovyc srcdir="test/src" destdir="${test.build.dir}" classpathref="groovyc.path"> 301 </groovyc> 302 303 <echo message="compiling java test cases for ${plugin.jar} ... "/> 304 <javac srcdir="test/src" classpathref="test.class.path" debug="true" destdir="${test.build.dir}"> 305 <compilerarg value="-Xlint:deprecation"/> 306 <compilerarg value="-Xlint:unchecked"/> 307 </javac> 308 </target> 309 310 <target name="test-run" depends="test-compile" description="Runs the junit tests"> 311 <delete dir="test/output"/> 312 <mkdir dir="test/output"/> 313 314 <junit printsummary="true" failureproperty="junit.failure"> 315 <classpath> 316 <path refid="groovyc.path" /> 317 <pathelement location="test/config"/> <!-- required for test config file --> 318 <pathelement location="."/> <!-- required to load images from subdir 'images/' --> 319 </classpath> 320 321 <test todir="test/output" name='org.openstreetmap.josm.plugins.turnrestrictions.AllUnitTests'> 322 <formatter type="xml"/> 323 </test> 324 </junit> 325 </target> 255 326 </project> -
applications/editors/josm/plugins/turnrestrictions/test/README
r23510 r23524 17 17 a preferences files with default entries. 18 18 19 lib/ Additional libraries used for testing 20
Note:
See TracChangeset
for help on using the changeset viewer.