Java Reference
In-Depth Information
Target
Description
package Makes a distributable package for the compiler that in-
cludes the source files, binaries, documentation, and JU-
nit test framework.
runCompilerTests This is the default target. It first compiles the j--
test programs under $j/j--/tests/pass and $j/j--/
tests/fail using the j-- compiler. Second, it runs the
j-- pass tests.
runCompilerTestsJavaCC Same as the above target, but using JavaCC scanner
and parser.
testScanner Tokenizes the j-- test programs in $j/j--/tests/pass .
testJavaCCScanner Same as the above target, but using JavaCC scanner.
testParser Parses the j-- test programs in $j/j--/tests/pass .
testJavaCCParser Same as the above target, but using JavaCC scanner
and parser.
testPreAnalysis Pre-analyzes the j-- test programs in $j/j--/tests/
pass .
testAnalysis Analyzes the j-- test programs in $j/j--/tests/pass .
help
Lists main targets.
A.4 Setting Upj--for Command-Line Execution
We assume the following:
J2SE 9 7 or later (the latest version is preferred) has been installed and the environ-
ment variable PATH has been configured to include the path to the Java binaries. For
example, on Windows, PATH might include C:\ProgramFiles\Java\jdk1.7.0\bin .
Ant 1.8.2 or later has been installed, the environment variable ANT_HOME has been set
to point to the folder where it is installed, and environment variable PATH is configured
to include $ANT_HOME/bin .
Now, the Ant targets listed in A.3.2 can be run as
>ant<target>
For example, the following command runs the target named testScanner :
>anttestScanner
If no target is specified, the default ( runCompilerTests ) target is executed.
A.5 Setting Upj--in Eclipse
In order to be able to set up j-- in Eclipse, we assume the following:
9 Java Development Kit (JDK); http://www.oracle.com/technetwork/java/index.html .
 
Search WWH ::




Custom Search