[arquillian-issues] [JBoss JIRA] (ARQ-1572) Marry Persistence and JRebel extensions

Bernard Labno (JIRA) jira-events at lists.jboss.org
Mon Nov 18 03:37:06 EST 2013


    [ https://issues.jboss.org/browse/ARQ-1572?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12924320#comment-12924320 ] 

Bernard Labno commented on ARQ-1572:
------------------------------------

Workaround A:  
Include datasets in deployed archive: 
{code:java}
ShrinkWrap.create(WebArchive.class, "someTest.war")
            .addAsResource("datasets")
{code}

Workaround B:
Include manually created rebel.xml in deployed archive:
{code:java}
ShrinkWrap.create(WebArchive.class, "someTest.war")
            .addAsResource("rebel.xml")
{code}
rebel.xml:
{code:xml}
<?xml version="1.0" encoding="UTF-8"?>
<application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.zeroturnaround.com" xsi:schemaLocation="http://www.zeroturnaround.com http://www.zeroturnaround.com/alderaan/rebel-2_0.xsd">

	<classpath>
		<dir name="/home/bernard/projects/agido/server/target/classes"></dir>
		<dir name="/home/bernard/projects/agido/server/target/test-classes"></dir>
	</classpath>

	<web>
		<link target="/">
			<dir name="/home/bernard/projects/agido/server/src/main/webapp"></dir>
		</link>
	</web>

</application>
{code}
                
> Marry Persistence and JRebel extensions
> ---------------------------------------
>
>                 Key: ARQ-1572
>                 URL: https://issues.jboss.org/browse/ARQ-1572
>             Project: Arquillian
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>          Components: Extension - Persistence
>    Affects Versions: persistence_1.0.0.Alpha6
>            Reporter: Bernard Labno
>            Assignee: Bartosz Majsak
>
> JRebel extension currently does not pick up changes in datasets.
> Here is how it works:
> If there is no target/jrebel-temp/.../*.meta file for given deployment then it assumes user wants full redeploy. If such file is present then deployment is blocked and tests are run at once.
> JRebel extension also checks if there is a rebel.xml file in the archive. If not then it generates such file based on exact content of the archive and explodes archive into target/jrebel-temp/*.
> Now the problem is that if resource is not in the archive then it will not be included in generated rebel.xml and thus won't be picked up by JRebel.
> Datasets are now automatically packed inside WEB-INF/lib/randomUUID.jar. JRebel will not substitute resources or classes from bundled libs. We could generate additional rebel.xml for that but I'd have to know what is the name of such archive and we would tightly couple both extensions.
> It would be easiest if Persistence ext would pack datasets directly into WE-INF/classes.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the arquillian-issues mailing list