summaryrefslogtreecommitdiff
blob: 71e1c8e80dc111cd4cf11ae141a0c00fa5499159 (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
--- build.xml.orig	2005-02-18 16:47:01.193090848 +0100
+++ build.xml	2005-02-18 16:55:06.447320992 +0100
@@ -75,13 +75,13 @@
     </junit>
   </target>
 
-  <target name="dist" depends="clean,compile,javadoc">
+  <target name="jar" depends="compile">
     <mkdir dir="${dist}"/>
     <!-- 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,6 +91,9 @@
             <attribute name="Class-Path" value="jcifs.jar" />
         </manifest>
     </jar>
+    </target>
+    
+    <target name="dist" depends="jar,clean,javadoc">
 
     <!-- Source package -->
     <copy todir="${dist}/tmp/doc">
@@ -122,4 +125,10 @@
     <delete dir="${dist}/tmp"/>
   </target>
 
+        <!-- zip the sources -->
+        <target name="sourcezip">
+                <zip destfile="${dist}/${ant.project.name}-src.zip">
+                        <zipfileset dir="${src}/main" />
+                </zip>
+        </target>
 </project>