<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    Project Archives definition keeps disappearing
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/chamfamdad">Fletcher Chambers</a> in <i>JBoss Tools</i> - <a href="https://community.jboss.org/message/817997#817997">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Just got a new computer so I am trying to set up Eclipse and JBoss Tools to work on my project.&#160; I can't get anything to work.&#160; So I punt and install&#160; the bundled package from JBoss: JBoss Developer Studio 6.0.1.GA but I am still having the same problem.&#160; Here it is in a nutshell:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>My Configuration</p><p>Windows 7, 64 bit</p><p>JBoss Developer Studio 6.0.1.GA</p><p>Java 1.7</p><p>Like I said it's a new machine, so I thought I would go with all up to date software.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>1) Start a new Java project.</p><p>2) Add two folders: images and javascript</p><p>3) right click the project, select Configure &gt; Add Project Archives Support.&#160; The Project Archives node will now be available under the project (assuming you are in the JBoss view)</p><p>4) right click Project Archives and select New Archive &gt; JAR</p><p>5) name your archive test.war, also select Exploded archive resulting in a folder (no compression)</p><p>6) add two folders to your archive: images and javascript</p><p>7) build archive, check the disk and see that it actually works (i.e you get a test.war folder with two subfolders images and javascript).</p><p>8) close developer studio</p><p>9) open developer studio and check your archive and see that the folders you added are missing.</p><p>10) build archive and see that your folders are now missing from your war file</p><p>11) go to the disk and open the .packages file and see that your folders are still defined!</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>What am I missing?&#160; No matter what I try, eclipse/JBoss Developer Studio/etc doesn't seem to remember what is supposed to be in my archive.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Here is my .packages file, but it seems to be ignored when I close and reopen eclipse/JBoss Developer Studio:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;packages version="1.3"&gt;</p><p>&#160; &lt;package exploded="true" inWorkspace="true" name="test.war" todir="/testing project archives" type="jar"&gt;</p><p>&#160;&#160;&#160; &lt;folder name="images"&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;properties/&gt;</p><p>&#160;&#160;&#160; &lt;/folder&gt;</p><p>&#160;&#160;&#160; &lt;folder name="javascript"&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;properties/&gt;</p><p>&#160;&#160;&#160; &lt;/folder&gt;</p><p>&#160;&#160;&#160; &lt;properties&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;property name="org.jboss.ide.eclipse.as.core.packages.ModuleIDPropertyKey" value="1368710637165118646283970390031483"/&gt;</p><p>&#160;&#160;&#160; &lt;/properties&gt;</p><p>&#160; &lt;/package&gt;</p><p>&#160; &lt;properties/&gt;</p><p>&lt;/packages&gt;</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/817997#817997">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Tools at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>