Skip to content

Conversation

@quintesse
Copy link
Contributor

Needs #1630 to be applied first

@quintesse quintesse requested a review from maxandersen June 8, 2023 15:25
@quintesse quintesse marked this pull request as draft June 9, 2023 08:48
@quintesse
Copy link
Contributor Author

So the discussion to merge this or not was about the issue that user files are now part of the class path when running the post build and if this could result in problems or not. Right now it only runs with all the dependencies specified by the user code, but not the code itself. (Which is why currently it isn't possible to write integration code within the user code).

A possible issue might be that the classloader would hold a lock on the very resources that the integration might try to change, something that especially on Windows might cause problems.

@maxandersen
Copy link
Collaborator

with #1641 this should be doable without "polluting" the integration class path.

But it does not yet work because the integration assumes all deps have a GAV...

Before this change JBang would only look for integrations
in the dependencies, now it also looks in the currently
compiled code.
@quintesse quintesse force-pushed the integration_in_script branch from 6661ad5 to 7425544 Compare June 19, 2025 11:51
@quintesse quintesse force-pushed the integration_in_script branch from 7425544 to cc6cb1a Compare June 19, 2025 11:52
@quintesse
Copy link
Contributor Author

This is an old PR but I still think it could be useful. The changes are minimal.

The only thing is that the new IT tests fail, it seems because the capturing if input and output doesn't work as expected.

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

Successfully merging this pull request may close these issues.

2 participants