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 115947 - Library classpath definitions in project.properties not consistent with private.properties
Summary: Library classpath definitions in project.properties not consistent with priva...
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Web Project (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: David Konecny
URL:
Keywords:
: 126339 (view as bug list)
Depends on:
Blocks: 44035
  Show dependency tree
 
Reported: 2007-09-19 03:46 UTC by gsteyn
Modified: 2008-03-25 02:29 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 gsteyn 2007-09-19 03:46:29 UTC
In netbeans 6 beta 1, the project.properties file now includes libs.* definitions for libraries, e.g.

# Property libs.Velocity-1.5.classpath is set here just to make sharing of project simpler.
# The library definition has always preference over this property.
libs.Velocity-1.5.classpath=../../../../dev/repository/velocity-1.5/velocity-1.5.jar;../../../../dev/repository/velocity-1.5/velocity-dep-1.5.jar

However, as can be seen in the above case, the library for Velocity-1.5 has been defined as containing 2 jars.  In this
case, multiple libraries are listed as a semi-colon delimited list.  The same multiple library set is captured in the
private.properties file as

libs.Velocity-1.5.classpath.libfile.1=D:\\dev\\repository\\velocity-1.5\\velocity-1.5.jar
libs.Velocity-1.5.classpath.libfile.2=D:\\dev\\repository\\velocity-1.5\\velocity-dep-1.5.jar

The build-impl.xml file makes use of the classpaths as defined in the private.properties file, e.g.

See the following targets: library-inclusion-in-archive; library-inclusion-in-manifest

The net result is that if you check an NB6 project out of SVN to an environment that does not have all the libraries
defined, then you get an ant build failure with no sharing happening.

Property ${libs.Velocity-1.5.classpath.libfile.1} has not been set

BUILD FAILED
D:\netbwork\projects\ProgEnrolNew\ProgEnrol-war\nbproject\build-impl.xml:529: Wa
rning: Could not find file D:\netbwork\projects\ProgEnrolNew\ProgEnrol-war\${libs.Velocity-1.5.classpath.libfile.1} to copy.
        at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:394)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:341)
        at org.apache.tools.ant.Target.performTasks(Target.java:369)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
cutor.java:40)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
        at org.apache.tools.ant.Main.runBuild(Main.java:668)
        at org.apache.tools.ant.Main.startAnt(Main.java:187)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)

Possibly include the library definitions in project.properties in the same format as in private.properties to make
sharing possible.
Comment 1 Tomas Zezula 2007-09-21 09:31:07 UTC
It's strange that the definitions are different, maybe ReferenceHelper problem.
Comment 2 Jesse Glick 2007-09-26 19:04:03 UTC
Probably specific to web apps - the infix ".libfile." seems to occur in web/project/src but not java/j2seproject/src.
Comment 3 David Konecny 2008-01-31 08:07:25 UTC
This should be resolved as part of sharable libraries effort but I would not close it as duplicate of 44035 but rather
keep it as task to do and test.
Comment 4 Lukas Jungmann 2008-03-21 17:14:48 UTC
*** Issue 126339 has been marked as a duplicate of this issue. ***
Comment 5 David Konecny 2008-03-25 02:29:01 UTC
This should be resolved now. Jungi could you please make sure that your issue 126339 works as expected now? Thanks, -D