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 123581 - Netbeans generated ant scripts don't work standalone
Summary: Netbeans generated ant scripts don't work standalone
Status: RESOLVED DUPLICATE of bug 44035
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-06 16:36 UTC by jzwiers
Modified: 2007-12-06 16:52 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 jzwiers 2007-12-06 16:36:15 UTC
"standard"  Netbeans generated ant scripts include references to netbeans related directories, which prevent
other users (not using netbeans) to run de default target. Error message:
build-impl.xml:201: the <classpath> for <junit> must include junit.jar if not in Ant's own classpath

A related issue is the reference (via private/private.properties) to my 
C:\\Documents and Settings\\zwiers\\.netbeans\\6.0\\build.properties file.
What is going to happen in a few month, or a few years, when we have netbeans 6.1 or netbeans 7 ?
The copylibs path specified in that file won't be available any longer, and the build is bound to fail.
Comment 1 Jesse Glick 2007-12-06 16:52:06 UTC
For use outside the IDE you need to pass definitions for these paths to Ant.

The pointer to build.properties is updated whenever you open a project in the IDE, so for in-IDE usage there is no issue
with upgrading NetBeans or switching to a different installation location. (The nbproject/private subdir is not part of
the versionable content of the project; like build/ and dist/ it should not be shared.)

*** This issue has been marked as a duplicate of 44035 ***