summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrej Shadura <andrewsh@debian.org>2018-10-30 23:10:05 +0100
committerAndrej Shadura <andrewsh@debian.org>2018-10-31 13:30:14 +0100
commit306eeca546ea0e1d24576b6e1c5e2e7da13d35fc (patch)
tree38758f6adf61b49059be5e17f00efc117299829e
parentf3c75b0fa64c1c2e9900c0b40df565d3581f51ba (diff)
Adjust the packaging to use Gradle
-rw-r--r--debian/ant.properties10
-rw-r--r--debian/changelog6
-rw-r--r--debian/control34
-rw-r--r--debian/libjdom2-intellij-java-doc.doc-base (renamed from debian/libjdom2-java-doc.doc-base)6
-rw-r--r--debian/libjdom2-intellij-java-doc.install1
-rw-r--r--debian/libjdom2-intellij-java.poms (renamed from debian/libjdom2-java.poms)2
-rw-r--r--debian/libjdom2-java-doc.install1
-rw-r--r--debian/manifest6
-rw-r--r--debian/maven.rules1
-rwxr-xr-xdebian/orig-tar.sh23
-rw-r--r--debian/pom.xml128
-rwxr-xr-xdebian/rules25
12 files changed, 110 insertions, 133 deletions
diff --git a/debian/ant.properties b/debian/ant.properties
deleted file mode 100644
index 0dfd4c7..0000000
--- a/debian/ant.properties
+++ /dev/null
@@ -1,10 +0,0 @@
-compile.source=1.6
-compile.target=1.6
-
-version=2.x
-
-isorelax.jar = /usr/share/java/isorelax.jar
-jaxen.jar = /usr/share/java/jaxen.jar
-junit.jar = /usr/share/java/junit4.jar
-parser.jar = /usr/share/java/xercesImpl.jar
-xalan.jar = /usr/share/java/xalan2.jar
diff --git a/debian/changelog b/debian/changelog
index d3e0560..858ca83 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+libjdom2-intellij-java (2.0.6+git20180529-1) UNRELEASED; urgency=medium
+
+ *
+
+ -- Andrej Shadura <andrewsh@debian.org> Tue, 30 Oct 2018 23:09:18 +0100
+
libjdom2-java (2.0.6-1) unstable; urgency=medium
* New upstream release
diff --git a/debian/control b/debian/control
index 5cc70b1..8a269ea 100644
--- a/debian/control
+++ b/debian/control
@@ -1,8 +1,11 @@
-Source: libjdom2-java
+Source: libjdom2-intellij-java
Section: java
Priority: optional
Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>
-Uploaders: Emmanuel Bourg <ebourg@apache.org>
+Uploaders:
+ Andrej Shadura <andrewsh@debian.org>,
+ Emmanuel Bourg <ebourg@apache.org>,
+ Saif Abdul Cassim <saif.15@cse.mrt.ac.lk>
Build-Depends: ant, ant-optional, debhelper (>= 9), default-jdk
Build-Depends-Indep: javahelper,
junit4,
@@ -12,28 +15,32 @@ Build-Depends-Indep: javahelper,
libxerces2-java,
maven-repo-helper (>= 1.5)
Standards-Version: 3.9.5
-Vcs-Git: https://salsa.debian.org/java-team/libjdom2-java.git
-Vcs-Browser: https://salsa.debian.org/java-team/libjdom2-java
-Homepage: http://jdom.org
+Vcs-Git: https://salsa.debian.org/java-team/libjdom2-intellij-java.git
+Vcs-Browser: https://salsa.debian.org/java-team/libjdom2-intellij-java
+Homepage: https://github.com/JetBrains/intellij-deps-jdom
-Package: libjdom2-java
+Package: libjdom2-intellij-java
Architecture: all
Depends: libjaxen-java, ${misc:Depends}
-Suggests: libjdom2-java-doc
-Description: lightweight and fast library using XML
+Suggests: libjdom2-intellij-java-doc
+Description: lightweight and fast XML DOM library (IntelliJ version)
JDOM is, quite simply, a Java representation of an XML document. JDOM
provides a way to represent that document for easy and efficient
reading, manipulation, and writing. It has a straightforward API, is
lightweight and fast, and is optimized for the Java programmer. It's
an alternative to DOM and SAX, although it integrates well with both
DOM and SAX.
+ .
+ This is a patched versions of JDOM project which is used in IntelliJ
+ Platform. It is based on the JDOM 2.0.x branch and patched to restore
+ compatibility with JDOM 1.1.
-Package: libjdom2-java-doc
+Package: libjdom2-intellij-java-doc
Architecture: all
Section: doc
Depends: ${misc:Depends}
-Suggests: libjdom2-java
-Description: lightweight and fast library using XML - documentation
+Suggests: libjdom2-intellij-java
+Description: documentation for IntelliJ version of JDOM2 library
JDOM is, quite simply, a Java representation of an XML document. JDOM
provides a way to represent that document for easy and efficient
reading, manipulation, and writing. It has a straightforward API, is
@@ -41,4 +48,7 @@ Description: lightweight and fast library using XML - documentation
an alternative to DOM and SAX, although it integrates well with both
DOM and SAX.
.
- This package contains API documentation (Javadoc) of libjdom2-java.
+ This is a patched versions of JDOM project which is used in IntelliJ
+ Platform. It is based on the JDOM 2.0.x branch and patched to restore
+ .
+ This package contains API documentation (Javadoc) of libjdom2-intellij-java.
diff --git a/debian/libjdom2-java-doc.doc-base b/debian/libjdom2-intellij-java-doc.doc-base
index dab2098..6e79fda 100644
--- a/debian/libjdom2-java-doc.doc-base
+++ b/debian/libjdom2-intellij-java-doc.doc-base
@@ -1,4 +1,4 @@
-Document: libjdom2-java
+Document: libjdom2-intellij-java
Title: Programmer API for jdom release 2.0
Author: http://www.jdom.org/
Abstract: Programmer API of the JDOM 2.0 release a
@@ -6,5 +6,5 @@ Abstract: Programmer API of the JDOM 2.0 release a
Section: Programming
Format: HTML
-Index: /usr/share/doc/libjdom2-java/api/index.html
-Files: /usr/share/doc/libjdom2-java/api/*
+Index: /usr/share/doc/libjdom2-intellij-java/api/index.html
+Files: /usr/share/doc/libjdom2-intellij-java/api/*
diff --git a/debian/libjdom2-intellij-java-doc.install b/debian/libjdom2-intellij-java-doc.install
new file mode 100644
index 0000000..74aaab1
--- /dev/null
+++ b/debian/libjdom2-intellij-java-doc.install
@@ -0,0 +1 @@
+core/build/docs/javadoc/* /usr/share/doc/libjdom2-intellij-java/api/
diff --git a/debian/libjdom2-java.poms b/debian/libjdom2-intellij-java.poms
index 6da8f2a..4ca6d60 100644
--- a/debian/libjdom2-java.poms
+++ b/debian/libjdom2-intellij-java.poms
@@ -1 +1 @@
-debian/pom.xml --no-parent --has-package-version --java-lib --usj-name=jdom2 --artifact=build/package/jdom-2.x.jar
+debian/pom.xml --no-parent --has-package-version --java-lib --usj-name=jdom2-intellij --artifact=core/build/libs/jdom.jar
diff --git a/debian/libjdom2-java-doc.install b/debian/libjdom2-java-doc.install
deleted file mode 100644
index d1ffcb8..0000000
--- a/debian/libjdom2-java-doc.install
+++ /dev/null
@@ -1 +0,0 @@
-build/apidocs/* /usr/share/doc/libjdom2-java/api/
diff --git a/debian/manifest b/debian/manifest
index fddf233..c4439ff 100644
--- a/debian/manifest
+++ b/debian/manifest
@@ -1,8 +1,8 @@
-/usr/share/java/jdom2.jar:
+/usr/share/java/jdom2-intellij.jar:
Bundle-ManifestVersion: 2
Bundle-Name: JDOM XML
Bundle-Vendor: jdom.org
Bundle-SymbolicName: org.jdom2
- Bundle-Version: 2.0.5
- Export-Package: org.jdom2.contrib.beans;version="2.0.5",org.jdom2.internal;version="2.0.5",org.jdom2.output;uses:="org.jdom2.output.support,org.jdom2.internal,org.jdom2.adapters,org.jdom2,org.w3c.dom,org.xml.sax,org.xml.sax.ext,javax.xml.stream,javax.xml.stream.util";version="2.0.5",org.jdom2.contrib.input.scanner;version="2.0.5",org.jdom2.input;uses:="org.jdom2,org.w3c.dom,org.xml.sax,org.jdom2.input.sax,org.jdom2.input.stax,javax.xml.stream,javax.xml.stream.events,javax.xml.namespace";version="2.0.5",org.jdom2.util;uses:="org.jdom2,org.jdom2.internal";version="2.0.5",org.jdom2.transform;uses:="org.xml.sax.ext,org.jdom2,org.xml.sax.helpers,org.xml.sax,org.jdom2.input.sax,javax.xml.transform.sax,org.jdom2.output,javax.xml.transform,javax.xml.transform.stream";version="2.0.5",org.jdom2.contrib.helpers;version="2.0.5",org.jdom2.contrib.input.scanner.doc-files;version="2.0.5",org.jdom2.test;version="2.0.5",org.jdom2.adapters;uses:="org.jdom2,org.w3c.dom,javax.xml.parsers";version="2.0.5",org.jdom2.located;uses:="org.jdom2";version="2.0.5",org.jdom2.xpath.jaxen;uses:="org.jaxen.saxpath,org.jaxen,org.jdom2.input,org.jdom2,org.jaxen.util,org.jdom2.xpath,org.jdom2.xpath.util,org.jdom2.filter";version="2.0.5",org.jdom2.test.cases.special;version="2.0.5",org.jdom2.input.stax;uses:="org.jdom2";version="2.0.5",org.jdom2.contrib.dom;version="2.0.5",org.jdom2.contrib.ids;version="2.0.5",org.jdom2.output.support;uses:="org.jdom2,org.jdom2.output,org.jdom2.util,org.w3c.dom,org.jdom2.internal,org.xml.sax.ext,org.xml.sax.helpers,org.xml.sax,javax.xml.stream,javax.xml.stream.events,javax.xml.stream.util";version="2.0.5",org.jdom2.input.sax;uses:="javax.xml.parsers,javax.xml.validation,org.jdom2,org.xml.sax,javax.xml.transform,javax.xml.transform.stream,org.jdom2.input,org.xml.sax.ext,org.xml.sax.helpers,org.jdom2.internal";version="2.0.5",org.jdom2.contrib.input;version="2.0.5",org.jdom2.xpath.util;uses:="org.jdom2,org.jdom2.xpath,org.jdom2.filter";version="2.0.5",org.jdom2;uses:="org.jdom2.internal,org.jdom2.output,org.jdom2.filter,org.jdom2.util";version="2.0.5",org.jdom2.contrib.output;version="2.0.5",org.jdom2.xpath;uses:="org.jdom2,org.jdom2.filter,org.jdom2.internal,org.jdom2.xpath.jaxen";version="2.0.5",org.jdom2.contrib.ids.doc-files;version="2.0.5",org.jdom2.filter;uses:="org.jdom2";version="2.0.5"
+ Bundle-Version: 2.0.6
+ Export-Package: org.jdom2.contrib.beans;version="2.0.6",org.jdom2.internal;version="2.0.6",org.jdom2.output;uses:="org.jdom2.output.support,org.jdom2.internal,org.jdom2.adapters,org.jdom2,org.w3c.dom,org.xml.sax,org.xml.sax.ext,javax.xml.stream,javax.xml.stream.util";version="2.0.6",org.jdom2.contrib.input.scanner;version="2.0.6",org.jdom2.input;uses:="org.jdom2,org.w3c.dom,org.xml.sax,org.jdom2.input.sax,org.jdom2.input.stax,javax.xml.stream,javax.xml.stream.events,javax.xml.namespace";version="2.0.6",org.jdom2.util;uses:="org.jdom2,org.jdom2.internal";version="2.0.6",org.jdom2.transform;uses:="org.xml.sax.ext,org.jdom2,org.xml.sax.helpers,org.xml.sax,org.jdom2.input.sax,javax.xml.transform.sax,org.jdom2.output,javax.xml.transform,javax.xml.transform.stream";version="2.0.6",org.jdom2.contrib.helpers;version="2.0.6",org.jdom2.contrib.input.scanner.doc-files;version="2.0.6",org.jdom2.test;version="2.0.6",org.jdom2.adapters;uses:="org.jdom2,org.w3c.dom,javax.xml.parsers";version="2.0.6",org.jdom2.located;uses:="org.jdom2";version="2.0.6",org.jdom2.xpath.jaxen;uses:="org.jaxen.saxpath,org.jaxen,org.jdom2.input,org.jdom2,org.jaxen.util,org.jdom2.xpath,org.jdom2.xpath.util,org.jdom2.filter";version="2.0.6",org.jdom2.test.cases.special;version="2.0.6",org.jdom2.input.stax;uses:="org.jdom2";version="2.0.6",org.jdom2.contrib.dom;version="2.0.6",org.jdom2.contrib.ids;version="2.0.6",org.jdom2.output.support;uses:="org.jdom2,org.jdom2.output,org.jdom2.util,org.w3c.dom,org.jdom2.internal,org.xml.sax.ext,org.xml.sax.helpers,org.xml.sax,javax.xml.stream,javax.xml.stream.events,javax.xml.stream.util";version="2.0.6",org.jdom2.input.sax;uses:="javax.xml.parsers,javax.xml.validation,org.jdom2,org.xml.sax,javax.xml.transform,javax.xml.transform.stream,org.jdom2.input,org.xml.sax.ext,org.xml.sax.helpers,org.jdom2.internal";version="2.0.6",org.jdom2.contrib.input;version="2.0.6",org.jdom2.xpath.util;uses:="org.jdom2,org.jdom2.xpath,org.jdom2.filter";version="2.0.6",org.jdom2;uses:="org.jdom2.internal,org.jdom2.output,org.jdom2.filter,org.jdom2.util";version="2.0.6",org.jdom2.contrib.output;version="2.0.6",org.jdom2.xpath;uses:="org.jdom2,org.jdom2.filter,org.jdom2.internal,org.jdom2.xpath.jaxen";version="2.0.6",org.jdom2.contrib.ids.doc-files;version="2.0.6",org.jdom2.filter;uses:="org.jdom2";version="2.0.6"
Import-Package: javax.xml.namespace,javax.xml.parsers,javax.xml.stream,javax.xml.stream.events,javax.xml.stream.util,javax.xml.transform,javax.xml.transform.sax,javax.xml.transform.stream,javax.xml.validation,oracle.xml.parser;resolution:=optional,oracle.xml.parser.v2;resolution:=optional,org.apache.xerces.dom;resolution:=optional,org.apache.xerces.parsers;resolution:=optional,org.jaxen;resolution:=optional,org.jaxen.saxpath;resolution:=optional,org.jaxen.util;resolution:=optional,org.jdom;version="1.1",org.jdom.adapters;version="1.1",org.jdom.filter;version="1.1",org.jdom.input;version="1.1",org.jdom.output;version="1.1",org.jdom.transform;version="1.1",org.jdom.xpath;version="1.1",org.w3c.dom,org.xml.sax,org.xml.sax.ext,org.xml.sax.helpers
diff --git a/debian/maven.rules b/debian/maven.rules
index 9af44f2..9796dc0 100644
--- a/debian/maven.rules
+++ b/debian/maven.rules
@@ -1 +1,2 @@
s/xerces/xml-apis/ s/xmlParserAPIs/xml-apis/ jar s/.*/debian/
+junit junit * s/.*/4.x/ * *
diff --git a/debian/orig-tar.sh b/debian/orig-tar.sh
deleted file mode 100755
index b453707..0000000
--- a/debian/orig-tar.sh
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/bin/sh -e
-
-VERSION=$(echo $2)
-TAR=../libjdom2-java_${VERSION}.orig.tar.xz
-DIR=jdom-JDOM-*
-
-tar xvf $3
-rm $3
-XZ_OPT=--best tar -c -J -f $TAR \
- --exclude '*.jar' \
- --exclude '.gitignore' \
- --exclude 'hamlet.xml' \
- --exclude 'core/samples/catalog.xml' \
- --exclude 'core/samples/catalog.xsl' \
- $DIR
-rm -rf $DIR
-
-# move to directory 'tarballs'
-if [ -r .svn/deb-layout ]; then
- . .svn/deb-layout
- mv $TAR $origDir
- echo "moved $TAR to $origDir"
-fi
diff --git a/debian/pom.xml b/debian/pom.xml
index 685860e..9e83910 100644
--- a/debian/pom.xml
+++ b/debian/pom.xml
@@ -1,15 +1,17 @@
<project>
<modelVersion>4.0.0</modelVersion>
- <groupId>org.jdom</groupId>
- <artifactId>jdom2</artifactId>
+ <groupId>org.jetbrains.intellij.deps</groupId>
+ <artifactId>jdom</artifactId>
<packaging>jar</packaging>
- <name>JDOM</name>
- <version>2.0.5</version>
+ <name>IntelliJ JDOM</name>
+ <version>2.0.6</version>
<description>
A complete, Java-based solution for accessing, manipulating,
- and outputting XML data
+ and outputting XML data.
+ This is a patched versions of JDOM project which is used in IntelliJ Platform.
+ It's based on JDOM 2.0.x version and patched to restore compatibility with JDOM 1.1.
</description>
<url>http://www.jdom.org</url>
@@ -33,60 +35,60 @@
<distribution>repo</distribution>
<comments xml:space="preserve"><![CDATA[
-/*--
-
- Copyright (C) 2000-2012 Jason Hunter & Brett McLaughlin.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without
- modification, are permitted provided that the following conditions
- are met:
-
- 1. Redistributions of source code must retain the above copyright
- notice, this list of conditions, and the following disclaimer.
-
- 2. Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions, and the disclaimer that follows
- these conditions in the documentation and/or other materials
- provided with the distribution.
-
- 3. The name "JDOM" must not be used to endorse or promote products
- derived from this software without prior written permission. For
- written permission, please contact <request_AT_jdom_DOT_org>.
-
- 4. Products derived from this software may not be called "JDOM", nor
- may "JDOM" appear in their name, without prior written permission
- from the JDOM Project Management <request_AT_jdom_DOT_org>.
-
- In addition, we request (but do not require) that you include in the
- end-user documentation provided with the redistribution and/or in the
- software itself an acknowledgement equivalent to the following:
- "This product includes software developed by the
- JDOM Project (http://www.jdom.org/)."
- Alternatively, the acknowledgment may be graphical using the logos
- available at http://www.jdom.org/images/logos.
-
- THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
- WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- DISCLAIMED. IN NO EVENT SHALL THE JDOM AUTHORS OR THE PROJECT
- CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- SUCH DAMAGE.
-
- This software consists of voluntary contributions made by many
- individuals on behalf of the JDOM Project and was originally
- created by Jason Hunter <jhunter_AT_jdom_DOT_org> and
- Brett McLaughlin <brett_AT_jdom_DOT_org>. For more information
- on the JDOM Project, please see <http://www.jdom.org/>.
-
- */
-
+/*--
+
+ Copyright (C) 2000-2012 Jason Hunter & Brett McLaughlin.
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+
+ 1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions, and the following disclaimer.
+
+ 2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions, and the disclaimer that follows
+ these conditions in the documentation and/or other materials
+ provided with the distribution.
+
+ 3. The name "JDOM" must not be used to endorse or promote products
+ derived from this software without prior written permission. For
+ written permission, please contact <request_AT_jdom_DOT_org>.
+
+ 4. Products derived from this software may not be called "JDOM", nor
+ may "JDOM" appear in their name, without prior written permission
+ from the JDOM Project Management <request_AT_jdom_DOT_org>.
+
+ In addition, we request (but do not require) that you include in the
+ end-user documentation provided with the redistribution and/or in the
+ software itself an acknowledgement equivalent to the following:
+ "This product includes software developed by the
+ JDOM Project (http://www.jdom.org/)."
+ Alternatively, the acknowledgment may be graphical using the logos
+ available at http://www.jdom.org/images/logos.
+
+ THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+ WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ DISCLAIMED. IN NO EVENT SHALL THE JDOM AUTHORS OR THE PROJECT
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ SUCH DAMAGE.
+
+ This software consists of voluntary contributions made by many
+ individuals on behalf of the JDOM Project and was originally
+ created by Jason Hunter <jhunter_AT_jdom_DOT_org> and
+ Brett McLaughlin <brett_AT_jdom_DOT_org>. For more information
+ on the JDOM Project, please see <http://www.jdom.org/>.
+
+ */
+
]]></comments>
@@ -116,19 +118,19 @@
<dependency>
<groupId>jaxen</groupId>
<artifactId>jaxen</artifactId>
- <version>1.1.4</version>
+ <version>1.1.6</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>xerces</groupId>
<artifactId>xercesImpl</artifactId>
- <version>2.10.0</version>
+ <version>2.11.0</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>xalan</groupId>
<artifactId>xalan</artifactId>
- <version>2.7.1</version>
+ <version>2.7.2</version>
<optional>true</optional>
</dependency>
@@ -137,4 +139,4 @@
<properties>
<jdk.version>1.5</jdk.version>
</properties>
-</project> \ No newline at end of file
+</project>
diff --git a/debian/rules b/debian/rules
index 0c3d08b..94b85f6 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,23 +1,14 @@
#!/usr/bin/make -f
-VERSION := $(shell dpkg-parsechangelog | grep ^Version: | cut -d' ' -f2 | cut -d'-' -f1)
-UPSTREAM_VERSION := $(shell echo "$(VERSION)" | sed 's/+dfsg//')
-
-JAVA_HOME := /usr/lib/jvm/default-java
-ANT_ARGS := -propertyfile debian/ant.properties
-ANT := JAVA_HOME=$(JAVA_HOME) ant $(ANT_ARGS)
-
%:
- dh $@ --buildsystem=ant --with maven_repo_helper,javahelper
-
-override_dh_auto_build:
- $(ANT) jars junit
+ dh $@ --buildsystem=gradle --with maven-repo-helper
override_dh_auto_clean:
- rm -Rf build
-
-get-orig-source:
- -uscan --download-version $(UPSTREAM_VERSION) --force-download --rename
+ -[ -f contrib/build.gradle ] && mv -f contrib/build.gradle.orig contrib/build.gradle
+ dh_auto_clean
-get-orig-pom:
- wget -U '' -O debian/pom.xml http://repo1.maven.org/maven2/org/jdom/jdom2/$(UPSTREAM_VERSION)/jdom2-$(UPSTREAM_VERSION).pom
+override_dh_auto_build:
+ cp contrib/build.gradle contrib/build.gradle.orig
+ echo "sourceCompatibility = '1.7'" >> contrib/build.gradle
+ echo "targetCompatibility = '1.7'" >> contrib/build.gradle
+ dh_auto_build -- assemble javaDoc