Codebase list libxstream-java / 374b3da
Build with maven-debian-helper Emmanuel Bourg 8 years ago
9 changed file(s) with 51 addition(s) and 110 deletion(s). Raw diff Collapse all Expand all
+0
-7
debian/build.properties less more
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
-47
debian/build.xml less more
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>
00 libxstream-java (1.4.8-2) UNRELEASED; urgency=medium
11
2 * Build with maven-debian-helper
23 * Standards-Version updated to 3.9.7 (no changes)
34 * Use secure Vcs-* fields
45 * Updated the old references to codehaus.org
55 Varun Hiremath <varun@debian.org>,
66 Damien Raude-Morvan <drazzib@debian.org>,
77 Emmanuel Bourg <ebourg@apache.org>
8 Build-Depends: ant,
9 cdbs,
8 Build-Depends: maven-debian-helper,
109 debhelper (>= 9),
1110 default-jdk,
1211 javahelper,
12 libbuild-helper-maven-plugin-java,
1313 libcglib3-java,
1414 libdom4j-java,
1515 libjdom1-java,
1717 libjettison-java,
1818 libjoda-time-java,
1919 libkxml2-java,
20 libmaven-bundle-plugin-java,
2021 libstax-java,
2122 libstax2-api-java,
2223 libwoodstox-java,
2324 libxom-java,
24 libxpp3-java,
25 maven-ant-helper,
26 maven-repo-helper
25 libxpp3-java
2726 Standards-Version: 3.9.7
2827 Vcs-Git: https://anonscm.debian.org/git/pkg-java/libxstream-java.git
2928 Vcs-Browser: https://anonscm.debian.org/cgit/pkg-java/libxstream-java.git
3130
3231 Package: libxstream-java
3332 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}
4635 Description: Java library to serialize objects to XML and back again
4736 The features of the XStream library are:
4837 .
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
1818 commons-io commons-io * * * *
1919 commons-lang commons-lang * * * *
2020 jmock jmock * * * *
21 junit junit * * * *
2122 org.apache.maven.plugins maven-assembly-plugin * * * *
23 org.apache.maven.plugins maven-dependency-plugin * * * *
2224 org.apache.maven.plugins maven-eclipse-plugin * * * *
2325 org.apache.maven.plugins maven-enforcer-plugin * * * *
2426 org.apache.maven.plugins maven-javadoc-plugin * * * *
2931 org.apache.maven.wagon wagon-webdav * * * *
3032 org.codehaus.mojo cobertura-maven-plugin * * * *
3133 org.codehaus.mojo jxr-maven-plugin * * * *
32 org.codehaus.woodstox wstx-asl * * * *
3334 org.json json * * * *
3435 oro oro * * * *
3536 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
1515 # and version starting with 3., replacing the version with 3.x
1616 # junit junit jar s/3\..*/3.x/
1717
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/ * *
2318 s/jdom/org.jdom/ jdom jar s/1\..*/debian/ * *
2419 org.jdom jdom2 jar s/.*/debian/ * *
2520 s/net.sf.kxml/kxml2/ kxml2-min jar s/.*/debian/ * *
2621 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/ * *
2922 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/ * *
00 #!/usr/bin/make -f
11
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
264
275 get-orig-source:
28 uscan --force-download --rename
6 uscan --download-current-version --force-download --rename --repack --compression xz