Update javac source and target variables so this can be build with the

1.8 or 11 jdk.
This commit is contained in:
kurt 2019-09-21 21:30:38 +00:00
parent cbb01c272e
commit b0c3553f8d
2 changed files with 27 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.17 2019/07/12 20:46:20 sthen Exp $
# $OpenBSD: Makefile,v 1.18 2019/09/21 21:30:38 kurt Exp $
COMMENT = brick shooter reflexion game
@ -7,7 +7,7 @@ GH_PROJECT= jbrickshooter
GH_COMMIT= 0445d9171cc46462970ae8eb08f0c7294c5707df
DISTNAME= ${GH_PROJECT}-1.6.0
CATEGORIES= games
REVISION= 2
REVISION= 3
# GPLv3
PERMIT_PACKAGE= Yes

View File

@ -0,0 +1,25 @@
$OpenBSD: patch-build_xml,v 1.1 2019/09/21 21:30:39 kurt Exp $
Index: build.xml
--- build.xml.orig
+++ build.xml
@@ -4,8 +4,8 @@
<property environment="env"/>
<property name="debug" value="false"/>
<property name="debuglevel" value="source,lines,vars"/>
- <property name="target" value="1.5"/>
- <property name="source" value="1.5"/>
+ <property name="target" value="1.8"/>
+ <property name="source" value="1.8"/>
<property name="name" value="jbrickshooter"/>
<property name="failonviolation" value="true"/>
@@ -58,7 +58,7 @@
<target name="pmd">
<taskdef name="pmd" classname="net.sourceforge.pmd.ant.PMDTask" classpathref="lib.classpath"/>
- <pmd failonerror="true" failonruleviolation="${failonviolation}" targetjdk="1.5">
+ <pmd failonerror="true" failonruleviolation="${failonviolation}">
<ruleset>doc/pmd_rules.xml</ruleset>
<fileset dir="src" includes="**/*.java"/>
<formatter type="text" toConsole="true"/>