Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.java > #11325 > unrolled thread
| Started by | Vincent Prat <vinceprat@free.fr> |
|---|---|
| First post | 2019-08-19 15:50 +0200 |
| Last post | 2019-08-23 14:50 +0200 |
| Articles | 3 — 2 participants |
Back to article view | Back to linux.debian.maint.java
Packaging NatTable Vincent Prat <vinceprat@free.fr> - 2019-08-19 15:50 +0200
Re: Packaging NatTable, more details Vincent Prat <vinceprat@free.fr> - 2019-08-22 10:40 +0200
Re: Packaging NatTable, more details Markus Koschany <apo@debian.org> - 2019-08-23 14:50 +0200
| From | Vincent Prat <vinceprat@free.fr> |
|---|---|
| Date | 2019-08-19 15:50 +0200 |
| Subject | Packaging NatTable |
| Message-ID | <ywQcN-5pD-7@gated-at.bofh.it> |
Hi all, I have finished packaging the core library using eclipse-debian-helper. Should I also package extensions even if I do not plan to use them? Examples and tests are also provided, as java classes. Should I install the examples? If yes, should I build them or provide them as is? What about tests? It would be nice to declare an autopkgtest test suite. Has anyone done this for a Java package? Thanks in advance for your answers. Best regards, Vincent
[toc] | [next] | [standalone]
| From | Vincent Prat <vinceprat@free.fr> |
|---|---|
| Date | 2019-08-22 10:40 +0200 |
| Subject | Re: Packaging NatTable, more details |
| Message-ID | <yxQNs-3DH-11@gated-at.bofh.it> |
| In reply to | #11325 |
Le 19/08/2019 à 15:46, Vincent Prat a écrit : > Hi all, > > I have finished packaging the core library using eclipse-debian-helper. > Should I also package extensions even if I do not plan to use them? > > Examples and tests are also provided, as java classes. > Should I install the examples? If yes, should I build them or provide > them as is? > What about tests? It would be nice to declare an autopkgtest test suite. > Has anyone done this for a Java package? > > Thanks in advance for your answers. > > Best regards, > Vincent Hi all, Let me explain a bit more the situation. The upstream tarball contains several directories with Java source files: - the core library (nattable.core); - some extensions of the core library (nattable.extension.*); - examples (nattable.examples.*), for both the core library and the extensions; - tests (nattable.*.test), also for both; - a dataset library (nattable.dataset) used by examples and tests to generate fake data. As already mentionend, I have packaged the core library as an eclipse bundle using eclipse-debian-helper. It results in a package named libeclipse-nebula-widgets-nattable-core-java. My first question was about the extensions. To package HDFView (which is the reason why I want NatTable in Debian), I only need the core library. Should I also package the extensions as eclipse bundles (libeclipse-nebula-widgets-nattable-extension-*-java) even though I do not need them? My second question was about the examples. For me, it does not seem a good idea to package them as independent eclipse bundles. The simplest solution is to add them as is (i.e. Java source files) to the corresponding packages using <packagename>.examples files. Another solution would be to manually build the examples before installing them. What is the best option? There is also another problem: the examples depend on the dataset library. Does it mean that I should also package it, so that the user can compile and/or run the examples, even though this library is useless apart from examples and tests? My third question was about the tests. On the one hand, as for examples, I do not think it is a good idea to package them separately. On the other hand, I do not know how to add tests to an eclipse bundle. I guess I could try to manually build the tests and install them in the corresponding packages. In addition, is there a standard way to collect and run JUnit tests? Again, the tests would require to package the dataset library. I would value any opinion on these questions. Thank you in advance. Best regards, Vincent
[toc] | [prev] | [next] | [standalone]
| From | Markus Koschany <apo@debian.org> |
|---|---|
| Date | 2019-08-23 14:50 +0200 |
| Subject | Re: Packaging NatTable, more details |
| Message-ID | <yyhaV-3BD-5@gated-at.bofh.it> |
| In reply to | #11329 |
[Multipart message — attachments visible in raw view] — view raw
Am 22.08.19 um 10:35 schrieb Vincent Prat: > Le 19/08/2019 à 15:46, Vincent Prat a écrit : >> Hi all, >> >> I have finished packaging the core library using eclipse-debian-helper. >> Should I also package extensions even if I do not plan to use them? You don't need to package the extensions if there are not required to build a package from source or if they are not needed at runtime. >> >> Examples and tests are also provided, as java classes. >> Should I install the examples? If yes, should I build them or provide >> them as is? Building and running the tests is always a good idea, installing the examples is optional. >> What about tests? It would be nice to declare an autopkgtest test suite. >> Has anyone done this for a Java package? Not yet. Some simple tests would be nice. Regards, Markus
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.maint.java
csiph-web