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 47907 - InvocationTargetException for New Project from sources with existing ANT script
Summary: InvocationTargetException for New Project from sources with existing ANT script
Status: CLOSED WORKSFORME
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: 4.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks: 42682
  Show dependency tree
 
Reported: 2004-08-25 13:08 UTC by sandeepkhanna
Modified: 2006-03-24 10:01 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
My Netbeans4.0beta1 log file (129.52 KB, text/plain)
2004-08-25 13:09 UTC, sandeepkhanna
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sandeepkhanna 2004-08-25 13:08:06 UTC
Using Netbeans 4.0beta1, I tried creating a New
Project with existing sources and existing ANT script.

During the New Project wizard, I added all the
files from our <project_base_dir>/lib folder when
asked for the Classpath setting. Some of those
files were .dll and .so along with the 3rd party
jar files.

At the end of the New Project wizard, when the IDE
tried opening the project, it gave a
InvocationTargetException. I think it's because it
was trying to parse the .dll and .so files as
library jar or folder files.
Comment 1 sandeepkhanna 2004-08-25 13:09:02 UTC
Created attachment 17128 [details]
My Netbeans4.0beta1 log file
Comment 2 Tomas Zezula 2004-08-25 14:44:58 UTC
Yes, it is trying to handle the dll and the so files as cp roots
(folder, it is not an archive file). The FreeformProject should remove
them from classpath.
Comment 3 Jesse Glick 2004-08-25 19:23:02 UTC
Of course the user was wrong to add *.so files to the classpath, but
this is about robustness.

Works for me in a trunk build (did not try in the beta, but I am sure
there have been changes made since the beta). Made a new freeform
project, specified some random XML file to add to the classpath.
Freeform CP contained entries ending in a slash such as
file:/..../foo.xml/, i.e. as if they were dirs, which is fine as far
as I am concerned; the CP entry is harmless. I did not get any stack
traces or errors.
Comment 4 Marian Mirilovic 2005-07-12 10:12:25 UTC
closed