@ewen So now I have the javac
part working but I'm having issues with building a jar. I basically have a directory of class files and want to put those in a jar.
I'm on windows and I have a feeling it relates to that, and specifically path separator differences
I can build a working jar with the jar
at the command line. Here is the jar file listing output of using badigeon vs the command line:
Badigeon generated jar:
(jar/jar mvn-id {:mvn/version mvn-version}
{:out-path "my.jar"
:paths [(str class-dir)]
:deps {}})
-rw-rw-rw- 91 11-Jul-2020 11:11:30 meta-inf/manifest.mf
-rw-rw-rw- 220 11-Jul-2020 10:12:46 META-INF/badigeon/com.interactivebrokers/tws-api/deps.edn
-rw-rw-rw- 1048 11-Jul-2020 11:11:30 META-INF/maven/com.interactivebrokers/tws-api/pom.xml
-rw-rw-rw- 1059 11-Jul-2020 11:11:28 com\ib\client\Bar.class
-rw-rw-rw- 754 11-Jul-2020 11:11:28 com\ib\client\BitMask.class
-rw-rw-rw- 955 11-Jul-2020 11:11:28 com\ib\client\Builder$ByteBuffer.class
-rw-rw-rw- 6446 11-Jul-2020 11:11:28 com\ib\client\Builder.class
............
-rw-rw-rw- 1373 11-Jul-2020 11:11:30 com\ib\controller\Profile$Type.class
-rw-rw-rw- 1809 11-Jul-2020 11:11:30 com\ib\controller\Profile.class
-rw-rw-rw- 8100 11-Jul-2020 11:11:30 com\ib\controller\ScanCode.class
-rw-rw-rw- 599 11-Jul-2020 11:11:30 com\ib\controller\TradeId.class
-rw-rw-rw- 127 11-Jul-2020 11:11:30 META-INF/maven/com.interactivebrokers/tws-api/pom.properties
- ---------- -------- ----------- -------- ----------------------------------------------------------------
542012 172 files
Commandline generated jar:
M Filemode Length Date Time File
- ---------- -------- ----------- -------- ----------------------------------------------------------------
drwxrwxrwx 0 11-Jul-2020 11:02:08 meta-inf/
-rw-rw-rw- 66 11-Jul-2020 11:02:08 meta-inf/manifest.mf
drwxrwxrwx 0 11-Jul-2020 11:02:02 com/
drwxrwxrwx 0 11-Jul-2020 11:02:02 com/ib/
drwxrwxrwx 0 11-Jul-2020 11:02:02 com/ib/client/
-rw-rw-rw- 1059 11-Jul-2020 11:02:02 com/ib/client/Bar.class
-rw-rw-rw- 754 11-Jul-2020 11:02:02 com/ib/client/BitMask.class
-rw-rw-rw- 955 11-Jul-2020 11:02:02 com/ib/client/Builder$ByteBuffer.class
-rw-rw-rw- 6446 11-Jul-2020 11:02:02 com/ib/client/Builder.class
...............
-rw-rw-rw- 1373 11-Jul-2020 11:02:02 com/ib/controller/Profile$Type.class
-rw-rw-rw- 1809 11-Jul-2020 11:02:02 com/ib/controller/Profile.class
-rw-rw-rw- 8100 11-Jul-2020 11:02:02 com/ib/controller/ScanCode.class
-rw-rw-rw- 599 11-Jul-2020 11:02:02 com/ib/controller/TradeId.class
- ---------- -------- ----------- -------- ----------------------------------------------------------------
540592 175 files
It seems like Badigeon omits the empty directory listings? fwiw this is a java project with no deps, I just need to put all the class files in jar
(I can open an actual issue later, I'm realizing that probably would have been better)