This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 180034

Summary: javac: directory not found: build/generated-sources/ap-source-output
Product: java Reporter: Jesse Glick <jglick>
Component: ProjectAssignee: Jan Lahoda <jlahoda>
Status: RESOLVED FIXED    
Severity: normal Keywords: REGRESSION
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 179749    

Description Jesse Glick 2010-01-30 17:57:09 UTC
If you add to a j2seproject's build.xml:

    <target name="test" depends="clean,compile-test"/>

and Alt-F6, the build fails with:

Compiling 2 source files to build/classes
javac: directory not found: build/generated-sources/ap-source-output
Usage: javac <options> <source files>
use -help for a list of possible options
nbproject/build-impl.xml:485: The following error occurred while executing this line:
nbproject/build-impl.xml:236: Compile failed; see the compiler error output for details.

Before the recent AP work, this ran fine.

Workaround is to instead write:

    <target name="test">
        <antcall target="clean"/>
        <antcall target="compile-test"/>
    </target>
Comment 1 Quality Engineering 2010-02-03 21:43:50 UTC
Integrated into 'main-golden', will be available in build *201002040200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/b0946bc11c81
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #180048, #180033, #180034: improving the build-impl.xml (and related parts) to handle processorpath with spaces, run APs in tests that are defined in src folders, etc.
Comment 2 Jan Lahoda 2010-02-08 05:48:44 UTC
Should be OK now.