Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail to create gem using Windows #5

Open
xucito opened this issue Aug 17, 2019 · 1 comment
Open

Fail to create gem using Windows #5

xucito opened this issue Aug 17, 2019 · 1 comment

Comments

@xucito
Copy link

xucito commented Aug 17, 2019

When following the guide for using the logstash-ouput-java example I get the following error on Windows 10

<path>\logstash-output-java_output_example>gradlew.bat gem

FAILURE: Build failed with an exception.

* Where:
Build file 'C:\Users\TNguy\OneDrive\Documents\Repositories\logstash-output-java_output_example\build.gradle' line: 12

* What went wrong:
A problem occurred evaluating root project 'logstash-output-java_output_example'.
> Could not get unknown property 'LS_HOME' for root project 'logstash-output-java_output_example' of type org.gradle.api.Project.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 3s

I have already set the LS_HOME environment variable to the path where the logstash code base sits.

@xucito
Copy link
Author

xucito commented Aug 17, 2019

Ok figured it out,

In the gradle.properties file I needed to add a LS_HOME variable

i.e.

LOGSTASH_CORE_PATH=<path to logstash>\\logstash-core
LS_HOME=<path to logstash>

I would expect this value is loaded from environment variables or the document should be amended to include this step.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant