Skip to content

Commit 72a8bfe

Browse files
committed
add ant javadoc to generate javadoc to include in releases
1 parent 03d5a1a commit 72a8bfe

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

custom_rules.xml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,28 @@
1515
</exec>
1616
</target>
1717

18-
<target name="-post-build" depends="-getgitdetails">
18+
<target name="-javadoc" description="Generate Javadocs">
19+
<property name="javadoc.jar.name" value="${out.dir}/sqlcipher-javadoc.jar" />
20+
<javadoc sourcepath="${source.dir}"
21+
destdir="${out.dir}/javadoc"
22+
packagenames="net.sqlcipher.*"
23+
windowtitle="SQLCipher for Android"
24+
doctitle="SQLCipher for Android" />
25+
<delete file="${javadoc.jar.name}"/>
26+
<jar destfile="${javadoc.jar.name}"
27+
includes="net/sqlcipher/**"
28+
basedir="${out.dir}/javadoc">
29+
<manifest>
30+
<attribute name="Implementation-Vendor" value="Zetetic"/>
31+
<attribute name="Implementation-Title" value="SQLCipher for Android"/>
32+
<attribute name="Implementation-URL" value="https://www.zetetic.net/sqlcipher/open-source"/>
33+
<attribute name="Implementation-Version" value="${git.describe}"/>
34+
<attribute name="Git-Revision" value="${git.revision}"/>
35+
</manifest>
36+
</jar>
37+
</target>
38+
39+
<target name="-post-build" depends="-getgitdetails,-javadoc">
1940
<property name="jar.dir" value="libs" />
2041
<property name="jar.name" value="${jar.dir}/sqlcipher.jar" />
2142
<property file="${sdk.dir}/tools/source.properties" />
@@ -38,6 +59,7 @@
3859
<attribute name="Android-NDK-Release" value="${ndk.release}"/>
3960
</manifest>
4061
</jar>
62+
<copy file="${out.dir}/sqlcipher-javadoc.jar" todir="${jar.dir}" preservelastmodified="true" overwrite="true"/>
4163
</target>
4264

4365
</project>

0 commit comments

Comments
 (0)