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

Summary: Netbeans generated ant scripts don't work standalone
Product: projects Reporter: jzwiers <jzwiers>
Component: AntAssignee: Jesse Glick <jglick>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

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 ***