[JBoss JIRA] Created: (SHRINKWRAP-319) Add jboss-deprecated Repository to Default Config
by Andrew Rubinger (JIRA)
Add jboss-deprecated Repository to Default Config
-------------------------------------------------
Key: SHRINKWRAP-319
URL: https://issues.jboss.org/browse/SHRINKWRAP-319
Project: ShrinkWrap
Issue Type: Task
Reporter: Andrew Rubinger
Assignee: Andrew Rubinger
Required to get at trove:trove, a dependency of the VDF extension:
[ERROR] Failed to execute goal on project shrinkwrap-extension-vdf: Could not resolve dependencies for project org.jboss.shrinkwrap:shrinkwrap-extension-vdf:jar:1.0.0-beta-6-SNAPSHOT: Failed to collect dependencies for [org.jboss.shrinkwrap:shrinkwrap-api:jar:1.0.0-beta-6-SNAPSHOT (compile), org.jboss.shrinkwrap:shrinkwrap-impl-base:jar:1.0.0-beta-6-SNAPSHOT (test), org.jboss.shrinkwrap:shrinkwrap-extension-vfs3:jar:1.0.0-beta-6-SNAPSHOT (provided), junit:junit:jar:4.8.2 (test), org.jboss:jboss-vfs:jar:3.0.0.CR5 (provided), org.jboss.deployers:jboss-deployers-vfs:jar:2.2.0.Alpha4 (provided), org.jboss.logging:jboss-logging-spi:jar:2.2.0.CR1 (compile), org.jboss.logging:jboss-logging-jdk:jar:2.2.0.CR1 (test), org.jboss.logmanager:jboss-logmanager:jar:1.2.0.CR1 (test), org.jboss.logging:jboss-logging-logmanager:jar:2.2.0.CR1 (test), org.jboss.threads:jboss-threads:jar:2.0.0.CR4 (test), org.jboss.threads:jboss-threads-metadata:jar:2.0.0.CR4 (test), org.jboss.reloaded:jboss-reloaded-vdf-bootstrap-minimal:jar:0.1.4 (test)]: Failed to read artifact descriptor for trove:trove:jar:2.1.1: Could not transfer artifact trove:trove:pom:2.1.1 from/to repository.jboss.org (http://repository.jboss.org/maven2/): Access denied to: http://repository.jboss.org/maven2/trove/trove/2.1.1/trove-2.1.1.pom -> [Help 1]
For users behind the VPN, this build *will* succeed, as it'll use the old Nexus location (redirects still work behind the JBoss VPN). Else this will fail. So put in place in the POM access to the new deprecated repo.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 8 months
[JBoss JIRA] Created: (SHRINKWRAP-318) Support adding web and WEB-INF resources with relative path of source
by Ian Brandt (JIRA)
Support adding web and WEB-INF resources with relative path of source
---------------------------------------------------------------------
Key: SHRINKWRAP-318
URL: https://issues.jboss.org/browse/SHRINKWRAP-318
Project: ShrinkWrap
Issue Type: Enhancement
Components: api
Affects Versions: 1.0.0-beta-5
Reporter: Ian Brandt
I've noticed with WebArchives that {{addAsResource(String)}} preserves the relative path of the source. E.g. {{addAsResource("some/file")}} is added to the archive as "WEB-INF/classes/some/file". On the other hand {{addAsWebResource(String)}} and {{addAsWebInfResource(String)}} do not preserve the relative source path.
I have the webapp resources for my app under test copied to the test classpath relative from the web root. Any time I have a WEB-INF resource under one or more subfolders I find that I have to do {{addAsWebInfResource("WEB-INF/jsp/path/to/some.jsp", "jsp/path/to/some.jsp")}} or {{addAsWebInfResource("WEB-INF/jsp/path/to/some.jsp", "WEB-INF/jsp/path/to/some.jsp")}}. It would be preferable to just be able to say {{addAsWebResource("WEB-INF/jsp/path/to/some.jsp")}}, but when I do that the JSP is added to the archive as "some.jsp" at the web root.
I believe the API would be more intuitive if the {{addAs{_}X{_}(String{_}\[, ...\]{_})}} methods were consistent with regards to preserving the relative path of the source resource. It would also be useful to have the option of preserving the source resource's path, or not. Perhaps {{addAsResource(String)}} and {{addAsRelativeResource(String)}}, etc.? Note however that I haven't considered the other {{add}} overloads ({{Asset}}, {{File}}, etc.) as I haven't used them yet.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 8 months
[JBoss JIRA] Created: (SHRINKWRAP-304) Add option for omitting archive extension from exploded directory name
by Ian Brandt (JIRA)
Add option for omitting archive extension from exploded directory name
----------------------------------------------------------------------
Key: SHRINKWRAP-304
URL: https://issues.jboss.org/browse/SHRINKWRAP-304
Project: ShrinkWrap
Issue Type: Enhancement
Components: api
Affects Versions: 1.0.0-beta-2
Reporter: Ian Brandt
It would be nice if ExplodedExporter offered the option of omitting the archive extension from the exploded directory name.
h5. Current Method:
{code:java}
/**
* Exports provided archive as an exploded directory structure.
*
* @param archive
* @param parentDirectory Must be a folder
* @return File for exploded archive contents
* @throws IllegalArgumentException if the archive or parent directory not valid
* @throws ArchiveExportException if the export process fails
*/
File exportExploded(File parentDirectory);
{code}
h5. Current Example:
{code:java}
Archive webArchive = ShrinkWrap.create(WebArchive.class, "test.war");
File explodedDirectory = webArchive.as(ExplodedExporter.class).exportExploded(tmpDirectory);
System.out.println(explodedDirectory.getName()) // "test.war"
{code}
h5. Proposed Method Overload:
{code:java}
/**
* Exports provided archive as an exploded directory structure.
*
* @param archive
* @param parentDirectory Must be a folder
* @param omitExtension Whether to omit the archive extension from the exploded directory name
* @return File for exploded archive contents
* @throws IllegalArgumentException if the archive or parent directory not valid
* @throws ArchiveExportException if the export process fails
*/
File exportExploded(File parentDirectory, boolean omitExtension);
{code}
h5. Proposed Example
{code:java}
Archive webArchive = ShrinkWrap.create(WebArchive.class, "test.war");
File explodedDirectory = webArchive.as(ExplodedExporter.class).exportExploded(tmpDirectory, true);
System.out.println(explodedDirectory.getName()) // "test"
{code}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 9 months
[JBoss JIRA] Created: (SHRINKWRAP-303) Add getAsType(Class<Archive<?>> archiveType)
by Andrew Rubinger (JIRA)
Add getAsType(Class<Archive<?>> archiveType)
--------------------------------------------
Key: SHRINKWRAP-303
URL: https://issues.jboss.org/browse/SHRINKWRAP-303
Project: ShrinkWrap
Issue Type: Task
Reporter: Andrew Rubinger
We shouldn't require users to specify an ArchiveFormat for Archive.getAsType. This, in the large majority of cases, can be inferred from the Archive type passed in (for instance, WebArchive.class generally means ArchiveFormat.ZIP).
Add to the META-INF/services files for each archive type the default archive format, and use this in a getAsType(Class<Archive<?>> archiveType, ArchivePath path) method to delegate to the already in-place getAsType(Class<Archive<?>> archiveType, ArchivePath path, ArchiveFormat format)
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 9 months