[
https://issues.jboss.org/browse/SHRINKWRAP-353?page=com.atlassian.jira.pl...
]
Eric Lefevre-Ardant commented on SHRINKWRAP-353:
------------------------------------------------
Shouldn't the sample code be
war2 = war.shallowCopy();
war.get("/path1").getAsset() == war2.get("/path1").getAsset(); //
Returns true
instead?
That is, pointers to the assets should be copied, but the nodes should be new instances.
Support for Shallow Copy of an Archive
---------------------------------------
Key: SHRINKWRAP-353
URL:
https://issues.jboss.org/browse/SHRINKWRAP-353
Project: ShrinkWrap
Issue Type: Feature Request
Components: api, impl-base
Affects Versions: 1.0.0-cr-1
Reporter: Aslak Knutsen
{code}
war2 = war.shallowCopy();
war.delete("file.txt")
Assert.assertTrue(war2.contains("file.text"))
{code}
We're going to take a shallow copy approach here, such that:
{code}war2 = war.shallowCopy();
war.get("/path1"); == war2.get("/path1"); // Returns true{code}
--
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