ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Guy Davis <guy.da...@pason.com>
Subject Re: Help: using <exec> with appletviewer
Date Tue, 04 May 2004 20:56:14 GMT
Thanks.  The use of <pathconvert> worked.  Here's what I ended up with:

<target name="runApplet">
<pathconvert targetos="unix" property="av_cp.ref"
		refid="classpath.ref" />
     <exec dir="." executable="appletviewer">
       <arg value="-J-classpath" />
       <arg value="-J${av_cp.ref}"/>
       <arg value="run.html" />
     </exec>
</target>

Works great.  Thanks again.

Conelly, Luis (GNF, Contractor) wrote:
> 	Why don't you use <pathconvert> task and pass the argument with <arg line="${pathconvert.prop}">.
I.e.
> 
> [snippet - untested]
> 
> <path id="my-classpath">
>     <fileset dir="${app}/lib" >
>         <include name="**/*.jar"/>
>         <include name="**/*.zip"/>
>     </fileset>
> </path>
> 
> <target name="runApplet">
>      <pathconvert property="classpath.ref" refid="my-classpath" dirsep="/" pathsep="
"/>
>      <exec dir="." executable="appletviewer">
>        <arg value="-J-classpath" />
>        <arg line="classpath.ref"/>
>        <arg value="run.html" />
>      </exec>
> </target>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message