tcurdt / jdeb

This library provides an Ant task and a Maven plugin to create Debian packages from Java builds in a truly cross platform manner.
https://github.com/tcurdt/jdeb
Apache License 2.0
505 stars 293 forks source link

Where are the deb/control files located #592

Closed ramanianushan closed 9 months ago

ramanianushan commented 9 months ago

Hi, I am trying to convert the source into a deb package and came across the below task.

When i am trying to run this on ubuntu, getting the error --> Data source not found : /home/ubuntu/amazon-kinesis-agent/src/main/resources/deb/data

how to resolve this error? Where we can get the source

tcurdt commented 9 months ago

Ant? Maven? Did you have a look at the examples? Or the docs? What does your configuration look like?

You have to be a bit more specific for anyone to help you.

ramanianushan commented 9 months ago

Yes, its an ant build.. I am following the below documentation. Its not clear how to load the data files and control files that the task needs

https://github.com/tcurdt/jdeb/blob/master/docs/ant.md

tcurdt commented 9 months ago

Please check out the example

https://github.com/tcurdt/jdeb/blob/master/src/examples/ant/build.xml#L30

https://github.com/tcurdt/jdeb/blob/master/src/examples/ant/build.xml#L41

ramanianushan commented 9 months ago

Got it.. Thanks for providing the references... I made some progress.. This is the error i am getting now

Caused by: java.io.FileNotFoundException: /home/ubuntu/amazon-kinesis-agent/ant_build/deb/control/control (No such file or directory) at java.base/java.io.FileInputStream.open0(Native Method) at java.base/java.io.FileInputStream.open(FileInputStream.java:219) at java.base/java.io.FileInputStream.(FileInputStream.java:157) at org.vafer.jdeb.ControlBuilder.createPackageControlFile(ControlBuilder.java:182) at org.vafer.jdeb.DebMaker.createSignedDeb(DebMaker.java:505)

tcurdt commented 9 months ago

No such file "/home/ubuntu/amazon-kinesis-agent/ant_build/deb/control/control"

https://github.com/tcurdt/jdeb/blob/09c0eeaccf9c90f857dbde27781fa9d8c0bdb87e/src/examples/ant/build.xml#L30 https://github.com/tcurdt/jdeb/blob/master/src/examples/ant/src/deb/control/control

tcurdt commented 9 months ago

If you got it to work please close the issue. Thanks!

ramanianushan commented 9 months ago

I copied the control file specified in the examples section to that directory and it started working.. it was able to succesfully create the deb file. Thanks for all the help