[JBoss JIRA] Created: (SWITCHYARD-372) camel-binding quickstart: make the input directory an absolute file path to the target directory on the module
by Daniel Bevenius (JIRA)
camel-binding quickstart: make the input directory an absolute file path to the target directory on the module
--------------------------------------------------------------------------------------------------------------
Key: SWITCHYARD-372
URL: https://issues.jboss.org/browse/SWITCHYARD-372
Project: SwitchYard
Issue Type: Enhancement
Components: quickstarts
Reporter: Daniel Bevenius
Priority: Minor
The input directory which the Camel file binding is listening to is relative to the servers bin directory:
{code}
<camel:binding.camel configURI="file://target/input?fileName=test.txt&initialDelay=50&delete=true"/>
{code}
We could make this a property that is parsed by maven:
{code}
<camel:binding.camel configURI="file://${input.dir}?fileName=test.txt&initialDelay=50&delete=true"/>
{code}
and then declare that property in the pom.xml:
{noformat}
<properties>
<switchyard.version>0.2.0-SNAPSHOT</switchyard.version>
<input.dir>${project.build.directory}/input</input.dir>
</properties>
{noformat}
Note that we need to enable filtering for this to work.
{noformat}
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
...
</build>
{noformat}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira