1 |
commit: 6cc9f077c14fc51c5ca1cd76a15cfea6c8acffc2 |
2 |
Author: Keri Harris <keri <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Oct 17 06:37:39 2017 +0000 |
4 |
Commit: Keri Harris <keri <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Oct 17 06:37:39 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6cc9f077 |
7 |
|
8 |
dev-lang/tuprolog: add missing build.xml file |
9 |
|
10 |
Package-Manager: Portage-2.3.8, Repoman-2.3.1 |
11 |
|
12 |
dev-lang/tuprolog/files/build-3.1.0.xml | 110 ++++++++++++++++++++++++++++++++ |
13 |
1 file changed, 110 insertions(+) |
14 |
|
15 |
diff --git a/dev-lang/tuprolog/files/build-3.1.0.xml b/dev-lang/tuprolog/files/build-3.1.0.xml |
16 |
new file mode 100644 |
17 |
index 00000000000..3b6f5818eaa |
18 |
--- /dev/null |
19 |
+++ b/dev-lang/tuprolog/files/build-3.1.0.xml |
20 |
@@ -0,0 +1,110 @@ |
21 |
+<?xml version="1.0" ?><project default="jar" name="tuprolog"> |
22 |
+ |
23 |
+ <!-- some properties --> |
24 |
+ <property name="src.dir" value="src"/> |
25 |
+ <property name="build.dir" value="build"/> |
26 |
+ <property name="docs.dir" value="docs"/> |
27 |
+ <property name="dist.dir" value="dist"/> |
28 |
+ <property name="test.dir" value="test"/> |
29 |
+ <property name="test.build.dir" value="test.build"/> |
30 |
+ <property name="jarfile" value="${ant.project.name}.jar"/> |
31 |
+ <property file="build.properties"/> |
32 |
+ |
33 |
+ <path id="compile.classpath"> |
34 |
+ <fileset dir="lib" includes="*.jar"/> |
35 |
+ <pathelement path="${gentoo.classpath}"/> |
36 |
+ </path> |
37 |
+ |
38 |
+ <!-- init --> |
39 |
+ <target name="init"> |
40 |
+ <tstamp/> |
41 |
+ <mkdir dir="${dist.dir}"/> |
42 |
+ <mkdir dir="${build.dir}"/> |
43 |
+ <mkdir dir="${docs.dir}"/> |
44 |
+ <mkdir dir="${test.build.dir}"/> |
45 |
+ </target> |
46 |
+ |
47 |
+ <!-- compile everything --> |
48 |
+ <target depends="init" name="compile"> |
49 |
+ <javac deprecation="off" |
50 |
+ destdir="${build.dir}" |
51 |
+ encoding="ISO-8859-1" |
52 |
+ srcdir="${src.dir}" |
53 |
+ source="1.8" |
54 |
+ target="1.8"> |
55 |
+ <classpath> |
56 |
+ <path refid="compile.classpath"/> |
57 |
+ </classpath> |
58 |
+ </javac> |
59 |
+ <copy todir="${build.dir}"> |
60 |
+ <fileset dir="${src.dir}"> |
61 |
+ <exclude name="**/*.java"/> |
62 |
+ </fileset> |
63 |
+ </copy> |
64 |
+ </target> |
65 |
+ |
66 |
+ <!-- build the jar file --> |
67 |
+ <target depends="compile" name="jar"> |
68 |
+ <jar basedir="${build.dir}" jarfile="${dist.dir}/${jarfile}"/> |
69 |
+ <jar basedir="${build.dir}" jarfile="${dist.dir}/2p.jar"> |
70 |
+ <manifest> |
71 |
+ <attribute name="Main-Class" value="alice.tuprologx.ide.GUILauncher"/> |
72 |
+ <attribute name="Class-Path" value="."/> |
73 |
+ </manifest> |
74 |
+ <zipgroupfileset dir="lib" includes="*.jar"/> |
75 |
+ </jar> |
76 |
+ </target> |
77 |
+ |
78 |
+ <!-- generate javadocs --> |
79 |
+ <target depends="init" name="javadoc"> |
80 |
+ <javadoc |
81 |
+ author="false" |
82 |
+ destdir="${docs.dir}" |
83 |
+ encoding="ISO-8859-1" |
84 |
+ breakiterator="yes" |
85 |
+ packagenames="alice.*" |
86 |
+ sourcepath="${src.dir}" |
87 |
+ use="true" |
88 |
+ version="true" |
89 |
+ verbose="no" |
90 |
+ windowtitle="${ant.project.name} API"> |
91 |
+ <classpath> |
92 |
+ <path refid="compile.classpath"/> |
93 |
+ </classpath> |
94 |
+ </javadoc> |
95 |
+ </target> |
96 |
+ |
97 |
+ <!-- clean up --> |
98 |
+ <target name="clean"> |
99 |
+ <delete dir="${build.dir}"/> |
100 |
+ <delete dir="${dist.dir}"/> |
101 |
+ <delete dir="${docs.dir}"/> |
102 |
+ <delete dir="${test.build.dir}"/> |
103 |
+ </target> |
104 |
+ |
105 |
+ <!-- run testsuite --> |
106 |
+ <target name="test"> |
107 |
+ <path id="dist.classpath"> |
108 |
+ <fileset dir="${dist.dir}"> |
109 |
+ <include name="*.jar"/> |
110 |
+ </fileset> |
111 |
+ </path> |
112 |
+ <javac classpathref="dist.classpath" |
113 |
+ deprecation="off" |
114 |
+ destdir="${test.build.dir}" |
115 |
+ encoding="ISO-8859-1" |
116 |
+ srcdir="${test.dir}/unit" |
117 |
+ source="1.8" |
118 |
+ target="1.8"/> |
119 |
+ <junit fork="yes" failureproperty="test.failed" printsummary="yes"> |
120 |
+ <classpath> |
121 |
+ <path refid="dist.classpath"/> |
122 |
+ <pathelement path="${test.build.dir}"/> |
123 |
+ </classpath> |
124 |
+ <formatter type="xml"/> |
125 |
+ <test name="alice.tuprolog.TuPrologTestSuite" todir="${test.build.dir}"/> |
126 |
+ <test name="alice.tuprolog.ExceptionsTestSuite" todir="${test.build.dir}"/> |
127 |
+ </junit> |
128 |
+ <fail message="Test failure(s) detected" if="test.failed" /> |
129 |
+ </target> |
130 |
+</project> |