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]>

Reply via email to