[
https://issues.jboss.org/browse/SHRINKWRAP-381?page=com.atlassian.jira.pl...
]
Ivan Pazmino edited comment on SHRINKWRAP-381 at 2/8/12 10:10 PM:
------------------------------------------------------------------
Basic idea would be creating a copy in the new path and deleting the original
{code}
Archive archive = ShrinkWrap.create(JavaArchive.class, "archive.jar");
ArchivePath path = new BasicPath("/target/archive/path");
archive.moveTo(path);
//here I want to get a reference to /target/archive/path/archive.jar but can't figure
out how
Archive movedArchive =
assertIsNull(archive.get("archive.jar"));
assertNotNull(movedArchive.get("archive.jar"));
{code}
was (Author: iapazmino):
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"));
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 Nodes inside of a ShrinkWrap Archive. 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