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

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Nightly Builds
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      Operating System: other
      Platform: Other

    • Bugzilla Id:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: