Skip to content

Commit 0ed03e1

Browse files
committed
add missing ant file
1 parent 3e05b9f commit 0ed03e1

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

openidm-doc/src/main/ant/zip.xml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<project name="zip">
2+
<target name="docs">
3+
<taskdef resource="net/sf/antcontrib/antcontrib.properties"/>
4+
<foreach param="docname" target="formats" inheritall="true">
5+
<path>
6+
<dirset dir="${basedir}/src/main/docbkx/" casesensitive="yes">
7+
<include name="*/"/>
8+
<exclude name="*/*/**"/>
9+
<exclude name="shared"/>
10+
</dirset>
11+
</path>
12+
<mapper type="flatten"/>
13+
</foreach>
14+
</target>
15+
<target name="formats">
16+
<foreach param="format" list="${compress_formats}" target="dozip" inheritall="true"/>
17+
</target>
18+
<target name="dozip" >
19+
<echo message="compressing ${format} ${docname} from ${project_build_dir}/docbkx/${format}/${docname} to ${project_build_dir}/docbkx/${format}/${docname}.zip"/>
20+
<zip basedir="${project.build.directory}/docbkx/${format}/${docname}" destfile="${project.build.directory}/docbkx/${format}/${docname}.zip"/>
21+
</target>
22+
</project>

0 commit comments

Comments
 (0)