Skip to content

Tag: java

Customize Manifest in War task

I need to modify Manifest file during the assembly of WAR file. I need to add a list of all files on a class path to avoid java.io.IOException: CreateProcess error=206, The filename or extension is too long exception being thrown when I want to execute this java file on Windows machine. Declared directly in b…

Artifactory publish with multi-module gradle

Hope all doing well. Today I was working on multi-module gradle project, and trying to publish one of it’s dependency to artifactory as well. my project structure are: build.gradle (main) build.gradle (api) and the task artifactoryPublish produces: Now the issue is that, the modules, like admin-api buil…

Anylogic-how to calculate distance between pedestrians

I use the pedestrian library (use the ped source, ped Goto, and ped sink) and want to simulate the sidewalk environment. The goal of this model is to get the data that the distance between pedestrians is less than 1m. So, I try to calculate the distance between pedestrians. In the Anylogic, the information of…

Variables are not coming up null during Postman call

Setting up an Java Postman call assigning values to the variables but its shows null. My Pojo Student Class Postman Request Answer your request body should be like this: because you are getting StudentRequest as RequestBody and it means you should send StudentRequest internal properties not containing Student…

Group java string based on nth word in Camel case

I want to group certain java strings into subset of strings with same nth word. Eg List: CorePlatformPortal, CorePlatformRuntime, CorePlatformRuntimeConfiguration, DetailPageAlternative, DetailPageBooks, DetailBuild, HorizontePage, HorizontePageLogging, HorizonteBuild, Input : 1 Output: CorePlatformPortal, Co…