Added JavaMail dependencies to Queue package since bcel wasn't picking them up.
Added the ability to add a file path to a package. Checking for missing files when packaging. git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@5685 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
parent
1158c99726
commit
ed6da6f72d
|
|
@ -42,6 +42,27 @@
|
|||
<fail message="Resource bundle {@file} not found" unless="is.{@file}.present" />
|
||||
</xsl:for-each>
|
||||
|
||||
<!-- Verify that all files specified are present -->
|
||||
<xsl:for-each select="//dependencies/file">
|
||||
<xsl:choose>
|
||||
<xsl:when test="@name">
|
||||
<available property="is.{@name}.present" file="{$staging.dir}/{@name}" type="file"/>
|
||||
<fail message="File dependency {@name} not found" unless="is.{@name}.present" />
|
||||
</xsl:when>
|
||||
<xsl:when test="@path">
|
||||
<available property="is.{@path}.present" file="{$staging.dir}/{@path}" type="file"/>
|
||||
<fail message="File dependency {@path} not found" unless="is.{@path}.present" />
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<fail message="File dependency must specify a name or a path"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:for-each>
|
||||
<xsl:for-each select="//dependencies/dir">
|
||||
<available property="is.{@name}.present" file="{$staging.dir}/{@name}" type="dir"/>
|
||||
<fail message="Directory {@name} not found" unless="is.{@name}.present" />
|
||||
</xsl:for-each>
|
||||
|
||||
<!-- Create an output directory for the package -->
|
||||
<mkdir dir="{$package.dir}"/>
|
||||
|
||||
|
|
@ -145,7 +166,18 @@
|
|||
</xsl:for-each>
|
||||
</classfileset>
|
||||
<xsl:for-each select="file">
|
||||
<fileset file="{$staging.dir}/{@name}" />
|
||||
<xsl:choose>
|
||||
<xsl:when test="@name">
|
||||
<fileset file="{$staging.dir}/{@name}" />
|
||||
</xsl:when>
|
||||
<xsl:when test="@path">
|
||||
<fileset dir="{$staging.dir}">
|
||||
<xsl:attribute name="includes">
|
||||
<xsl:value-of select="@path"/>
|
||||
</xsl:attribute>
|
||||
</fileset>
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
</xsl:for-each>
|
||||
<xsl:for-each select="dir">
|
||||
<fileset dir="{$staging.dir}">
|
||||
|
|
|
|||
|
|
@ -42,6 +42,18 @@
|
|||
<!-- Picard -->
|
||||
<package name="net.sf.picard.**" />
|
||||
|
||||
<!-- JavaMail -->
|
||||
<package name="javax.activation.**" />
|
||||
<package name="javax.mail.**" />
|
||||
<package name="com.sun.activation.**" />
|
||||
<package name="com.sun.mail.**" />
|
||||
<file path="META-INF/javamail.charset.map" />
|
||||
<file path="META-INF/javamail.default.address.map" />
|
||||
<file path="META-INF/javamail.default.providers" />
|
||||
<file path="META-INF/mailcap" />
|
||||
<file path="META-INF/mailcap.default" />
|
||||
<file path="META-INF/mimetypes.default" />
|
||||
|
||||
<!-- JNA, including embedded native libraries -->
|
||||
<dir name="com/sun/jna" />
|
||||
</dependencies>
|
||||
|
|
|
|||
Loading…
Reference in New Issue