-----Original Message-----
From: KC Baltz [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 31, 2002 6:27 AM
To: Ant Users List
Subject: Re: How do I build an ant rule to run an inner class' main
method?


Try $$ in place of $

K.C.

At 10:42 AM 1/30/02, you wrote:
>E.G., I want to run "com.mycompany.mypackage.MyClass$Test".  The embedded
>'$' is getting translated by ant.  Using $ doesn't solve this problem.
>Escaping the dollar sign with a backslash results in ant translating the
>backslash to a forward slash.
>
>Here's the rule I'm trying to get working:
>
>     <target name="test">
>         <java classname="com.mycompany.mypackage.MyClass$Test">
>             <classpath>
>                 <pathelement path="${java.class.path}"/>
>             </classpath>
>         </java>
>     </target>
>
>
>for:
>
>pacakge com.mycompany.mypackage;
>
>public class MyClass {
>         ...
>
>         public static class Test {
>                 public static void main(String[] args) {
>                         // run tests
>                         ...
>                 }
>         }
>}
>
>
>--
>To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to