header

Torsten Curdt’s weblog

Building Debian packages in java

Just recently I looked into creating Debian packages in java. Funny enough Stefan was also blogging about this. Deployment is so much easier with apt-get. I just love it. Why not leverage that also for java deployments?

So I came up with this little project called jdeb. It provides an ant task to create a Debian package right from you build system. It’s just a first, fairly simple version and I hope to provide a maven plugin as well. But it works …and of course contributions or feedback is welcome.

6 Responses to “Building Debian packages in java”

  1. -marc= said, on 23. January 2007 at 16:49

    If time permits I hope to be contributing more sensible stuff :-)

    Index: src/site/apt/downloads.apt
    ===================================================================
    — src/site/apt/downloads.apt (revision 49)
    +++ src/site/apt/downloads.apt (working copy)
    @@ -1,6 +1,6 @@
    Downloads

    - The official releases are available through the maven2 repository on repo1.maver.org.
    + The official releases are available through the maven2 repository on repo1.maven.org.

    * Version 0.1

  2. zach said, on 23. May 2007 at 9:32

    Thanks for this project it’s VERY useful.

    I ran into issues when I included the empty sample scripts in the deb dir of the jar to the control dir. the package wouldn’t install and actual broke my synaptic and jdebi, aptitude still worked though, but I could not remove the package because it wasn’t fully installed. I had to re-install it without those scripts for it to work. Definitely due to my lack of knowledge.

    thanks again!

  3. Marius Scurtescu said, on 31. May 2007 at 15:37

    A few weeks ago I started a similar project (and found yours only a few days ago):
    http://code.google.com/p/ant-deb-task/

    Under what license is your code released?

    Cheers,
    Marius

  4. Michael said, on 11. December 2007 at 0:17

    Hi - I am trying to use this but the “exclude” feature doesn’t seem to be working.

    Could it be because my “src” path is up one level? E.g.:

  5. tcurdt said, on 11. December 2007 at 10:53

    @Marius: Code is all released under ASL 2.0

  6. tcurdt said, on 11. December 2007 at 10:56

    @Michael: Thanks for the mail explaining your problems …I cannot reproduce them though. Works fine for me and jdeb is basically using the standard Ant PatternSet class. Very weird.

Leave a Reply

Please copy the string LtZC1Q to the field below: