Build with maven-debian-helper
Emmanuel Bourg
8 years ago
0 | ant.build.javac.source=1.5 | |
1 | ant.build.javac.target=1.5 | |
2 | ||
3 | javadoc.dir=target/api | |
4 | build.sourceDirectory=src/java | |
5 | classpath.compile=\ | |
6 | ${basedir}/xstream/build/xstream-${version}.jar⏎ |
0 | <?xml version="1.0"?> | |
1 | ||
2 | <project name="xstream" default="package" basedir=".."> | |
3 | ||
4 | <property file="debian/build.properties"/> | |
5 | <property name="maven.build" value="/usr/share/maven-ant-helper/maven-build.xml"/> | |
6 | <property file="/usr/share/maven-ant-helper/maven-defaults.properties"/> | |
7 | ||
8 | <macrodef name="cleanmodule"> | |
9 | <attribute name="dir"/> | |
10 | <sequential> | |
11 | <ant target="clean" antfile="${maven.build}" dir="@{dir}"> | |
12 | <property name="debian.dir" location="debian" /> | |
13 | <property name="project.dir" value="@{dir}" /> | |
14 | </ant> | |
15 | </sequential> | |
16 | </macrodef> | |
17 | ||
18 | <macrodef name="packagemodule"> | |
19 | <attribute name="dir"/> | |
20 | <sequential> | |
21 | <ant target="package" antfile="${maven.build}" dir="@{dir}"> | |
22 | <property name="debian.dir" location="debian" /> | |
23 | <property name="project.dir" value="@{dir}" /> | |
24 | </ant> | |
25 | </sequential> | |
26 | </macrodef> | |
27 | ||
28 | <target name="clean"> | |
29 | <delete dir="build"/> | |
30 | <cleanmodule dir="xstream/"/> | |
31 | <cleanmodule dir="xstream-benchmark/"/> | |
32 | </target> | |
33 | ||
34 | <target name="package"> | |
35 | <packagemodule dir="xstream/"/> | |
36 | <packagemodule dir="xstream-benchmark/"/> | |
37 | </target> | |
38 | ||
39 | <target name="javadoc"> | |
40 | <javadoc destdir="${javadoc.dir}"> | |
41 | <packageset dir="xstream/src/java/"/> | |
42 | <packageset dir="xstream-benchmark/src/java/"/> | |
43 | </javadoc> | |
44 | </target> | |
45 | ||
46 | </project> |
0 | 0 | libxstream-java (1.4.8-2) UNRELEASED; urgency=medium |
1 | 1 | |
2 | * Build with maven-debian-helper | |
2 | 3 | * Standards-Version updated to 3.9.7 (no changes) |
3 | 4 | * Use secure Vcs-* fields |
4 | 5 | * Updated the old references to codehaus.org |
5 | 5 | Varun Hiremath <varun@debian.org>, |
6 | 6 | Damien Raude-Morvan <drazzib@debian.org>, |
7 | 7 | Emmanuel Bourg <ebourg@apache.org> |
8 | Build-Depends: ant, | |
9 | cdbs, | |
8 | Build-Depends: maven-debian-helper, | |
10 | 9 | debhelper (>= 9), |
11 | 10 | default-jdk, |
12 | 11 | javahelper, |
12 | libbuild-helper-maven-plugin-java, | |
13 | 13 | libcglib3-java, |
14 | 14 | libdom4j-java, |
15 | 15 | libjdom1-java, |
17 | 17 | libjettison-java, |
18 | 18 | libjoda-time-java, |
19 | 19 | libkxml2-java, |
20 | libmaven-bundle-plugin-java, | |
20 | 21 | libstax-java, |
21 | 22 | libstax2-api-java, |
22 | 23 | libwoodstox-java, |
23 | 24 | libxom-java, |
24 | libxpp3-java, | |
25 | maven-ant-helper, | |
26 | maven-repo-helper | |
25 | libxpp3-java | |
27 | 26 | Standards-Version: 3.9.7 |
28 | 27 | Vcs-Git: https://anonscm.debian.org/git/pkg-java/libxstream-java.git |
29 | 28 | Vcs-Browser: https://anonscm.debian.org/cgit/pkg-java/libxstream-java.git |
31 | 30 | |
32 | 31 | Package: libxstream-java |
33 | 32 | Architecture: all |
34 | Depends: libxpp3-java, ${misc:Depends} | |
35 | Suggests: libcglib3-java, | |
36 | libdom4j-java, | |
37 | libjdom1-java, | |
38 | libjdom2-java, | |
39 | libjettison-java, | |
40 | libjoda-time-java, | |
41 | libkxml2-java, | |
42 | libstax-java, | |
43 | libstax2-api-java, | |
44 | libwoodstox-java, | |
45 | libxom-java | |
33 | Depends: ${misc:Depends}, ${maven:Depends} | |
34 | Suggests: ${maven:OptionalDepends} | |
46 | 35 | Description: Java library to serialize objects to XML and back again |
47 | 36 | The features of the XStream library are: |
48 | 37 | . |
0 | pom.xml --no-parent | |
1 | xstream/pom.xml --java-lib | |
2 | xstream-benchmark/pom.xml --java-lib | |
0 | # List of POM files for the package | |
1 | # Format of this file is: | |
2 | # <path to pom file> [option]* | |
3 | # where option can be: | |
4 | # --ignore: ignore this POM and its artifact if any | |
5 | # --ignore-pom: don't install the POM. To use on POM files that are created | |
6 | # temporarily for certain artifacts such as Javadoc jars. [mh_install, mh_installpoms] | |
7 | # --no-parent: remove the <parent> tag from the POM | |
8 | # --package=<package>: an alternative package to use when installing this POM | |
9 | # and its artifact | |
10 | # --has-package-version: to indicate that the original version of the POM is the same as the upstream part | |
11 | # of the version for the package. | |
12 | # --keep-elements=<elem1,elem2>: a list of XML elements to keep in the POM | |
13 | # during a clean operation with mh_cleanpom or mh_installpom | |
14 | # --artifact=<path>: path to the build artifact associated with this POM, | |
15 | # it will be installed when using the command mh_install. [mh_install] | |
16 | # --java-lib: install the jar into /usr/share/java to comply with Debian | |
17 | # packaging guidelines | |
18 | # --usj-name=<name>: name to use when installing the library in /usr/share/java | |
19 | # --usj-version=<version>: version to use when installing the library in /usr/share/java | |
20 | # --no-usj-versionless: don't install the versionless link in /usr/share/java | |
21 | # --dest-jar=<path>: the destination for the real jar. | |
22 | # It will be installed with mh_install. [mh_install] | |
23 | # --classifier=<classifier>: Optional, the classifier for the jar. Empty by default. | |
24 | # --site-xml=<location>: Optional, the location for site.xml if it needs to be installed. | |
25 | # Empty by default. [mh_install] | |
26 | # | |
27 | pom.xml --no-parent --has-package-version | |
28 | xstream/pom.xml --has-package-version --java-lib | |
29 | xstream-benchmark/pom.xml --has-package-version --java-lib | |
30 | xstream-hibernate/pom.xml --ignore | |
31 | xstream-distribution/pom.xml --ignore |
18 | 18 | commons-io commons-io * * * * |
19 | 19 | commons-lang commons-lang * * * * |
20 | 20 | jmock jmock * * * * |
21 | junit junit * * * * | |
21 | 22 | org.apache.maven.plugins maven-assembly-plugin * * * * |
23 | org.apache.maven.plugins maven-dependency-plugin * * * * | |
22 | 24 | org.apache.maven.plugins maven-eclipse-plugin * * * * |
23 | 25 | org.apache.maven.plugins maven-enforcer-plugin * * * * |
24 | 26 | org.apache.maven.plugins maven-javadoc-plugin * * * * |
29 | 31 | org.apache.maven.wagon wagon-webdav * * * * |
30 | 32 | org.codehaus.mojo cobertura-maven-plugin * * * * |
31 | 33 | org.codehaus.mojo jxr-maven-plugin * * * * |
32 | org.codehaus.woodstox wstx-asl * * * * | |
33 | 34 | org.json json * * * * |
34 | 35 | oro oro * * * * |
35 | 36 | xmlpull xmlpull * * * * |
0 | # Include here properties to pass to Maven during the build. | |
1 | # For example: | |
2 | # maven.test.skip=true | |
3 | ||
4 | maven.test.skip=true |
15 | 15 | # and version starting with 3., replacing the version with 3.x |
16 | 16 | # junit junit jar s/3\..*/3.x/ |
17 | 17 | |
18 | com.thoughtworks.xstream xstream-benchmark jar s/.*/debian/ * * | |
19 | com.thoughtworks.xstream xstream-distribution pom s/.*/debian/ * * | |
20 | com.thoughtworks.xstream xstream-hibernate jar s/.*/debian/ * * | |
21 | com.thoughtworks.xstream xstream-parent pom s/.*/debian/ * * | |
22 | com.thoughtworks.xstream xstream jar s/.*/debian/ * * | |
23 | 18 | s/jdom/org.jdom/ jdom jar s/1\..*/debian/ * * |
24 | 19 | org.jdom jdom2 jar s/.*/debian/ * * |
25 | 20 | s/net.sf.kxml/kxml2/ kxml2-min jar s/.*/debian/ * * |
26 | 21 | s/net.sf.kxml/kxml2/ kxml2 jar s/.*/debian/ * * |
27 | joda-time joda-time jar s/.*/debian/ * * | |
28 | junit junit jar s/3\..*/3.x/ * * | |
29 | 22 | org.codehaus.jettison jettison s/bundle/jar/ s/.*/debian/ * * |
30 | s/hsqldb/org.hsqldb/ hsqldb * s/.*/debian/ * * | |
31 | s/jboss/javassist/ javassist * s/.*/debian/ * * | |
32 | cglib cglib * s/.*/3.x/ * * | |
23 | cglib cglib* * s/.*/3.x/ * * | |
24 | org.codehaus.woodstox s/wstx-asl/woodstox-core-lgpl/ * s/.*/debian/ * * |
0 | 0 | #!/usr/bin/make -f |
1 | 1 | |
2 | include /usr/share/cdbs/1/rules/debhelper.mk | |
3 | include /usr/share/cdbs/1/class/ant.mk | |
4 | ||
5 | PACKAGE := $(DEB_SOURCE_PACKAGE) | |
6 | VERSION := $(DEB_UPSTREAM_VERSION) | |
7 | JAVA_HOME := /usr/lib/jvm/default-java | |
8 | DEB_JARS := ant-nodeps xom joda-time jettison cglib3 dom4j xpp3 jdom1 jdom2 stax woodstox-core-lgpl kxml2 stax2-api | |
9 | DEB_ANT_BUILD_TARGET := package javadoc | |
10 | DEB_ANT_BUILDFILE := debian/build.xml | |
11 | DEB_ANT_ARGS := -Dbasedir=$(realpath .) -Dpackage=xstream -Dversion=$(VERSION) | |
12 | ||
13 | pre-build:: | |
14 | -rm xstream/src/java/com/thoughtworks/xstream/converters/reflection/HarmonyReflectionProvider.java | |
15 | ||
16 | binary-post-install/$(PACKAGE):: | |
17 | mh_installpoms -p$(PACKAGE) | |
18 | mh_installjar -p$(PACKAGE) -l xstream/pom.xml xstream/build/xstream-$(VERSION).jar | |
19 | mh_installjar -p$(PACKAGE) -l xstream-benchmark/pom.xml xstream-benchmark/build/xstream-benchmark-$(VERSION).jar | |
20 | jh_manifest | |
21 | ||
22 | clean:: | |
23 | mh_clean | |
24 | rm -Rf target | |
25 | mh_unpatchpoms -p$(PACKAGE) | |
2 | %: | |
3 | dh $@ --buildsystem=maven --with javahelper | |
26 | 4 | |
27 | 5 | get-orig-source: |
28 | uscan --force-download --rename | |
6 | uscan --download-current-version --force-download --rename --repack --compression xz |