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 - javac: directory not found: build/generated-sources/ap-source-output
Summary: javac: directory not found: build/generated-sources/ap-source-output
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords: REGRESSION
Depends on:
Blocks: 179749
  Show dependency tree
 
Reported: 2010-01-30 17:57 UTC by Jesse Glick
Modified: 2010-02-08 05:48 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.