[daisy] [JIRA] Updated: (DSY-470) backup tool should provide usefull
error-msg in case of missing required params
Elvis Willems (JIRA)
issues at cocoondev.org
Mon Oct 29 09:10:29 CST 2007
[ http://issues.cocoondev.org//browse/DSY-470?page=all ]
Elvis Willems updated DSY-470:
------------------------------
Attachment: BackupTool.java.patch
fixed check for -r -b and -l arguments
> backup tool should provide usefull error-msg in case of missing required params
> -------------------------------------------------------------------------------
>
> Key: DSY-470
> URL: http://issues.cocoondev.org//browse/DSY-470
> Project: Daisy
> Type: Improvement
> Components: Backup
> Versions: 2.0.1
> Reporter: Marc Portier
> Priority: Minor
> Attachments: BackupTool.java.patch
>
> The daisy-backup-tool requires to have a -l LOCATION option passed to it in the args.
> If it is not set a nasty NPE is thrown:
> java.lang.NullPointerException
> at java.io.File.<init>(File.java:194)
> at org.outerj.daisy.backupTool.BackupTool.main(BackupTool.java:69)
> It would be better to check if the argument is set (I suppose commons cli has stuff for this) and switch to providing the -h output with some additional message if it is not.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.cocoondev.org//secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
More information about the daisy
mailing list