Skip to content
This repository was archived by the owner on Jan 30, 2019. It is now read-only.

Commit 2dc060b

Browse files
author
jst
committed
when building the sources, exclude all files without GPL license, except those that are generated (e.g. nbproject/*) and one manifest.mf file
svn path=/trunk/; revision=55
1 parent 7a2e5e7 commit 2dc060b

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

javahelp_nbproject/build.xml

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,24 @@ have any questions.
5454
<target name="release-source" description="Build the source zip file">
5555
<property name="version" value="2.0.05"/>
5656
<mkdir dir="dist"/>
57-
<zip destfile="dist/javahelp2-src-${version}.zip" >
57+
<zip destfile="dist/javahelp2-src-${version}.zip" filesonly="true">
5858
<zipfileset dir=".." prefix="javahelp2-${version}">
59-
<include name="**/*"/>
60-
<exclude name="**/dist/**/*"/>
61-
<exclude name="**/build/**/*"/>
62-
<exclude name="www/**/*"/>
63-
<exclude name="**/*.jar"/>
64-
<exclude name="**/*.zip"/>
59+
<and>
60+
<filename name="**/*"/>
61+
<none>
62+
<filename name="**/dist/**/*"/>
63+
<filename name="**/build/**/*"/>
64+
<filename name="www/**/*"/>
65+
<filename name="**/*.jar"/>
66+
<filename name="**/*.zip"/>
67+
</none>
68+
<or>
69+
<contains text="GNU General Public License"/>
70+
<filename name="**/nbproject/*.xml"/>
71+
<filename name="**/nbproject/*.properties"/>
72+
<filename name="**/manifest.mf"/>
73+
</or>
74+
</and>
6575
</zipfileset>
6676
</zip>
6777
</target>

0 commit comments

Comments
 (0)