<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="-1"><br>
The file build.xml in the directory widar/schema implements several
options. <br>
Option <i>genJaxb</i>  generates Java code from the XML schema,
compiles Java code and creates file  vciJaxb.jar  in the directory
~/widar/jars.<br>
(the file name is supposed to suggest that jar contains  JAXB generated
VCI code).<br>
<br>
Developers who use XML schema  can check out the schema files and run "<i>ant
genJaxb</i>" to generate jar in their own development environment. If
preferred, I can add the jar file to the repository, but I am afraid
that we may run into interoperability problems. <br>
Potential issue: I use Java 6.0 to compile the schema. On my system,
compilation fails for Java 5.0.<br>
<br>
Sonja <br>
<br>
</font><br>
David Harland wrote:
<blockquote cite="mid:49234D48.3080601@nrao.edu" type="cite">I did some
work related to the build of VCI jar files.  I consider this
work to be a stop-gap until the time when the vci stays stable for
awhile.  Perhaps Sonja will just supply a jar file in the future?<br>
  <br>
Here's a summary:<br>
  <ol>
    <li>In subversion i added pom.xml to the repository that holds the
vci schema files.  This is used for maven 2 builds.  Maven 1 builders
can ignore this.<br>
      <br>
    </li>
    <li>I did NOT alter the location of the schema files in the
repository.  I had thought this might be a req't for the maven 2 build
(the schema files are expected to reside in src/main/resources), but
the configuration allowed for overriding the default location.<br>
      <br>
    </li>
    <li>I did, though, add a dummy src/main/resources to the
repository. 
The build squawked w/out this.  It is empty.<br>
      <br>
    </li>
    <li>I built new versions in the same place in the repository
(../nrao/widar-schema) as the older ones.  The new ones are: 3.4.0
& 3.4.1-SNAPSHOT.  I figured that matching the 3.4 VCI version ID
was an OK idea.  3.4.0 won't change; 3.4.1-S'T will change when schema
changes are made but the VCI doc version is not updated.<br>
      <br>
    </li>
    <li>I used the same pkg name as was found in the 06262008 version.<br>
      <br>
    </li>
    <li>I added jars of the generated source files to the repository.<br>
      <br>
    </li>
    <li>The new jars depend on jaxb 2.1, not 2.0.<br>
      <br>
    </li>
    <li>I'll be updating the Project Model to use the new VCI shortly.</li>
  </ol>
I don't think this will cause any one grief, but if it does, please let
me know.<br>
  <br>
David<br>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
evla-sw-discuss mailing list
<a class="moz-txt-link-abbreviated" href="mailto:evla-sw-discuss@listmgr.cv.nrao.edu">evla-sw-discuss@listmgr.cv.nrao.edu</a>
<a class="moz-txt-link-freetext" href="http://listmgr.cv.nrao.edu/mailman/listinfo/evla-sw-discuss">http://listmgr.cv.nrao.edu/mailman/listinfo/evla-sw-discuss</a>
  </pre>
</blockquote>
<br>
<pre class="moz-signature" cols="90">-- 
Sonja Vrcic
Software Engineer
National Research Council
Herzberg Institute of Astrophysics
Dominion Radio Astrophysical Observatory,
Penticton, BC, Canada
Tel:(250)490-4309/(250)493-2277ext.309
<a class="moz-txt-link-abbreviated" href="mailto:Sonja.Vrcic@nrc-cnrc.gc.ca">Sonja.Vrcic@nrc-cnrc.gc.ca</a>
<a class="moz-txt-link-freetext" href="http://www.drao-ofr.hia-iha.nrc-cnrc.gc.ca/">http://www.drao-ofr.hia-iha.nrc-cnrc.gc.ca/</a>
</pre>
</body>
</html>