[shrinkwrap-issues] [JBoss JIRA] (SHRINKWRAP-381) Support "mv" operation
Ivan Pazmino (JIRA)
jira-events at lists.jboss.org
Wed Feb 8 19:22:48 EST 2012
[ https://issues.jboss.org/browse/SHRINKWRAP-381?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12665223#comment-12665223 ]
Ivan Pazmino edited comment on SHRINKWRAP-381 at 2/8/12 7:22 PM:
-----------------------------------------------------------------
Basic idea would be creating a copy in the new path and deleting the original
Archive archive = ShrinkWrap.create(JavaArchive.class, "archive.jar");
ArchivePath path = new BasicPath("/target/archive/path");
archive.moveTo(path);
Archive movedArchive = //here I want to get a reference to /target/archive/path/archive.jar but can't figure out how
assertIsNull(archive.get("archive.jar"));
assertNotNull(movedArchive.get("archive.jar"));
was (Author: iapazmino):
Basic idea would be
Archive archive = ShrinkWrap.create(JavaArchive.class, "archive.jar");
ArchivePath path = new BasicPath("/target/archive/path");
archive.moveTo(path);
Archive movedArchive = //here I want to get a reference to /target/archive/path/archive.jar but can't figure out how
assertIsNull(archive.get("archive.jar"));
assertNotNull(movedArchive.get("archive.jar"));
Am I missing something?
> Support "mv" operation
> ----------------------
>
> Key: SHRINKWRAP-381
> URL: https://issues.jboss.org/browse/SHRINKWRAP-381
> Project: ShrinkWrap
> Issue Type: Feature Request
> Components: api, impl-base
> Reporter: Andrew Rubinger
> Assignee: Ivan Pazmino
>
> Create a "move" command for ShrinkWrap. Essentially a shortcut to deleting an Asset, then re-adding it at the same ArchivePath.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the shrinkwrap-issues
mailing list