使用することができますWindowsのディレクトリ構造を作成します。
これらの回答は正しくありません。 BridgePropertyPlaceholderConfigurerとPropertiesComponentを使用する場合は、どこでも動的値を使用できます。
<bean id="bridgePropertyPlaceholder" class="org.apache.camel.spring.spi.BridgePropertyPlaceholderConfigurer">
<property name="properties">
<value>
...normal property syntax name=value - use this in test definitions
</value>
</property>
</bean>
または実際のアプリケーションでこのようなものを使用
<bean id="dummyPropertyPlaceholder" class="org.apache.camel.spring.spi.BridgePropertyPlaceholderConfigurer">
<property name="location" value="classpath:/dummy.properties" />
</bean>
例えば
<route id="DummyRoute">
<from uri="file:{{dummy.int.dir}}?delay={{poll.delay}}&initialDelay={{initial.delay}}&{{readlockChanged}}&move={{root}}/{{dummy.arch.dir}}/{{archive.dir}}&moveFailed={{error.dir}}&scheduledExecutorService=#scheduledExecutorService" />
<to uri="file:{{root}}/{{dummy.int.destination.dir}}" />
</route>
キャメルのそれ以降のバージョンとのトリックがあります:ので、春はあなたの${}
を削除し、キャメルに裸file.pathを渡しません$simple{file.path}
の代わり${file.path}
を使用しています。例えば。 URI 'から' 入力の動きは、このようなことがあります
move=archive/$simple{date:now:yyyyMMdd}/$simple{file:name}
http://camel.apache.org/how-do-i-use-spring-property-placeholder-with-camel-xml.html
http://camel.apache.org/using-propertyplaceholder.html