-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
33 lines (27 loc) · 1.13 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
26
27
28
29
30
31
32
33
<?xml version="1.0" encoding="UTF-8"?>
<project name="JS JUnit Logger" basedir="." default="integration-test">
<!-- Created by Darren Hurley on 2011-03-01. -->
<!-- Copyright (c) 2011 BBC. All rights reserved. -->
<import file="./integration-test/build.xml" />
<!-- YUI Compressor task definition -->
<taskdef name="yui-compressor"
classname="net.noha.tools.ant.yuicompressor.tasks.YuiCompressorTask">
<classpath>
<fileset dir="./lib" includes="yui*.jar" />
</classpath>
</taskdef>
<target name="init" description="Initialise">
<mkdir dir="./dist"/>
</target>
<target name="package" depends="init" description="Package up the js">
<concat destfile="./dist/junit-logger.js" fixlastline="true">
<fileset dir="./src" includes="**/*.js" />
</concat>
<yui-compressor munge="true" warn="true" fromdir="./dist" todir="./dist">
<include name="junit-logger.js" />
</yui-compressor>
</target>
<target name="integration-test" depends="package" description="Run tests">
<antcall target="integration-test.integration-test" />
</target>
</project>