question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature Request: configurable `defaultOutputDir` instead of hardcoded `bin`

See original GitHub issue

Feature Request

Please provide a configuration to change defaultOutputDir bin

Detail

I’m not an eclipse user, as I know, bin is widely used as a dir that stores shell scripts, but vscode java plugin uses it as the default output dir, and can not be changed by configuration, the only way I know is using gradle eclipse plugin to generate .classpath with modified config by groovy script in build.gradle, see #634

buildDir = "build/gradle"
apply plugin: 'java'
apply plugin: 'eclipse'
eclipse {
  classpath {
    defaultOutputDir = file('build/eclipse')
    file.whenMerged {
      entries.each { entry ->
        if (entry.kind == 'src' && entry.hasProperty('output')) {
          entry.output = entry.output.replace('bin/', "build/eclipse/")
        }
      }
    }
  }
}

@jdneo https://github.com/redhat-developer/vscode-java/issues/2801#issuecomment-1318256946

You can vote for https://github.com/redhat-developer/vscode-java/issues/1615 to help us prioritize.

If anyone encounter this issue, please comment / give 👍 / link related issue to this one, to help the team escalate the priority of this issue.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:22
  • Comments:12

github_iconTop GitHub Comments

3reactions
jdneocommented, Mar 9, 2021

@n-peugnet The newest Language support for Java extension adds a new setting to set the output path for project without any build tools.

java.project.outputPath: A relative path to the workspace where stores the compiled output. Only effective in the WORKSPACE scope. The setting will NOT affect Maven or Gradle project.

@pan3793 Sorry currently there is no plan to make that setting be able to impact Maven/Gradle project. But we will keep an eye on this request.

2reactions
gardnercommented, Nov 21, 2022

I onboard people at work. This issue confuses people and ultimately causes people to uninstall the extension.

Read more comments on GitHub >

github_iconTop Results From Across the Web

project.buildDir and eclipse.classpath.defaultOutputDir are ...
I'm new to Gradle, when I was first using Buildship, I imported my project into Eclipse with Buildship, it used the default output...
Read more >
dracut-053 - Git repositories on kernel
A --no-uefi option as been added to the CLI options to disable a default uefi=yes set by a configuration file. kernel-modules: add modules...
Read more >
Gradle User Manual: Version 6.0.1 - xy2401.github.io
Configure your PATH environment variable to include the bin directory of the ... Instead of adding a specific version of Gradle to your...
Read more >
SWIG-3.0 Documentation
1.1 Introduction. SWIG (Simplified Wrapper and Interface Generator) is a software development tool for building scripting language interfaces to C and C++ ...
Read more >
PACS Data Reduction Guide: Spectroscopy
In the 'AOT and instrument configuration' section of the output you will ... script instead of the default. "outputDir" is where you started ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found