9
netikras
276d

OMG... this client is killing me...

So they are writing a Java / SpringBoot app for whatever. For some reason they decided to write it in the overcomplicated way, i.e. using a custom Spring's BeanPostProcessor that changes the eventual type of some beans, causing some weird ass issues, causing the app to fail to boot up if built on some systems and start up just fine if built on others (https://stackoverflow.com/questions...).

I've advised the client (devs) to simplify the architecture and avoid using type-mutating BPPs (bcz.. you know.. noone does that..).

Instead, the client created a task for me to "remove the build logic creating JAR packages" and another "Create a shell script manually assembling the CLASSPATH list and launching the application"

omg... what the hell is going on? Am I on camera? This can't be real... in 202-fucking-4 in a greenfield project!!!

wtf...

Comments
  • 1
    I read it as Java/SpongeBob app.

    You can do something along the lines of perl -e 'print join "\n" => grep {$_=~ /\.class$/} split "\n",`jar -tf path/to/file`;' to get a list of classes in a package, my sincere apologies for the demonic incantation, but getting a single classpath is a bit trickier because you have to extract, read and combine the manifests. I think I have a script for that, laying around here somewhere. Or am I misunderstanding the problem?

    ... nevermind, I just read the stack question, I definitively have no fucking idea what this is.
Add Comment