-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
compress webhelp, xhtml and html docs after build (#771)
- Loading branch information
1 parent
ebdfb80
commit 0242033
Showing
2 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
openam-documentation/openam-doc-source/src/main/ant/zip.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<project name="zip"> | ||
<target name="docs"> | ||
<taskdef resource="net/sf/antcontrib/antcontrib.properties"/> | ||
<foreach param="docname" target="formats" inheritall="true"> | ||
<path> | ||
<dirset dir="${basedir}/src/main/docbkx/" casesensitive="yes"> | ||
<include name="*/"/> | ||
<exclude name="*/*/**"/> | ||
<exclude name="resources"/> | ||
<exclude name="shared"/> | ||
</dirset> | ||
</path> | ||
<mapper type="flatten"/> | ||
</foreach> | ||
</target> | ||
<target name="formats"> | ||
<foreach param="format" list="${compress_formats}" target="dozip" inheritall="true"/> | ||
</target> | ||
<target name="dozip" > | ||
<echo message="compressing ${format} ${docname} from ${project_build_dir}/docbkx/${format}/${docname} to ${project_build_dir}/docbkx/${format}/${docname}.zip"/> | ||
<zip basedir="${project.build.directory}/docbkx/${format}/${docname}" destfile="${project.build.directory}/docbkx/${format}/${docname}.zip"/> | ||
</target> | ||
</project> |