New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #22736: jakarta-taglibs-standard-11-JDK-1.6.diff

File jakarta-taglibs-standard-11-JDK-1.6.diff, 1.9 KB (added by nox@…, 2 years ago)

A patch to make it work on Snow Leopard

  • files/patch-JDK-1.6.diff

     
     1--- src/org/apache/taglibs/standard/tag/common/sql/DataSourceWrapper.java.orig  2004-10-25 22:26:22.000000000 +0200 
     2+++ src/org/apache/taglibs/standard/tag/common/sql/DataSourceWrapper.java       2009-11-28 14:53:09.000000000 +0100 
     3@@ -111,5 +111,19 @@ 
     4         throw new SQLException(Resources.getMessage("NOT_SUPPORTED")); 
     5     } 
     6  
     7+    /** 
     8+     * Always throws a SQLException. Not supported. 
     9+     */ 
     10+    public boolean isWrapperFor(Class<?> iface) throws SQLException { 
     11+        throw new SQLException(Resources.getMessage("NOT_SUPPORTED")); 
     12+    } 
     13+ 
     14+    /** 
     15+     * Always throws a SQLException. Not supported. 
     16+     */ 
     17+    public <T> T unwrap(Class<T> iface) throws SQLException { 
     18+        throw new SQLException(Resources.getMessage("NOT_SUPPORTED")); 
     19+    } 
     20+ 
     21  
     22 } 
  • Portfile

     
    1414long_description        A version of the JSP Standard Tag Library (JSTL) adhering \ 
    1515                                        to the JSP JSTL 1.1 specification. Requires a JSP 2.0 \ 
    1616                                        compatible web container, such as Tomcat5. 
    17 homepage                        http://jakarta.apache.org/taglibs/doc/standard-doc/ 
     17homepage                        http://tomcat.apache.org/taglibs/standard/ 
    1818 
    1919distname                        jakarta-taglibs-standard-${version}-src 
    2020master_sites            apache:jakarta/taglibs/standard/source/ 
     
    6161 
    6262destroot { 
    6363        # Ensure needed directories 
    64         xinstall -m 755 -d \ 
     64        xinstall -d \ 
    6565                ${destroot}${prefix}/share/java \ 
    6666                ${destroot}${prefix}/share/doc \ 
    6767                ${destroot}${prefix}/share/examples 
     
    8383                ${worksrcpath}/examples \ 
    8484                ${destroot}${prefix}/share/examples/${name}      
    8585} 
     86 
     87platform darwin 10 { 
     88        patchfiles-append patch-JDK-1.6.diff 
     89}