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 63923 - unable to build due to srcdir error
Summary: unable to build due to srcdir error
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 4.x
Hardware: Sun Solaris
: P3 blocker (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks: 52706
  Show dependency tree
 
Reported: 2005-09-08 18:00 UTC by abumujahed
Modified: 2005-09-15 09:02 UTC (History)
2 users (show)

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 abumujahed 2005-09-08 18:00:08 UTC
I have a project that has test classes only, no src classes.
i have placed all requiered jars on the class path.

running compile againt the test class i get
init:
deps-jar:
BUILD FAILED (total time: 0 seconds)

No error messeges are displayed.

So, i went to the shell prompt, in my NB project dir and typed ant
and i get:
Buildfile: build.xml

-pre-init:

-init-private:

-init-user:

-init-project:

-init-macrodef-property:

-do-init:

-post-init:

-init-check:

-init-macrodef-javac:

-init-macrodef-junit:

-init-macrodef-nbjpda:

-init-macrodef-debug:

-init-macrodef-java:

-init-presetdef-jar:

init:

deps-jar:

-pre-pre-compile:

-pre-compile:

-do-compile:

BUILD FAILED
/space/work/NB_CSI_AMS_TEST/nbproject/build-impl.xml:229: The following error
occurred while executing this line:
/space/work/NB_CSI_AMS_TEST/nbproject/build-impl.xml:112: srcdir attribute must
be set!

Total time: 1 second

there are 2 issues here:
1. the IDE hid the message of the error.
2. I should be able to create projects with test classe only, and not src
classes.... why is this limitaion....
Comment 1 Jesse Glick 2005-09-08 18:19:50 UTC
Wrong component.
Comment 2 Tomas Zezula 2005-09-09 07:21:43 UTC
Definitely not P2, having regular j2seproject with no sources is a corner case.
Adding Karel to CC list, the same behavior is in the [web|j2ee]project.
Comment 3 zikmund 2005-09-09 11:26:28 UTC
Web applications insist on having src/java directory even in wizard - it is P2
issue 52706 for Web, because it is quite common scenario in web tier.
Comment 4 Tomas Zezula 2005-09-15 09:02:19 UTC
Checking in src/org/netbeans/modules/java/j2seproject/resources/build-impl.xsl;
/cvs/java/j2seproject/src/org/netbeans/modules/java/j2seproject/resources/build-impl.xsl,v
 <--  build-impl.xsl
new revision: 1.61; previous revision: 1.60
done