Prevent unused and demo files beeing included in jar / war files.

git-svn-id: https://svn.libreccm.org/ccm/trunk@416 8810af33-2d31-482b-a856-94f89814c4df
master
pb 2010-05-08 08:45:54 +00:00
parent e5b503780f
commit c432218345
2 changed files with 13 additions and 2 deletions

View File

@ -1,5 +1,7 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- Template used up to ccm version 6.4 / aplaws 1.0..5 to create the build script. -->
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:common="http://exslt.org/common"

View File

@ -693,8 +693,13 @@
<target depends="init" name="copy-src-{$name}">
<copy todir="{$name}/${{build.classes.dir}}">
<fileset dir="{$name}/${{src.dir}}">
<exclude name="**/overview.html"/>
<exclude name="**/package.html"/>
<exclude name="**/*.java"/>
<!-- exclude files which are no longer used - during
transation and code clean-up phase only -->
<exclude name="**/*.java.nolongerInUse"/>
<exclude name="**/**.nolongerInUse"/>
</fileset>
</copy>
</target>
@ -704,7 +709,11 @@
<jar destfile="{$name}/${{build.dir}}/${{apps.{$name}.name}}-${{apps.{$name}.version}}.jar"
update="true">
<fileset dir="{$name}/${{build.classes.dir}}"/>
<fileset dir="{$name}/${{build.classes.dir}}">
<!-- exclude demo material to be included in jar (and war) files and war -->
<exclude name="**/demo**"/>
<exclude name="**/examples**"/>
</fileset>
<xsl:choose>
<xsl:when test="$haspdldir">
<manifest>