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.
In the properties/libraries pane for a Java SE project, adding another project in the "Run test" tab, it is not built before running the tests. A possible workaround is adding <target name="-pre-compile-test"> <antcall target="-maybe-call-dep"> <param name="call.built.properties" value="${built-jar.properties}"/> <param location="${project.my_runtime_dependency}" name="call.subproject"/> <param location="${project.my_runtime_dependency}/build.xml" name="call.script"/> <param name="call.target" value="netbeans"/> <param name="transfer.built-jar.properties" value="${built-jar.properties}"/> </antcall> </target> but it took me a while to find this.
The problem is that you have override the compile target without setting the dependencies (look into the build-impl.xml). I will enforce the deps-jar in all the -do-compile*
Fixed jet-main 8291897458c0
(In reply to comment #1) > The problem is that you have override the compile target without setting the > dependencies (look into the build-impl.xml). > I will enforce the deps-jar in all the -do-compile* I'm not sure I've understood your answer. The "-do-compile-test" and "-do-compile-test-single" target already depended compile, which in turn depends on deps-jar, so I don't think that the behavior changes after this changeset... The deps-jar target only builds the compile-time dependencies, which is the right thing to do before the compilation step. The solution to my problem would be having the "-pre-test-run" target build the runtime dependencies.
In the vanilla project (nothing is overridden) the dependent compile works fine for project on test run cp. But when the compile is overridden the -do-compile-test (-do-compile-test-single) calls the overridden compile which may not specify the dependency on deps-jar and it's the only place where this dependency is specified.
Integrated into 'main-golden', will be available in build *201011270001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/8291897458c0 User: Tomas Zezula <tzezula@netbeans.org> Log: #192463:Projects which are runtime dependencies for testing another project are not built