-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.xml
74 lines (63 loc) · 3.08 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project basedir="." default="test" name="QualityAutomationFramework" xmlns:ivy="antlib:org.apache.ivy.ant">
<get src="https://raw.githubusercontent.com/qmetry/qaf-parent/master/common-build-tasks.xml" dest="../common-build-tasks.xml" skipexisting="true"/>
<get src="https://raw.githubusercontent.com/qmetry/qaf-parent/master/ivysettings.xml" dest="../ivysettings.xml" skipexisting="true"/>
<property name="project.dir" value="${basedir}" />
<property name="bin.dir" value="${project.dir}/bin" />
<property name="src.dir" value="${project.dir}/src" />
<property name="ivy.xml" value="${project.dir}/ivy.xml" />
<property name="test.dir" value="${project.dir}/test" />
<property name="meta.dir" value="${basedir}/META-INF" />
<property name="debuglevel" value="source,lines,vars" />
<property name="target" value="1.8" />
<property name="source" value="1.8" />
<path id="build.classpath">
<fileset dir="${lib.dir}">
<include name="*.jar" />
<include name="**/*.jar" />
</fileset>
</path>
<target depends="init" name="compile">
<mkdir dir="${bin.dir}" />
<echo level="info">--- compile (start) ---</echo>
<javac debug="true" destdir="${bin.dir}" source="${source}" target="${target}" >
<src path="${src.dir}" />
<classpath refid="build.classpath" />
</javac>
<echo level="info">--- compile (finished) ---</echo>
</target>
<!-- ================================= target: build ================================= -->
<target name="build" depends="make-jar, gendoc, gensource" description="build framework, generate docs">
</target>
<target name="make-jar" depends="clean, compile" description="build basic version">
<mkdir dir="${dist.dir}" />
<jar destfile="${dist.dir}/qaf-cucumber.jar" basedir="${bin.dir}">
<metainf dir="." includes="LICENSE.txt" />
<metainf dir="." includes="${dist.dir}/pom.xml,${dist.dir}/pom.properties" />
<manifest>
<attribute name="Vendor" value="Infostretch Corp." />
<attribute name="Built-By" value="${user.name}" />
<section name="Build-Info">
<attribute name="qaf-Build-Time" value="${build.timestamp}" />
<!-- Information about the program itself -->
<attribute name="qaf-Version" value="${version-num}" />
<attribute name="qaf-Revision" value="${build-num}" />
<attribute name="qaf-Type" value="support" />
</section>
</manifest>
<service type="org.testng.ITestNGListener">
<provider classname="com.qmetry.qaf.automation.cucumber.CucumberStepLoader" />
</service>
<service type="io.cucumber.core.backend.BackendProviderService">
<provider classname="com.qmetry.qaf.automation.cucumber.QAFBackendProviderService" />
</service>
<service type="io.cucumber.core.gherkin.FeatureParser">
<provider classname="com.qmetry.qaf.automation.cucumber.bdd2.parser.BDD2FeatureParser" />
</service>
</jar>
</target>
<target name="test" depends="build" description="run tests">
<ant antfile="${test.dir}/build.xml" target="test" inheritall="false"/>
</target>
<import file="../common-build-tasks.xml" optional="false" />
</project>