Skip to content

Commit 86eca3f

Browse files
author
Riyad Kalla
committed
Added javadoc task to build and included in final bundle.
1 parent b830ea4 commit 86eca3f

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

build.xml

+13-5
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
<property name="dir.src" value="src/main/java" />
33
<property name="dir.bin" value="bin" />
44
<property name="dir.dist" value="dist" />
5+
<property name="dir.javadoc" value="${dir.dist}/javadoc" />
56

67
<property name="name.file" value="imgscalr-lib" />
7-
8+
89
<property name="version.major" value="1" />
910
<property name="version.minor" value="1" />
1011

@@ -15,19 +16,26 @@
1516

1617
<target name="compile" depends="clean">
1718
<mkdir dir="${dir.bin}" />
18-
<javac srcdir="${dir.src}" destdir="${dir.bin}" source="1.6" />
19+
<javac srcdir="${dir.src}" destdir="${dir.bin}" source="1.5" />
1920
<copy todir="${dir.bin}">
2021
<fileset dir="${dir.src}">
2122
<exclude name="**/*.java" />
2223
</fileset>
2324
</copy>
2425
</target>
2526

26-
<target name="dist" depends="compile">
27+
<target name="javadoc">
28+
<delete dir="${dir.javadoc}" />
29+
<mkdir dir="${dir.javadoc}" />
30+
<javadoc sourcepath="${dir.src}" destdir="${dir.javadoc}" author="true" windowtitle="imgscalr - Java Image Scaling Library" footer="Copyright 2010 The Buzz Media, LLC" link="http://download.oracle.com/javase/6/docs/api" linksource="true" package="true" source="1.5" use="true" />
31+
</target>
32+
33+
<target name="dist" depends="compile,javadoc">
2734
<mkdir dir="${dir.dist}" />
2835
<jar basedir="${dir.bin}" destfile="${dir.dist}/${name.file}.jar" compress="no" />
36+
<copy file="README" todir="${dir.dist}" />
2937
<copy file="LICENSE" todir="${dir.dist}" />
30-
<zip compress="no" basedir="${dir.src}" destfile="${dir.dist}/${name.file}-src.zip" />
31-
<zip compress="no" basedir="${dir.dist}" destfile="${dir.dist}/${name.file}-${version.major}.${version.minor}.zip" />
38+
<zip compress="yes" basedir="${dir.src}" destfile="${dir.dist}/${name.file}-src.zip" />
39+
<zip compress="yes" basedir="${dir.dist}" destfile="${dir.dist}/${name.file}-${version.major}.${version.minor}.zip" />
3240
</target>
3341
</project>

0 commit comments

Comments
 (0)