Skip to content
Permalink
Browse files

Reported by: Greg Kick

Force commons-el to compile with source compatibility set to java 1.4, so that the compiler
doesn't blow up on variables named enum. Allows it to be built with java CurrentJDK set to
1.5.

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@15056 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
jdberry committed Nov 17, 2005
1 parent 5c34e2c commit 3f75cec6a27e35abaac3e4232e6e9ecc47e203bc
Showing with 7 additions and 1 deletion.
  1. +7 −1 java/commons-el/Portfile
@@ -1,9 +1,10 @@
# $Id: Portfile,v 1.4 2005/04/19 18:15:05 jberry Exp $
# $Id: Portfile,v 1.5 2005/11/17 04:52:49 jberry Exp $

PortSystem 1.0

name commons-el
version 1.0
revision 1

categories java
maintainers jberry@opendarwin.org
@@ -34,6 +35,11 @@ build.args -Djunit.jar=${prefix}/share/java/junit.jar \
-Dservletapi.build.notrequired=true \
-Djspapi.build.notrequired=true

post-patch {
# Force source 1.4 so javac doesn't blow up on variables named enum
reinplace {s|<javac |<javac source="1.4" |} ${worksrcpath}/build.xml
}

pre-build {
system "touch ${workpath}/LICENSE"
}

0 comments on commit 3f75cec

Please sign in to comment.
You can’t perform that action at this time.