-
Notifications
You must be signed in to change notification settings - Fork 5k
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
CAMEL-21352: extend camel smb #16686
CAMEL-21352: extend camel smb #16686
Conversation
🌟 Thank you for your contribution to the Apache Camel project! 🌟 🤖 CI automation will test this PR automatically. 🐫 Apache Camel Committers, please review the following items:
|
/component-test smb Result ❌ The tests failed please check the logs |
🤖 The Apache Camel test robot will run the tests for you 👍 |
components/camel-smb/src/main/java/org/apache/camel/component/smb2/Smb2Configuration.java
Outdated
Show resolved
Hide resolved
/component-test camel-smb Result ✅ The tests passed successfully |
🤖 The Apache Camel test robot will run the tests for you 👍 |
I am curious about why adding an entirely new component instead of refactoring the existing one. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall, LGTM, but I am curious about the point I added above (i.e: adding a new component).
IMHO, Camel is already far too bloated and, if we could adjust what we have, that would be better.
This is not the final work. We will delete the old and rename to smb when its ready. |
Ah, got it, thanks for the explanation! That sounds OK to me, but let's make sure we do it in one step so not to mess the git history (i.e.: so we can easily trace back to its origins, changes, and bisect things). |
Actually, forget that. It's not that old and so not much to lose. Feel free to do it as you seem fit. |
@davsclaus I'd be happy to delete the old and rename to smb. Would you like that done in this PR? |
Yes that would be good |
/component-test camel-smb Result ✅ The tests passed successfully |
🤖 The Apache Camel test robot will run the tests for you 👍 |
@davsclaus I've moved smb2 to smb now. Thanks. |
okay so its ready to merge |
okay I am going to merge this over to main, and regen CSB |
@jonomorris we need to update the 4.10 upgrade guide about camel-smb is refactored to allow users to be aware. |
* CAMEL-21352 camel-smb should extend from camel-file to offer more features
@jonomorris its merged to main now, great work, and a lot of tests. I have these errors locally, not sure if you see that too
|
@davsclaus that's great, thanks. I'll review those test cases, they pass locally. Will also add some notes to the upgrade guide. |
Description
Expand the options available to the SMB consumer and producer by extending
GenericFile
classes.A number of additional consumer and producer options are now supported including 'move', 'preMove', 'moveFailed', 'readLock', 'readLockTimeout', 'delete', 'include', 'exclude', 'includeExt', 'excludeExt', 'filter', 'localWorkDirectory', 'sortBy', 'maxMessagesPerPoll', 'maxDepth', 'minDepth', 'sorter', 'maxMessagesPerPoll', 'eagerMaxMessagesPerPoll', 'idempotentKey', and more.
Target
camel-3.x
, whereas Camel 4 uses themain
branch)Tracking
Apache Camel coding standards and style
mvn clean install -DskipTests
locally from root folder and I have committed all auto-generated changes.