That should work automatically - in build.xml:

 <target name="set-mysql-script-dir" if="project.using.mysql">
        <property name="project.scripts.dir" value="scripts/mysql"/>
 </target>
  <target name="set-derby-script-dir" if="project.using.derby">
                <property name="project.scripts.dir" value="scripts/derby"/>
  </target>
        
<target name="post-compile-core" depends="set-mysql-script-dir, set- derby-script-dir"> <copy file="${project.scripts.dir}/widgetdb.sql" tofile="$ {project.build.classes.dir}/widgetdb.sql"/> <copy file="${project.scripts.dir}/hibernate.cfg.xml" tofile="$ {project.build.classes.dir}/hibernate.cfg.xml"/>
  </target>

On 22 Oct 2009, at 21:49, Ross Gardler wrote:

2009/10/22 Ross Gardler <[email protected]>:
2009/10/22 Scott Wilson <[email protected]>:

I've tested both approaches using JRun, and all the functional tests pass - the shindig integration doesn't work at this stage, but I'm pretty happy
we've got it working for standalone Wookie without Shindig.

Need to add the follwing to build.properties

project.scripts.dir=scripts/derby

Ross

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to