235 questions
1
vote
0
answers
83
views
Generated files not added to build in C# project generated by CMake
I'm trying to add generated files to a C# project created by CMake. I find that while CMake can generate a C# project from existing files, it somehow treats generated files differently. They are found ...
0
votes
0
answers
54
views
Generating Java code at runtime to replace legacy reflection-based data mapping. How to use @ForceInline and and module export questions
I’m writing a library that generates Java code at runtime, and so far it’s producing good results.
The problem: some legacy software (read: "adopting polymorphism now is kinda impossible") ...
0
votes
0
answers
196
views
ABAP: Generate class with SEO_CLASS_CREATE_COMPLETE with pretty printer
I'm using the Function Module SEO_CLASS_CREATE_COMPLETE to generate classes, but the problem is, that it doesn't do Pretty-print on the source code.
Q:
Is there a way to make the FM do Pretty-print?
...
0
votes
1
answer
474
views
Reading a DTO from the HttpContext returns null in JSON de-serialization (nswag generated client)
I'm diving into NET8, minimal API and clean architecture.
First of all: This works (Swagger UI and postman)
app.MapPost("/user/login", async (HttpContext httpContext, [FromBody] LoginDto ...
0
votes
0
answers
36
views
Generate pdf with pdfKit packingList
I need to generate a pdf of the packing list with the data of the notes and the volume of the box, and I want it to be added to a new page when it exceeds 40 pages, I'm using pdfKit
I'm using this ...
2
votes
2
answers
1k
views
When I open a querydsl JPA project with vscode, vscode has many cannot be resolved errors
When I open a querydsl JPA project with vscode, vscode has many cannot be resolved errors:
The import com.**.QRoutePayload cannot be resolved
When I open it with IDEA, it's all right.
Why do I get ...
1
vote
0
answers
697
views
How to modify code written in InitializeComponent method (WinForms Designer generated code)?
I'm a WPF developer and have to perform some task in WinForms (I'm a total newbie of WinForms).
Unlike in WPF, I've noticed that the InitializeComponent method in WinForms is generated by the Windows ...
2
votes
1
answer
3k
views
Separate client and server generated by protoc
I am trying to have protoc-generated server interface and client implementation in separate packages
The header part of my .proto files is the following:
syntax = "proto3";
option ...
5
votes
1
answer
7k
views
Open API Maven Plugin - Generate only specifc API model classes
I am working on generation of model classes by Open API Maven plugin which I need to use in my business logic. The api is generated by other team and given to us. It has lot of model classes ...
11
votes
5
answers
6k
views
How to disable compiler warnings in only generated code without editing file(s)
I have some generated code that has a bunch of compiler warnings. I want to disable them in the generated file, but keep those warnings in the rest of the project so they can be fixed. I'm using ...
1
vote
0
answers
480
views
How do you relocate JMH Generated directories in gradle subprojects?
Trying to relocate generated sources for JMH build under kotlin gradle with melix/jmh-gradle-plugin
From :
.../projectroot/SUBPRJ_A/BUILD/jmh-generated-sources/...
To :
.../projectroot/BUILD/...
1
vote
2
answers
895
views
Generate 5 length unique code from natural number
I need to generate a unique code with 5 lengths with the given number. In other words, I need to encode natural number to 5 length unique code
I wanna give fixed-length rememberable code to the ...
0
votes
0
answers
112
views
How do I combine two XSD files and keep the older classes from the older XSD file?
I have two XSD files and I need to combine them and generate a .cs file (C# objects).
One XSD is the one we already use (let's call it first.xsd), and we still need the C# objects that are generated ...
0
votes
1
answer
506
views
Generated client code in postman not matching with postman's tested response
I've been trying to send a file (image) using Java and Springboot. Recently I've discovered that there is a code section in the Postman which can generate Java code, and thought it can be used for ...
1
vote
0
answers
433
views
Angular - How to integrate generated sources
I'm currently developing an Angular + Spring Boot application. I manage both projects with maven. For Maven I have a plugin that generates DTOs for Java AND TypeScript/Angular. Dealing with the ...
1
vote
1
answer
65
views
How to recreate page references in LibreOffice
Before you dismiss this post as using LibreOffice documents THE WRONG WAY, let me explain what I'm trying to achieve. I am generating programatically ODT documents, which is mostly no big deal. I have ...
4
votes
1
answer
2k
views
How to use Dagger in Java library module in Android Studio?
I'm using Dagger in a Java library module in an Android Studio project and here's what my build.gradle for the module looks like:
apply plugin: 'java-library'
dependencies {
implementation ...
4
votes
0
answers
2k
views
How to disable warnings in generated code in Java gradle project
I would like to have a gradle project that generates no compiler warnings on any code that I write. I would also like to use the Immutables library to generate some of my classes. At the moment I have ...
0
votes
1
answer
2k
views
How to create a Spring Boot fat JAR containing classes from target/generated-sources
I want to create a Spring Boot fat JAR containing classes from target/generated-sources. After that I want to add this JAR as a dependency in another app and use a class from target/generated-sources ...
1
vote
0
answers
7k
views
Proper use of Java annotations to generate classes based on imported, external library classes
Given some imported classes that I cannot affect,
import com.foo.A;
import com.foo.B;
import com.foo.C;
I want to generate an interface of methods shared by A, B, and C, e.g.
public interface Common ...
1
vote
0
answers
557
views
How to include sources generated by jaxb in spring-boot repackage plugin phase?
I am currently developing a spring boot app where I have resources being generated by JAXB and I want to repackage a jar with those files. I have tried multiple approaches with the includes tag in ...
2
votes
1
answer
517
views
How to refer to generated source files?
How do I refer to files generated by a sourceGenerators sbt task? I know that the source file is deposited to target/scala-<version>/src_managed/path/to/File.Scala but I don't know how to ...
0
votes
1
answer
315
views
Using apache cxf and maven I get code that looks incorrect
I have several WSDL files that I"m using to generate client code to talk to a remote service using SOAP. The generated code includes a line that looks like this:
public class AddProductService ...
2
votes
2
answers
853
views
Generated setter clashes with an interface method
I am writing a class implementing an interface that exposes a setSelected method. This class will have a selected property:
private class Foo : IFoo {
var selected = false
override ...
1
vote
0
answers
55
views
Invoking the compile lifecycle phase to test my source generating maven plugin
I am writing a maven plugin that generates source code. I have created my plugin project using the maven-archetype-plugin archetype.
The maven-archetype-plugin archetype creates a project-to-test ...