buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Boisvert (JIRA)" <>
Subject [jira] Commented: (BUILDR-371) Artifact class should support 'name' or 'path' method
Date Sun, 28 Feb 2010 00:52:05 GMT


Alex Boisvert commented on BUILDR-371:

Good point/question.   Artifact extends FileTask and I agree this really belongs in FileTask's
documentation.   I think both 'name' and 'to_s' methods are the (unofficially) supported ways
to obtain the filename.   That's certainly what Buildr uses internally.

Would you like to raise the point on the Rake mailing list or file an issue for them?  Once
clarified we can update the documentation.

> Artifact class should support 'name' or 'path' method
> -----------------------------------------------------
>                 Key: BUILDR-371
>                 URL:
>             Project: Buildr
>          Issue Type: Improvement
>          Components: Core features
>            Reporter: Kevin Smith
> I wanted to copy an artifact to a specific directory, but couldn't find any way to determine
the filespec to pass to cp. Apparently to_s works, but it would be better to have an obvious
method to obtain the full filespec (path+name). Honestly, it seems like this belongs in FileTask,
so it would be available to any type of file.
> Also, whatever is chosen should be documented. Even if it just stays as to_s, that should
be clearly mentioned in the api docs, and in the user guide.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message