<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic run ant build from web client action in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/run-ant-build-from-web-client-action/m-p/104925#M73321</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey all&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;how can I realise this user experience: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- working in a space, view a specific file's details.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- i pick an action "publish to …&amp;lt;format&amp;gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- this action runs an ant build target (i have the whole ant side set up and working)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;so i guess my question is: how can i run the ant command (do i need to this with java or can i use a javascript with new web scripts)? i know how to add the action to the ui in the webclient, but as from there… any pointers would be welcome!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;david&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Jul 2007 18:40:09 GMT</pubDate>
    <dc:creator>davidheijl</dc:creator>
    <dc:date>2007-07-26T18:40:09Z</dc:date>
    <item>
      <title>run ant build from web client action</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/run-ant-build-from-web-client-action/m-p/104925#M73321</link>
      <description>Hey allhow can I realise this user experience: - working in a space, view a specific file's details.- i pick an action "publish to …&amp;lt;format&amp;gt;"- this action runs an ant build target (i have the whole ant side set up and working)so i guess my question is: how can i run the ant command (do i need</description>
      <pubDate>Thu, 26 Jul 2007 18:40:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/run-ant-build-from-web-client-action/m-p/104925#M73321</guid>
      <dc:creator>davidheijl</dc:creator>
      <dc:date>2007-07-26T18:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: run ant build from web client action</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/run-ant-build-from-web-client-action/m-p/104926#M73322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You will have to use Java to accomplish this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You have 2&amp;nbsp; methods of calling Ant, either using the native Ant Java object or calling the Ant script via Runtime.exec(), both of which will need to be done via Java.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would question why you're using Ant though, it would be preferable to try and do whatever the Ant script is doing in Java as there is going to be a lot of overhead in calling out to Ant.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you need to however, I'd suggest taking a look at the Ant documentation to see how the Ant process is invoked: &lt;/SPAN&gt;&lt;A href="http://ant.apache.org/manual/running.html#viajava" rel="nofollow noopener noreferrer"&gt;http://ant.apache.org/manual/running.html#viajava&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2007 08:38:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/run-ant-build-from-web-client-action/m-p/104926#M73322</guid>
      <dc:creator>gavinc</dc:creator>
      <dc:date>2007-07-27T08:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: run ant build from web client action</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/run-ant-build-from-web-client-action/m-p/104927#M73323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hi gavin, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks for the reply. I kind of figured this was going to need Java. I spotted an example of someone doing a Runtime.exec() approach elsewhere on the forum, but I'm not entirely sure what the different steps would be.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As for why I want to do this: I'd like to publish DITA xml documents in an Alfresco space using the DITA open toolkit, which is essentially an ant-managed chain of xslt transformations. To rebuild this chain of transformations in Java would be quite a daunting challenge, I fear.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Let's say that I do want to go with the Runtime.exec() approach, what elements would I need to create? could you give me some step by step pointers?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;david&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2007 09:33:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/run-ant-build-from-web-client-action/m-p/104927#M73323</guid>
      <dc:creator>davidheijl</dc:creator>
      <dc:date>2007-07-27T09:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: run ant build from web client action</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/run-ant-build-from-web-client-action/m-p/104928#M73324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ok, now this is purely because i'm not entirely sure how the whole jsf and beans framework works, but i'm not getting something &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;let's say i have a bean defined as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;bean id="transformer.dita-xml.eclipse"&lt;BR /&gt;class="org.alfresco.repo.content.transform.RuntimeExecutableContentTransformer"&lt;BR /&gt;parent="baseContentTransformer"&amp;gt;&lt;BR /&gt;&amp;lt;property name="transformCommand"&amp;gt;&lt;BR /&gt;&amp;lt;bean class="org.alfresco.util.exec.RuntimeExec"&amp;gt;&lt;BR /&gt;&amp;lt;property name="commandMap"&amp;gt;&lt;BR /&gt;&amp;lt;map&amp;gt;&lt;BR /&gt;&amp;lt;entry key="Windows.*"&amp;gt;&lt;BR /&gt;&amp;lt;value&amp;gt;D:\DITA-OT1.3.1\ant -f build_custom.xml mycompany.mydocument.eclipse&amp;lt;/value&amp;gt;&lt;BR /&gt;&amp;lt;/entry&amp;gt;&lt;BR /&gt;&amp;lt;/map&amp;gt;&lt;BR /&gt;&amp;lt;/property&amp;gt;&lt;BR /&gt;&amp;lt;property name="errorCodes"&amp;gt;&lt;BR /&gt;&amp;lt;value&amp;gt;2&amp;lt;/value&amp;gt;&lt;BR /&gt;&amp;lt;/property&amp;gt;&lt;BR /&gt;&amp;lt;/bean&amp;gt;&lt;BR /&gt;&amp;lt;/property&amp;gt;&lt;BR /&gt;&amp;lt;property name="explicitTransformations"&amp;gt;&lt;BR /&gt;&amp;lt;list&amp;gt;&lt;BR /&gt;&amp;lt;bean class="org.alfresco.repo.content.transform.ContentTransformerRegistry$TransformationKey" &amp;gt;&lt;BR /&gt;&amp;lt;constructor-arg&amp;gt;&amp;lt;value&amp;gt;text/xml&amp;lt;/value&amp;gt;&amp;lt;/constructor-arg&amp;gt;&lt;BR /&gt;&amp;lt;constructor-arg&amp;gt;&amp;lt;value&amp;gt;text/xml&amp;lt;/value&amp;gt;&amp;lt;/constructor-arg&amp;gt;&lt;BR /&gt;&amp;lt;/bean&amp;gt;&lt;BR /&gt;&amp;lt;/list&amp;gt;&lt;BR /&gt;&amp;lt;/property&amp;gt;&lt;BR /&gt;&amp;lt;/bean&amp;gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;in which file do i store this code? what else do i need to do to be able to call on this transformation from an action link in the web client?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i have the following custom action set up but obviously there's something wrong with my action-listener code. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;actions&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!– Run the DITA OT –&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;action id="run_DITA_transform"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;label&amp;gt;Publish DITA to Eclipse&amp;lt;/label&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;image&amp;gt;/images/icons/create_webapp.gif&amp;lt;/image&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;action-listener&amp;gt;#{transformer.dita-xml.eclipse}&amp;lt;/action-listener&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/action&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;action-group id="doc_details_actions"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;action idref="run_DITA_transform" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/action-group&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/actions&amp;gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;help!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2007 14:36:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/run-ant-build-from-web-client-action/m-p/104928#M73324</guid>
      <dc:creator>davidheijl</dc:creator>
      <dc:date>2007-07-27T14:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: run ant build from web client action</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/run-ant-build-from-web-client-action/m-p/104929#M73325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You actually need to create a custom action not a transformation, see this wiki page on creating a custom action: &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Custom_Actions" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Custom_Actions&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The bottom of that page also has a link to &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Custom_Action_UI" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Custom_Action_UI&lt;/A&gt;&lt;SPAN&gt; which will tell you how to add the action to the UI.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2007 09:25:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/run-ant-build-from-web-client-action/m-p/104929#M73325</guid>
      <dc:creator>gavinc</dc:creator>
      <dc:date>2007-07-30T09:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: run ant build from web client action</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/run-ant-build-from-web-client-action/m-p/104930#M73326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thanks gavin! i'll certainly try that - as soon as I get back from my holidays &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2007 12:20:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/run-ant-build-from-web-client-action/m-p/104930#M73326</guid>
      <dc:creator>davidheijl</dc:creator>
      <dc:date>2007-07-31T12:20:08Z</dc:date>
    </item>
  </channel>
</rss>

