[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-1311) build.xml: Target explode: Copying of EAR doesn't work when the source-EAR already exists

Mark Schmatz (JIRA) jira-events at lists.jboss.org
Wed May 9 14:24:59 EDT 2007


build.xml: Target explode: Copying of EAR doesn't work when the source-EAR already exists
-----------------------------------------------------------------------------------------

                 Key: JBSEAM-1311
                 URL: http://jira.jboss.com/jira/browse/JBSEAM-1311
             Project: JBoss Seam
          Issue Type: Bug
    Affects Versions: 1.2.1.GA
         Environment: Mac Tiger, Eclipse 3.2.2, Eclipse 3.3M6, Eclipse 3.3M7
            Reporter: Mark Schmatz


During the explode target the EAR is not copied to the deploy-dir if ithe source-EAR already exists. Below if pasted the original target source code produced by Seam-gen 1.2.1 with my little bug fix.
The bug fix is enclosed with the "NEW NEW NEW..." comment and just deletes the source-EAR after copying.

<target name="explode" depends="jar,war,ear,datasource" 
                        description="Deploy the exploded archive">
                <fail unless="jboss.home">jboss.home not set</fail>
                
                <mkdir dir="${jar.deploy.dir}"/>
                <mkdir dir="${war.deploy.dir}"/>                
                
                <copy todir="${jar.deploy.dir}">
                        <fileset dir="${jar.dir}"/>
                </copy>
                <copy todir="${war.deploy.dir}">
                        <fileset dir="${war.dir}"/>
                </copy>
                <copy todir="${ear.deploy.dir}">
                        <fileset dir="${ear.dir}"/>
                </copy>

<!-- NEW NEW NEW NEW -->
           	<delete dir="${ear.dir}" />
<!-- end - NEW -->

        </target>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the seam-issues mailing list