Skip to content

Commit 3b77abe

Browse files
committed
Build File.
1 parent f92d11a commit 3b77abe

File tree

1 file changed

+97
-0
lines changed

1 file changed

+97
-0
lines changed

build.xml

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<!-- WARNING: Eclipse auto-generated file.
3+
Any modifications will be overwritten.
4+
To include a user specific buildfile here, simply create one in the same
5+
directory with the processing instruction <?eclipse.ant.import?>
6+
as the first entry and export the buildfile again. -->
7+
<project basedir="." default="build" name="github-java-sdk">
8+
<property environment="env"/>
9+
<property name="junit.output.dir" value="junit"/>
10+
<property name="debuglevel" value="source,lines,vars"/>
11+
<property name="target" value="1.6"/>
12+
<property name="source" value="1.6"/>
13+
<path id="github-java-sdk.classpath">
14+
<pathelement location="target"/>
15+
<pathelement location="dev-lib/junit-4.5.jar"/>
16+
<pathelement location="dev-lib/commons-cli-1.2.jar"/>
17+
<pathelement location="lib/gson-1.4.jar"/>
18+
</path>
19+
<target name="init">
20+
<mkdir dir="target"/>
21+
<copy includeemptydirs="false" todir="target">
22+
<fileset dir="schema/src/main/java" excludes="**/*.launch, **/*.java"/>
23+
</copy>
24+
<copy includeemptydirs="false" todir="target">
25+
<fileset dir="core/src/main/java" excludes="**/*.launch, **/*.java"/>
26+
</copy>
27+
<copy includeemptydirs="false" todir="target">
28+
<fileset dir="core/src/main/resources" excludes="**/*.launch, **/*.java"/>
29+
</copy>
30+
<copy includeemptydirs="false" todir="target">
31+
<fileset dir="core/src/test/java" excludes="**/*.launch, **/*.java"/>
32+
</copy>
33+
<copy includeemptydirs="false" todir="target">
34+
<fileset dir="core/src/test/resources" excludes="**/*.launch, **/*.java"/>
35+
</copy>
36+
<copy includeemptydirs="false" todir="target">
37+
<fileset dir="examples/src/resources" excludes="**/*.launch, **/*.java"/>
38+
</copy>
39+
<copy includeemptydirs="false" todir="target">
40+
<fileset dir="examples/src/java" excludes="**/*.launch, **/*.java"/>
41+
</copy>
42+
</target>
43+
<target name="clean">
44+
<delete dir="target"/>
45+
</target>
46+
<target depends="clean" name="cleanall"/>
47+
<target depends="build-subprojects,build-project" name="build"/>
48+
<target name="build-subprojects"/>
49+
<target depends="init" name="build-project">
50+
<echo message="${ant.project.name}: ${ant.file}"/>
51+
<javac debug="true" debuglevel="${debuglevel}" destdir="target" source="${source}" target="${target}">
52+
<src path="schema/src/main/java"/>
53+
<classpath refid="github-java-sdk.classpath"/>
54+
</javac>
55+
<javac debug="true" debuglevel="${debuglevel}" destdir="target" source="${source}" target="${target}">
56+
<src path="core/src/main/java"/>
57+
<classpath refid="github-java-sdk.classpath"/>
58+
</javac>
59+
<javac debug="true" debuglevel="${debuglevel}" destdir="target" source="${source}" target="${target}">
60+
<src path="core/src/main/resources"/>
61+
<classpath refid="github-java-sdk.classpath"/>
62+
</javac>
63+
<javac debug="true" debuglevel="${debuglevel}" destdir="target" source="${source}" target="${target}">
64+
<src path="core/src/test/java"/>
65+
<classpath refid="github-java-sdk.classpath"/>
66+
</javac>
67+
<javac debug="true" debuglevel="${debuglevel}" destdir="target" source="${source}" target="${target}">
68+
<src path="core/src/test/resources"/>
69+
<classpath refid="github-java-sdk.classpath"/>
70+
</javac>
71+
<javac debug="true" debuglevel="${debuglevel}" destdir="target" source="${source}" target="${target}">
72+
<src path="examples/src/resources"/>
73+
<classpath refid="github-java-sdk.classpath"/>
74+
</javac>
75+
<javac debug="true" debuglevel="${debuglevel}" destdir="target" source="${source}" target="${target}">
76+
<src path="examples/src/java"/>
77+
<classpath refid="github-java-sdk.classpath"/>
78+
</javac>
79+
</target>
80+
<target description="Build all projects which reference this project. Useful to propagate changes." name="build-refprojects"/>
81+
<target name="AllTests">
82+
<mkdir dir="${junit.output.dir}"/>
83+
<junit fork="yes" printsummary="withOutAndErr">
84+
<formatter type="xml"/>
85+
<test name="com.github.api.v2.services.AllTests" todir="${junit.output.dir}"/>
86+
<classpath refid="github-java-sdk.classpath"/>
87+
</junit>
88+
</target>
89+
<target name="junitreport">
90+
<junitreport todir="${junit.output.dir}">
91+
<fileset dir="${junit.output.dir}">
92+
<include name="TEST-*.xml"/>
93+
</fileset>
94+
<report format="frames" todir="${junit.output.dir}"/>
95+
</junitreport>
96+
</target>
97+
</project>

0 commit comments

Comments
 (0)