[
https://issues.apache.org/jira/browse/KNOX-1826?focusedWorklogId=213240&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-213240
]
ASF GitHub Bot logged work on KNOX-1826:
----------------------------------------
Author: ASF GitHub Bot
Created on: 14/Mar/19 16:45
Start Date: 14/Mar/19 16:45
Worklog Time Spent: 10m
Work Description: risdenk commented on issue #73: KNOX-1826 - Replace
zip4j with ShrinkWrap
URL: https://github.com/apache/knox/pull/73#issuecomment-472957076
Manually checked that extracted application is the same with Knox 1.2.0 and
after this patch.
1. Download sample war:
https://tomcat.apache.org/tomcat-8.5-doc/appdev/sample/
2. Create applications directory with sample war
```bash
# ls -lR data/applications/sample/
total 8
drwxr-xr-x 3 krisden staff 96 Mar 14 12:30 app
-rw-r--r-- 1 krisden staff 1913 Mar 14 12:28 service.xml
data/applications/sample//app:
total 16
-rw-r--r--@ 1 krisden staff 4606 Mar 14 12:18 sample.war
```
3. Ensure there is a topology with:
```xml
<application>
<name>sample</name>
</application>
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 213240)
Time Spent: 0.5h (was: 20m)
> Replace zip4j with ShrinkWrap
> -----------------------------
>
> Key: KNOX-1826
> URL: https://issues.apache.org/jira/browse/KNOX-1826
> Project: Apache Knox
> Issue Type: Bug
> Components: Server
> Reporter: Kevin Risden
> Assignee: Kevin Risden
> Priority: Minor
> Fix For: 1.3.0
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> Currently we rely on zip4j to explode wars in the case of internal
> application deployments. We can replace this with shrinkwrap:
> {code:java}
> ShrinkWrap.createFromZipFile(WebArchive.class, source);
> archive.as(ExplodedExporter.class).exportExploded(target); {code}
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)