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-94f89814c4dfmaster
parent
e5b503780f
commit
c432218345
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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,8 +709,12 @@
|
|||
|
||||
<jar destfile="{$name}/${{build.dir}}/${{apps.{$name}.name}}-${{apps.{$name}.version}}.jar"
|
||||
update="true">
|
||||
<fileset dir="{$name}/${{build.classes.dir}}"/>
|
||||
<xsl:choose>
|
||||
<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>
|
||||
<attribute name="Class-Path"
|
||||
|
|
|
|||
Loading…
Reference in New Issue