eclipse-jdtls / eclipse.jdt.ls

Java language server
1.75k stars 389 forks source link

customize build directory #747

Open alt-vena opened 6 years ago

alt-vena commented 6 years ago

Hi, I am using lsp-mode (emacs) with a spring webapp. To use the auto redeploy feature of spring devtools it needs to see changes to the classpath. Our app places all classes in build/classes/java/main/... . The language server puts the classes in bin/main/... . Anyway to specify the path to the classes so that it build to the same path? By the looks of it the path is hardcoded here?

The skeleton build directory structure:

build
├── classes
│   └── java
│       └── main
│           └── no
│               └── myApp
│                   ├── SomeClass.class
├── resources
│   └── main
└── tmp

By the looks of it jdt also has a different structure by also adding other files to the build directory?

bin
├── main
│   ├── application-dev.properties
│   ├── application-prod.properties
│   ├── application-test.properties
│   ├── application.properties
│   ├── build.properties
│   ├── no
│   │   └── myApp
│   │       ├── SomeClass.class
└── test
    ├── log4j.properties
    └── no
        └── myApp
            ├── SomeClass.class

Also see here for previous discussion: https://github.com/emacs-lsp/lsp-java/issues/44

CsCherrYY commented 2 years ago

related to https://github.com/eclipse/buildship/issues/1131