forked from bit-man/SwissArmyJavaGit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package-source.xml
31 lines (25 loc) · 1 KB
/
package-source.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
<!--
This build script generates a zip of the source.
Q: Why use this script instead of 'mvn source:jar'?
A: This script generates a zip file with the entire javagit source tree
including the main source, the test source and the maven pom file. The
'mvn source:jar' command generates a jar file containing only the main
source. For distribution of the project source, it is preferable to
provide an easy means of building the source for those who download it.
-->
<project name="package-source" default="package-source">
<property name="project.dir" location="javagit"/>
<property name="build.dir" location="${project.dir}/target"/>
<target name="package-source">
<delete dir="dist"/>
<mkdir dir="dist"/>
<!-- Zip the source. -->
<zip destfile="dist/javagit-source.zip">
<zipfileset
dir="${project.dir}/"
prefix="javagit"
excludes="target/**,antBuilderOutput.log"
/>
</zip>
</target>
</project>