ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul King <>
Subject Re: ant+soap+ssl
Date Tue, 16 Mar 2010 10:13:21 GMT

Here's another version showing setting properties:

<?xml version="1.0" encoding="UTF-8"?>
<project name="SOAP example" default="main" basedir=".">
     <property environment="env"/>
     <property name="celsius" value="0"/>
     <target name="main">
         <taskdef name="groovy" classname="org.codehaus.groovy.ant.Groovy">
                 <fileset dir="${env.GROOVY_HOME}" includes="embeddable/groovy-all-*.jar,lib/ivy*.jar"/>
             @Grab(group='org.codehaus.groovy.modules', module='groovyws', version='0.5.1')
             def url = ''
             def proxy = new WSClient(url, this.class.classLoader)
             ant.echo "I'm freezing at ${properties.celsius} degrees Celsius"
             properties.result = proxy.CelsiusToFahrenheit(properties.celsius)
         <antcall target="results"/>
     <target name="results">
         <echo message="I'm freezing at ${result} degrees Fahrenheit"/>

Happy to answer more questions but they probably belong on some other list.

Cheers, Paul.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message