[switchyard-issues] [JBoss JIRA] Created: (SWITCHYARD-372) camel-binding quickstart: make the input directory an absolute file path to the target directory on the module

Daniel Bevenius (JIRA) jira-events at lists.jboss.org
Thu Aug 4 05:38:56 EDT 2011


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&amp;initialDelay=50&amp;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&amp;initialDelay=50&amp;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

        


More information about the switchyard-issues mailing list