On Mon, Apr 18, 2011 at 1:49 PM, ant elder <[email protected]> wrote:
> There is the Shell 'run' command which can run Shell commands within a
> file, in the shell type help run for more info. Does that do what you
> need? Whats best probably depends on how the shell is being started,
> how will that be done?
>
>   ...ant
>
> On Mon, Apr 18, 2011 at 12:04 PM, Simon Laws <[email protected]> 
> wrote:
>> I want to make the ant "running tuscany" sample without writing any
>> launcher code. To make this work smoothly I'd like to fire up the
>> shell have it launch the contribution (which runs some stuff on @init)
>> and the shut down again. Is there a way of configuring this? Scripting
>> was discussed a while back. Did that get added? I can't see anything
>> obvious.
>>
>> Regards
>>
>> Simon
>>
>> --
>> Apache Tuscany committer: tuscany.apache.org
>> Co-author of a book about Tuscany and SCA: tuscanyinaction.com
>>
>

>From an ant script, e.g.

    <target name="run-base-extension-paths">
        <java classname="org.apache.tuscany.sca.shell.Shell"
              fork="true"
              failonerror="true">
            <classpath>
                <path refid="tuscany-base-runtime-pom.path"/>
            </classpath>
            <arg value="../calculator-contribution.jar"/>
        </java>
    </target>


Simon

-- 
Apache Tuscany committer: tuscany.apache.org
Co-author of a book about Tuscany and SCA: tuscanyinaction.com

Reply via email to