AnsweredAssumed Answered

Execute command line with ProgramRunnable in FSR postCommit

Question asked by nicolasraoul on Dec 21, 2010
Latest reply on Jan 12, 2011 by nicolasraoul
I want to perform a task every WCM deployment. (final goal: upload the website via FTP)

So I installed and configured FSR (Alfresco-DeploymentEnterprise-3.3.2) and configured it to:
  • generate a "baked" version of the website to a given directory (it works)

  • execute a command line (it does not work).
Here is my postCommit (for now it just does "cp /etc/issue /tmp/fsrtest" which should work but no file found afterwards in /tmp):

<property name="postCommit">
                                                <bean class="org.alfresco.deployment.SampleRunnable"/>
                                                <bean class="org.alfresco.deployment.ProgramRunnable">
                                                        <property name="program">
                                                        <property name="directory">
                                                        <property name="arguments">

I wrote this property element at the root of DeploymentTargetRegistrationBean in deployment/default-target.xml in the FSR.
No error in nohup.out at startup nor at deployment.

What could be the problem in my postCommit configuration?
Thanks in advance!
Nicolas Raoul