2
2
<property name =" dir.src" value =" src/main/java" />
3
3
<property name =" dir.bin" value =" bin" />
4
4
<property name =" dir.dist" value =" dist" />
5
+ <property name =" dir.javadoc" value =" ${ dir.dist } /javadoc" />
5
6
6
7
<property name =" name.file" value =" imgscalr-lib" />
7
-
8
+
8
9
<property name =" version.major" value =" 1" />
9
10
<property name =" version.minor" value =" 1" />
10
11
15
16
16
17
<target name =" compile" depends =" clean" >
17
18
<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 " />
19
20
<copy todir =" ${ dir.bin } " >
20
21
<fileset dir =" ${ dir.src } " >
21
22
<exclude name =" **/*.java" />
22
23
</fileset >
23
24
</copy >
24
25
</target >
25
26
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" >
27
34
<mkdir dir =" ${ dir.dist } " />
28
35
<jar basedir =" ${ dir.bin } " destfile =" ${ dir.dist } /${ name.file } .jar" compress =" no" />
36
+ <copy file =" README" todir =" ${ dir.dist } " />
29
37
<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" />
32
40
</target >
33
41
</project >
0 commit comments