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 40892 - Support for using symlinks
Summary: Support for using symlinks
Status: RESOLVED FIXED
Alias: None
Product: www
Classification: Unclassified
Component: Builds & Repositories (show other bugs)
Version: 4.x
Hardware: PC Linux
: P1 blocker (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-10 09:20 UTC by Jaroslav Tulach
Modified: 2004-08-13 12:11 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
My fix that seems to cure the problem on my computer (2.00 KB, patch)
2004-03-10 09:21 UTC, Jaroslav Tulach
Details | Diff
Patch to ANT's ImportTask.java (654 bytes, patch)
2004-03-10 14:37 UTC, Michal Zlamal
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Tulach 2004-03-10 09:20:15 UTC
It seems that the recent versions of flexible
build do not support symlinks in following sence:

mkdir openide.36
ln -s openide.36 openide

The GetModuleName ant task seems to fail to find
the name of the module. That is bad as many people
including me and stavbicka are relying on that.
Comment 1 Jaroslav Tulach 2004-03-10 09:21:29 UTC
Created attachment 13919 [details]
My fix that seems to cure the problem on my computer
Comment 2 Jesse Glick 2004-03-10 13:10:59 UTC
Michal explained that getCanonicalPath was a workaround for an
apparent symlink bug in Ant's <import>.
Comment 3 Michal Zlamal 2004-03-10 14:36:06 UTC
I have a fix to ANT 1.6.1 - I'll attach the patch to org.apache.tools.
ant.taskdefs.ImportTask class...
Comment 4 Michal Zlamal 2004-03-10 14:37:05 UTC
Created attachment 13923 [details]
Patch to ANT's ImportTask.java
Comment 5 Jaroslav Tulach 2004-03-11 10:10:25 UTC
May I ask for evaluation of my patch, Michal? Does it not work?
Comment 6 Michal Zlamal 2004-03-11 15:20:30 UTC
Yarda's patch seem to work. Jesse want do you think about it?
Comment 7 Jaroslav Tulach 2004-03-12 14:44:03 UTC
If my fix allows (partial) usage of symlinks and does not break
anything. I suggest to apply. You can leave this bug open and wait for
the patch of ant, but my fix will give me and Hrebejk chance to work
before ant 1.6.2 is out.
Comment 8 Jesse Glick 2004-03-12 16:16:44 UTC
Yes, the patch looks OK to me as a workaround. (Probably need to
update it against current version of GetModuleName.java - pretty trivial.)
Comment 9 Michal Zlamal 2004-03-15 08:42:22 UTC
So Yarda, go ahead and commit it...
Comment 10 Jaroslav Tulach 2004-03-15 10:42:02 UTC
Checking in GetModuleName.java;
/cvs/nbbuild/antsrc/org/netbeans/nbbuild/GetModuleName.java,v  <-- 
GetModuleName.java
new revision: 1.6; previous revision: 1.5
Comment 11 Jesse Glick 2004-04-20 22:03:21 UTC
I filed an Ant bug report:

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=28505