Is there a way to do to start an Apache Ant build process from an Orbeon XPL pipeline and/or a way to start other command line processes?
Ideally, I would like to start the processor from the scheduler as depicted below as this could give me much more flexibility on how the processes are run... <p:processor name="oxf:scheduler"> <p:input name="config"> <config> <start-task> <name>Apache Ant precompile</name> <start-time>now</start-time> <interval>0</interval> <synchronized>true</synchronized> <processor-name>oxf:pipeline</processor-name> <input name="config" url="oxf:/apps/template/views/build.xml"/> </start-task> </config> </p:input> </p:processor> I am new to Orbeon and it would useful for me to be able to integrate with previous XML pipelines which I had written in Ant. Many of the processes do things like caching, precompling code and backing up data from various systems - I may be able to migrate many of these to Orbeon in the longer term but probably not all of them. |
Hi Gary,
On Mar 8, 2010, at 2:10 AM, Gary C wrote: > Is there a way to do to start an Apache Ant build process from an Orbeon XPL > pipeline and/or a way to start other command line processes? I don't know if it still in the most recent builds, but there is an execute processor that lets your run a command line program: <p:processor name="oxf:execute-processor"> <p:input name="config"> <exec dir="/path-to-run-in" executable="/path-to-perl-program"> <arg line="-options -to -pass"/> </exec> </p:input> <p:output name="stdout" id="stdout"/> <p:output name="stderr" id="stderr"/> <p:output name="result" id="result"/> </p:processor> In the case of Ant, since it is java, you might be able to use the delegation processor. --Hank > Ideally, I would like to start the processor from the scheduler as depicted > below as this could give me much more flexibility on how the processes are > run... > > <p:processor name="oxf:scheduler"> > <p:input name="config"> > <config> > <start-task> > <name>Apache Ant precompile</name> > <start-time>now</start-time> > <interval>0</interval> > <synchronized>true</synchronized> > <processor-name>oxf:pipeline</processor-name> > <!-- How do I start Ant process below?? If I can start Ant can I > also pass parameters to Ant Process? --> > <input name="config" url="oxf:/apps/template/views/build.xml"/> > </start-task> > </config> > </p:input> > </p:processor> > > I am new to Orbeon and it would useful for me to be able to integrate with > previous XML pipelines which I had written in Ant. Many of the processes do > things like caching, precompling code and backing up data from various > systems - I may be able to migrate many of these to Orbeon in the longer > term but probably not all of them. > > > > > -- > View this message in context: http://n4.nabble.com/Running-an-Apache-Ant-build-process-or-another-command-line-process-from-Orbeon-XPL-tp1584296p1584296.html > Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com. > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws NEES@UCSB Institute for Crustal Studies, University of California, Santa Barbara 805-893-8042 -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Hank,
Many thanks for your help this appears to work great with my build which is one of the more recent development versions! Now I know what am looking for I have also managed to picked up on the previous thread you answered at http://mail-archive.ow2.org/ops-users/2009-05/msg00000.html, your postie at http://www.pastie.org/466942 and documentation which are also very useful... Delegation documentation: http://www.orbeon.com/orbeon/doc/processors-delegation http://www.orbeon.com/orbeon/doc/home-changes-35 >> 3.14. Other Enhancements >> New Execute processor. A new Execute processor has been added. It allows executing external commands and retrieving the command's standard output and standard error. Kind Regards, Gary PS The execute bit ran find when I tested as below and now I am working at passing in params as in your XSL postie example <exec executable="E:\eclipse\plugins\org.apache.ant_1.7.1.v20090120-1145\bin\ant.bat" dir="G:/workspaces/websites/testsite"> <arg line="build-sitemap"/> </exec> |
Free forum by Nabble | Edit this page |