summaryrefslogtreecommitdiff
blob: a9b5d9f3566648b0907eaeea2646645d1c68128f (plain)
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
75
76
77
78
--- build.xml.orig	2004-12-21 17:30:09.560666880 +0100
+++ build.xml	2004-12-21 17:35:21.167295472 +0100
@@ -44,7 +44,7 @@
   </target>
 
   <target name="compile" depends="init,prepare">
-    <javac destdir="${build}/classes" srcdir="${build}/src" classpathref="libs" debug="${javac.debug}" optimize="${javac.optimize}" />
+    <javac destdir="${build}/classes" srcdir="${build}/src" classpathref="libs" debug="${javac.debug}" optimize="${javac.optimize}" source="1.4" target="1.4"/>
   </target>
 
   <target name="javadoc" depends="prepare">
@@ -57,31 +57,12 @@
     </javadoc>
   </target>
 
-  <target name="test" depends="compile">
-    <taskdef name="junit" classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask"/>
-
-    <junit fork="no" haltonfailure="no" printsummary="yes">
-      <classpath>
-        <pathelement location="build/classes"/>
-        <path refid="libs"/>
-      </classpath>
-      <formatter type="plain"/>
-      <batchtest>
-        <fileset dir="${build}/src">
-          <include name="**/*Test.java"/>
-          <exclude name="**/AllTests.java"/>
-        </fileset>
-      </batchtest>
-    </junit>
-  </target>
-
-  <target name="dist" depends="clean,compile,javadoc">
-    <mkdir dir="${dist}"/>
+  <target name="jar" depends="compile">
     <!-- Runtime jar -->
     <jar basedir="${build}/classes"
          excludes="net/sourceforge/jtds/test/*.class"
          includes="**/*"
-         jarfile="${build}/${ant.project.name}-${version}.jar">
+         jarfile="${build}/${ant.project.name}.jar">
         <manifest>
             <attribute name="Implementation-Title" value="jTDS JDBC Driver"/>
             <attribute name="Implementation-Version" value="${version}"/>
@@ -91,31 +72,6 @@
             <attribute name="Class-Path" value="jcifs.jar" />
         </manifest>
     </jar>
-
-    <!-- Source package -->
-    <copy todir="${dist}/tmp/doc">
-      <fileset dir="${build}/doc" includes="**/*"/>
-    </copy>
-    <mkdir dir="${dist}/tmp"/>
-    <copy todir="${dist}/tmp">
-      <fileset dir="." includes="README,README.XA,CHANGELOG,LICENSE,*.bat,*.sh,*.xml,src/**/*,lib/**/*,html/**/*,conf/**/*"/>
-    </copy>
-    <zip basedir="${dist}/tmp" includes="**/*" zipfile="${dist}/${ant.project.name}-${version}-src.zip"/>
-    <delete dir="${dist}/tmp"/>
-
-    <!-- Binary package -->
-    <mkdir dir="${dist}/tmp"/>
-    <copy todir="${dist}/tmp">
-      <fileset dir="." includes="README,README.XA,CHANGELOG,LICENSE,conf/**/*.xml,html/**/*"/>
-      <fileset dir="${build}" includes="*.jar"/>
-    </copy>
-    <mkdir dir="${dist}/tmp/XA"/>
-    <copy todir="${dist}/tmp/XA">
-      <fileset dir="lib" includes="*.dll"/>
-      <fileset dir="src/XA" includes="*.sql"/>
-    </copy>
-    <zip basedir="${dist}/tmp" includes="**/*" zipfile="${dist}/${ant.project.name}-${version}-dist.zip"/>
-    <delete dir="${dist}/tmp"/>
   </target>
-
+  
 </project>