ctolkmit / checker-framework

Automatically exported from code.google.com/p/checker-framework
0 stars 0 forks source link

where is the default processorpath? #435

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Gradle task configuration as the followings:

tasks.withType(JavaCompile).all { JavaCompile compile ->
        compile.options.debug = true
        compile.options.compilerArgs = [
                '-version',
                '-implicit:class',
                '-AprintErrorStack',
                '-AprintAllQualifiers',
                '-Awarns',
                //'-proc:none',
                '-processor', 'org.checkerframework.checker.nullness.NullnessChecker'
        ]
        options.fork = true
        options.forkOptions.executable = "$checkerHome/checker/bin/javac"
    }
2.Notice,I do not list the java option "processpath"
3.when i build this task ,such errors occured"错误: 
找不到注释处理程序 
'org.checkerframework.checker.nullness.NullnessChecker'
1 个错误
:compileJava FAILED

FAILURE: Build failed with an exception.
"

What is the expected output? What do you see instead?
no errors when I replace with such shell "eval "java" "-jar" 
"${mydir}"/../dist/checker.jar -processorpath "${mydir}"/../dist/checker.jar  
"$@"
"

What version of the product are you using? On what operating system?
javac 1.8.0-jsr308-1.9.1

Please provide any additional information below.

Original issue reported on code.google.com by fengji...@gmail.com on 27 May 2015 at 2:00

GoogleCodeExporter commented 9 years ago
When using gradle, are you following the instructions in the manual?  See 
http://types.cs.washington.edu/checker-framework/current/checker-framework-manua
l.html#gradle .  In particular, did you set options.fork = true and 
compile.options.fork.executable = "$CHECKERFRAMEWORK/checker/bin/javac"?

When running from the command line, which java are you using?
Are you using the javac distributed with the Checker Framework, as explained 
here:
http://types.cs.washington.edu/checker-framework/current/checker-framework-manua
l.html#javac-installation ?  If so, you should not need the -processorpath 
command-line option.

Original comment by michael.ernst@gmail.com on 27 May 2015 at 12:22

GoogleCodeExporter commented 9 years ago
yes ,I read  your doc throughly.using Checker Framework javac
my code is here,https://github.com/vongosling/log4m

Original comment by fengji...@gmail.com on 28 May 2015 at 4:44