eclipse.jdt.ls icon indicating copy to clipboard operation
eclipse.jdt.ls copied to clipboard

customize build directory

Open alt-vena opened this issue 7 years ago • 1 comments

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

alt-vena avatar Aug 08 '18 13:08 alt-vena

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

CsCherrYY avatar Apr 13 '22 03:04 CsCherrYY