]> source.dussan.org Git - aspectj.git/commitdiff
allow use of DOLLARsandbox in the arguments to a 'run' test
authoraclement <aclement>
Tue, 27 May 2008 18:43:36 +0000 (18:43 +0000)
committeraclement <aclement>
Tue, 27 May 2008 18:43:36 +0000 (18:43 +0000)
org.aspectj.ajdt.core/testsrc/org/aspectj/tools/ajc/AjcTestCase.java

index e034255ce882a9c965f083d4243e3c21123f601f..d15b6e2d95794a3c67de2f6ccd68e845b183d3db 100644 (file)
@@ -566,6 +566,11 @@ public class AjcTestCase extends TestCase {
         * the sandbox.
         */
        public RunResult run(String className, String[] args, final String classpath, boolean useLTW)  {
+           if (args != null) {
+            for (int i = 0; i < args.length; i++) {
+                args[i] = substituteSandbox(args[i]);
+            }
+        }
                lastRunResult = null;
                StringBuffer cp = new StringBuffer();
                if (classpath != null) {