Re: longwell build system

From: Jon Crump <jjcrump_at_u.washington.edu>
Date: Fri, 8 Jul 2005 11:00:28 -0700 (PDT)

Stefano and Ryan,

Many thanks, that gives me a lot to chew on. The Ant manual looks very
clear and comprehensive. As to the matter of XSLT: the via build.xml file
is instructive. It looks like I could use this as a model, just plugging
in my file-names.

<else>
   <echo message="Processing via.rdf"/>
   <java classname="net.sf.saxon.Transform" classpathref="classpath">
         <arg line="-o ${base}/data/via.rdf ${base}/data/harvard-via.xml
${base}/stylesheets/via.xsl"/>
   </java>
   <echo message="Validating via.rdf"/>
   <java classname="jena.rdfparse" classpathref="classpath">
          <arg line="-stn ${base}/data/via.rdf"/>
   </java>
</else>

Do you think it would work if I simply replaced the saxon7.jar with
saxon8.jar, or would I break something I can't see? It doesn't help that I
don't really know how java classpaths work. Is the classpath specified
elsewhere, and would it have to be edited? neither the
classname="net.sf.saxon.Transform", nor classpathref="classpath" look like
pointers to ./tools/lib/saxon7.jar.

Thanks again,
Jon

On Fri, 8 Jul 2005, Ryan Lee wrote:
>
> You may want to familiarize yourself with Ant [1], the build system that's
> shipped alongside Longwell v1.0 (as opposed to, say, Make). If you download
> the Harvard VIA dataset (run ./build.sh webapp -Dbundle=art-public), you'll
> see inside the build.xml file there a 'data' target which does XSLT
> transformation.
>
> I believe there's a generic shell type of task for Ant as well (<exec>),
> though some tasks built in to Ant may cover the actions you're looking to do.
> See the Ant manual [2].
__________
J.J. Crump
Dept. of History 353560
University of Washington
Seattle, WA. 98195
Received on Fri Jul 08 2005 - 17:57:46 EDT

This archive was generated by hypermail 2.3.0 : Thu Aug 09 2012 - 16:39:18 EDT