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 68589 - Cannot specify platform dir's relatively
Summary: Cannot specify platform dir's relatively
Status: RESOLVED INVALID
Alias: None
Product: apisupport
Classification: Unclassified
Component: Harness (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-12 15:10 UTC by Jaroslav Tulach
Modified: 2005-11-14 22:04 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 Jaroslav Tulach 2005-11-12 15:10:00 UTC
I created a contrib/sampleapps/htmleditor project and I would like it to work 
from scratch - e.g. without opening and configuring it in IDE. That is why I 
modified nbproject/platform.properties to point to $nb_all/nbbuild/netbeans 
where usually a platform is built using  
 
nbplatform.NetBeansFromCVS.harness.dir=../../../nbbuild/netbeans/harness 
 
However this does not work - the build script gets confused by usage of 
relative paths.
Comment 1 Jaroslav Tulach 2005-11-12 15:12:32 UTC
I fixed that by  
http://www.netbeans.org/source/browse/contrib/sampleapps/htmleditor/nbproject/build-impl.xml?r1=1.1&r2=1.2 
and now the application can be build from scratch. Shall not similar change be 
applied to default apisupport templates? 
 
Comment 2 Jesse Glick 2005-11-14 22:04:16 UTC
You should not be using a named platform. See harness/README section "USING A
RELATIVE PATH FOR THE PLATFORM WITH A MODULE SUITE". Should be analogous for a
standalone module, I guess; maybe try

    netbeans.dest.dir=${basedir}/../../../nbbuild/netbeans
    harness.dir=${netbeans.dest.dir}/harness

Anyway, the proposed patch is not good because the special property task should
be setting a property of any kind; if a particular user of that task wants to
interpret it as a file location, the calling code can use <property name="..."
location="..."/> as usual.