[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-1367) double ds.xml in Seam War project

Denis Golovin (JIRA) jira-events at lists.jboss.org
Mon Nov 26 05:56:18 EST 2007


    [ http://jira.jboss.com/jira/browse/JBIDE-1367?page=comments#action_12389047 ] 
            
Denis Golovin commented on JBIDE-1367:
--------------------------------------

As I remember there is a problem with JBoss MC that was fixed by creating one more copy for ds.file. I need to look at our chat to remember why it was done that way. But it looks like one is used for during the test of WAR configuration another one for ear.

There are two persistence xml because seam-gen project do it this way. One persistence.xml for runtime that is copy of seam-gen/resources/META-INF/persistence-dev-war.xml  and another one is copy of persistence-test.xml.

ant scripts for WAR configuration:
- <target name="jar" depends="compile,copyclasses" description="Build the distribution .jar file">
- <copy todir="${jar.dir}">
- <fileset dir="${basedir}/resources">
  <include name="seam.properties" /> 
  </fileset>
  </copy>
- <copy todir="${jar.dir}/META-INF">
- <fileset dir="${basedir}/resources/META-INF">
  <include name="ejb-jar.xml" /> 
  </fileset>
  </copy>
  <copy tofile="${jar.dir}/META-INF/persistence.xml" file="${basedir}/resources/META-INF/persistence-${profile}.xml" overwrite="true" /> 
  <copy tofile="${jar.dir}/import.sql" file="${basedir}/resources/import-${profile}.sql" overwrite="true" /> 
  </target>

- <target name="buildtest" depends="compiletest,copytestclasses" description="Build the tests">
- <copy todir="${test.dir}">
- <fileset dir="${basedir}/resources">
  <exclude name="META-INF/persistence*.xml" /> 
  <exclude name="import*.sql" /> 
  <exclude name="${project.name}-*-ds.xml" /> 
  </fileset>
  </copy>
  <copy tofile="${test.dir}/META-INF/persistence.xml" file="${basedir}/resources/META-INF/persistence-test-war .xml" overwrite="true" /> 
  <copy tofile="${test.dir}/import.sql" file="${basedir}/resources/import-test.sql" overwrite="true" /> 
- <copy todir="${test.dir}" flatten="true">
- <fileset dir="${src.test.dir}">
  <include name="**/*Test.xml" /> 
  </fileset>
  </copy>
  </target>
 

> double ds.xml in Seam War project
> ---------------------------------
>
>                 Key: JBIDE-1367
>                 URL: http://jira.jboss.com/jira/browse/JBIDE-1367
>             Project: JBoss Tools
>          Issue Type: Bug
>          Components: Seam
>    Affects Versions: 2.0.0.CR1
>            Reporter: Max Andersen
>         Assigned To: Denis Golovin
>            Priority: Blocker
>             Fix For: 2.0.0.GA
>
>
> ds.xml ends up in both resources/ds.xml and in src/model/web-inf/ds.xml
> only one of them should be enough.

-- 
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 jbosstools-issues mailing list