From a586439978838ed511acb0343c9e98ce5f3c9dd5 Mon Sep 17 00:00:00 2001 From: wisberg Date: Wed, 29 Oct 2003 08:47:34 +0000 Subject: doc harness handling of 2-element options --- .../src/org/aspectj/testing/drivers/package.html | 70 ++++++++++++---------- 1 file changed, 37 insertions(+), 33 deletions(-) (limited to 'testing-drivers') diff --git a/testing-drivers/src/org/aspectj/testing/drivers/package.html b/testing-drivers/src/org/aspectj/testing/drivers/package.html index 92823a00e..ed0e466b9 100644 --- a/testing-drivers/src/org/aspectj/testing/drivers/package.html +++ b/testing-drivers/src/org/aspectj/testing/drivers/package.html @@ -204,26 +204,28 @@ arguments on the harness command line: CompilerRun

compiler options and side-effects - supported options: Options given on the command-line have - the same meaning they would have to the compiler - (i.e., the same meaning as they would have as a value in the - options attribute in the <compile> entity - in the <ajc-test> test specification). - Only one-word options are supported; for this reason, -source 1.4 is - specified as -source14 and converted by CompilerRun back - to -source 1.4. Unsupported options include - -argfile, - -d, - -classpath, - -outjar, and - -sourceroot. - (But argfile, - classpath and + supported options: + The command line passed to the compiler by CompilerRun + is composed of entries derived from the <compile> + attributes and recognized from the harness command line. + <compile> has specific attributes like + files, + argfiles, + classpath and sourceroot - are attributes accepted in the <compile> entity, - and in any case the test calculates and uses - -d and - -classpath.) + which translate directly to their counterparts. + The output option -d is defined by CompilerRun and + may not be specified (and -outjar is not supported). + Most other compiler options are defined in + CompilerRun.Spec.CRSOptions and may be specified + on the harness command-line + or in the options attribute of + <compile>. + In the options attribute, each argument is comma-delimited, + so an option with an argument would look like + <compile options="-source,1.4" ...>. + If options collide, duplicates + can be resolved using option dominance (below). compiler selectors: Use -ajc or -eclipse to select the old @@ -239,26 +241,28 @@ arguments on the harness command line: Some tests require or prohibit certain options; likewise, sometime you want to force all tests run with or without an option specified on the command-line, - regardless of its setting in the <compile options=".." ...> + regardless of its setting in the <compile options=".." ...> attribute. - CompilerRun supports encodings and - conflict resolution for these, so an option may be specified as + For this reason an option may be specified in the options attribute + or on the harness command-line as -option, !option, or ^option.