[JBoss JIRA] Created: (SHRINKWRAP-197) export archive to a temporary file name
by Dan Allen (JIRA)
export archive to a temporary file name
---------------------------------------
Key: SHRINKWRAP-197
URL: https://jira.jboss.org/browse/SHRINKWRAP-197
Project: ShrinkWrap
Issue Type: Bug
Components: ext-jetty
Affects Versions: 1.0.0-alpha-10
Reporter: Dan Allen
Assignee: Dan Allen
Fix For: 1.0.0-alpha-11
The archive is exported to a file with the same name as the archive in the temporary directory. That file is set to be deleted when the JVM exits. However, if there is more than one deployment in the same test suite that uses the same test name (typically test.war), then the second deployment will fail because there is a file in the way.
The expected behavior is that the archive is exported to a unique temporary file. It shouldn't matter what the name of the file is as its purpose is to pass the archive contents to Jetty to be extracted.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 9 months
[JBoss JIRA] Created: (SHRINKWRAP-188) WebArchive.addWebResource(File resource, ArchivePath target) doesn't create directory within WEB-INF and file is stored under target's name
by Peter Skopek (JIRA)
WebArchive.addWebResource(File resource, ArchivePath target) doesn't create directory within WEB-INF and file is stored under target's name
-------------------------------------------------------------------------------------------------------------------------------------------
Key: SHRINKWRAP-188
URL: https://jira.jboss.org/browse/SHRINKWRAP-188
Project: ShrinkWrap
Issue Type: Bug
Components: impl-base
Affects Versions: 1.0.0-alpha-10
Reporter: Peter Skopek
Consider following code snippet:
STS = ShrinkWrap.create(WebArchive.class, STS_FILE_NAME);
STS.setManifest(TEST_HELPER.getResourceFile("MANIFEST.MF"));
ArchivePath classes = ArchivePaths.create("classes");
ArchivePath wsdl = ArchivePaths.create("wsdl");
STS.addWebResource(TEST_HELPER.getResourceFile("fed/wstrust-lm/STS/WEB-INF/classes/picketlink-sts.xml"), classes);
STS.addWebResource(TEST_HELPER.getResourceFile("fed/wstrust-lm/STS/WEB-INF/classes/sts-roles.properties"), classes);
STS.addWebResource(TEST_HELPER.getResourceFile("fed/wstrust-lm/STS/WEB-INF/classes/sts-users.properties"), classes);
STS.addWebResource(TEST_HELPER.getResourceFile("fed/wstrust-lm/STS/WEB-INF/classes/sts_keystore.jks"), classes);
STS.addWebResource(TEST_HELPER.getResourceFile("fed/wstrust-lm/STS/WEB-INF/wsdl/PicketLinkSTS.wsdl"), wsdl);
STS.addWebResource(TEST_HELPER.getResourceFile("fed/wstrust-lm/STS/WEB-INF/jboss-web.xml"));
STS.addWebResource(TEST_HELPER.getResourceFile("fed/wstrust-lm/STS/WEB-INF/jboss-wsse-server.xml"));
STS.addWebResource(TEST_HELPER.getResourceFile("fed/wstrust-lm/STS/WEB-INF/sts-jboss-beans.xml"));
STS.addWebResource(TEST_HELPER.getResourceFile("fed/wstrust-lm/STS/WEB-INF/web.xml"));
I wanted to create archive with several files under WEB-INF/classes/ directory, but instead of it I got only WEB-INF/classes file with content of last added file.
The same happens for wsdl directory.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 9 months