Uploaded image for project: 'Commons VFS'
  1. Commons VFS
  2. VFS-21

[vfs] <v-copy>/<v-sync> logs warning instead of throwing BuildException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Nightly Builds
    • None
    • None
    • Operating System: other
      Platform: Other

    • 38491

    Description

      I found that using the <v-copy> or <v-sync> that if the source file
      (s)/directory does not exist then the code logs a warning, instead of throwing
      a BuildException.

      A fix could be made here:
      org.apache.commons.vfs.tasks.AbstractSyncTask

      Change method private void handleFiles() throws Exception
      if (!srcFile.exists()) then throw a BuildException

      A future enhancement is supporting a failonerror attribute.

      Attachments

        Activity

          People

            Unassigned Unassigned
            styler@kronos.com Steven Tyler
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: