Menu

#284 Automatically Add New Files to Project

closed
5
2008-05-14
2006-03-06
No

When doing a cvs update, new files might be downloaded
to the local directories; however, they do not
automatically get added to a DrJava project.

It would be nice to rescan the project's source
directories for new *.java files when a project is
opened or when the user explicitly does a "Scan
Directories for New Files" action. DrJava then presents
a dialog with a list of new files, and the user can
select the files to add using checkboxes.

The project properties should have a checkbox
"Automatically Scan for New Files on Project Open".

Using an (optional) automatic scanner instead of making
ALL *.java files below the source root part of the
project has the advantage that it doesn't violate the
DrJava "culture" of being able to just compile and work
with a subset of the files in a directory.

Discussion

  • Dan Smith

    Dan Smith - 2006-04-03

    Logged In: YES
    user_id=1060117

    See also my feature request: [ 1425713 ] Projects mirror file system

    I think that until we achieve what I'm suggesting in my request, partial
    solutions like this will just feel like complicated hacks that don't quite work
    intuitively because there are other essential features of mirroring the file
    system that are left out. (For example -- if we're adding files that show up in
    the file system, should we also be removing files that aren't in the file system
    (without annoying error messages)?)

    A manual scan is already supported -- right click on the top-level folder and
    select "Open All Files" or something like that.

     
  • Mathias Ricken

    Mathias Ricken - 2008-05-14

    Logged In: YES
    user_id=1075744
    Originator: YES

    Started by patman600 in COMP 312, finished by mgricken.

     
  • Mathias Ricken

    Mathias Ricken - 2008-05-14
    • assigned_to: nobody --> mgricken
    • status: open --> closed