How to delete a file processed by File binding of SwitchYard after processing is done?
Issue
- While using the
File binding
inSwitchYard
how to configure it to delete the input file after processing is done? - Initially
move
properties (Move Options
as shown inSwitchYard Tooling Editor
ofJBDS
) were used to achieve this functionality. However, if users don't configure themove
properties any longer and decide to remove it to try out any other property (e.g.delete
) to experiment with it, it throws the following error when building the project.
[INFO] Scanning for projects...
[INFO]
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building main-filebinding-interface 1.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ main-filebinding-interface ---
[WARNING] Using platform encoding (Cp1255 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 8 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ main-filebinding-interface ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- switchyard-plugin:2.0.1.redhat-620133:configure (default) @ main-filebinding-interface ---
[INFO] SwitchYard configure plugin scanner URLs: [file:/C:/workspace/fsw/main-filebinding-interface/target/classes/]
[INFO] Outputting SwitchYard configuration model to C:\workspace\fsw\main-filebinding-interface\target\classes\META-INF\switchyard.xml
[INFO] Validating SwitchYard configuration model...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.659 s
[INFO] Finished at: 2015-08-05T09:44:43+02:00
[INFO] Final Memory: 39M/360M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.switchyard:switchyard-plugin:2.0.1.redhat-620133:configure (default) on project main-filebinding-interface: SWITCHYARD011602: Model [org.switchyard.config.model.switchyard.v1.V1SwitchYardModel] is invalid: cvc-elt.3.1: Attribute 'http://www.w3.org/2001/XMLSchema-instance,nil' must not appear on element 'file:move', because the {nillable} property of 'file:move' is false. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
How to fix this issue and what is the correct configuration to achieve the aforementioned requirement?
Environment
- Red Hat JBoss Fuse Service Works (FSW)
- 6.0.0
- Red Hat JBoss Developer Studio (JBDS)
- 8.x
- Eclipse
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.