On 04/03/2010 11:08, Ross Gardler wrote:
On 04/03/2010 11:01, Scott Wilson wrote:

Thanks Ross - I copied the connector framework build scripts for the
parser so duplicated the same issue.

Actually there are two problems with your new sub-project.

The first is the error I created when doing the connector subproject
(testing a fix now), the second was that you need to instruct core to
build and locally deploy any sub-projects prior to compilation.

This is done in /build.xml as follows:

I've now committed a fix for these issues. Note the previously pasted snippet for building sub projects is a little different now. It reads:

  <target name="local-publish-subprojects">
        <!-- localy publish sub-projects -->
<ant dir="${wookie.connector.dir}/java" target="publish-local" inheritAll="false"/> <ant dir="${wookie.parser.w3c.dir}/java" target="publish-local" inheritAll="false"/>
  </target>

When we add any sub project we need to add an appropriate line to the above.

If anyone is interested, the problem was that I previously added a pre-compile-core target that was called as part of the compile-core target. However, this was being called after the ivy:resolve rather than before it. I have no idea why I did this with an ant-call rather than a dependency, call it a minor aberation.

Anyway, we now have "local-publish-subprojects" and "pre-compile-core" targets.

I've also added some logging messages to make it easier to track what is going on given that there are now multiple calls to each target for various sub projects.

Ross

Reply via email to