You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2008/06/24 01:57:29 UTC

DO NOT REPLY [Bug 45262] New: Request viewpathing support for Ant

https://issues.apache.org/bugzilla/show_bug.cgi?id=45262

           Summary: Request viewpathing support for Ant
           Product: Ant
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P3
         Component: Core
        AssignedTo: notifications@ant.apache.org
        ReportedBy: vahlenkamp@att.com


Could Ant be enhanced to support a viewpath? 

For example if VPATH=/NodeA:/NodeB:/NodeC and a developer's current working
directory is under /NodeA, viewpathing would mean all files required by the
build.xml would not have to exist under /NodeA. Such files could be in /NodeB
or /NodeC as well. Each node of the viewpath would be checked from left to
right for each required file, and the first found instance of the file would be
used. 

The advantage of viewpathing is that the developer doesn't have to maintain a
full set of the project source in their node, rather only those source files
that changed. All other source could be in a shared area or an "official" build
environment. This can facilitate collaboration among multiple developers on
large applications.

The viewpathing feature described above exists in Alcatel-Lucent (and AT&T)
nmake for various UNIX platforms and is quite useful. It would be great to have
it in Ant as well.

Thank you.

Henning Vahlenkamp


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 45262] Request viewpathing support for Ant

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45262





--- Comment #1 from Matt Benson <gu...@yahoo.com>  2008-06-25 08:10:03 PST ---
It seems like the least-intrusive way to do this would be to build it as a
special resource collection, simply a preference-based fileset.  vfileset
maybe?  It might look like:

<vfileset includes="**/*.java">
  <basepath>
    <file file="${local.srcdir}" />
    <file file="${shared.srcdir}" />
  </basepath>
</vfileset>

vfileset would also support a basepathref attribute, the
excludes|defaultexcludes|casesensitive|followsymlinks attributes, and the
include|exclude|includefile|excludefile nested elements.

My only concern is that this might be too specific a use-case to live in Ant
core.  Opinions from other devs?


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.