ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nau, Michael" <Michael....@pyxis.com>
Subject Loading stylesheets from a jar file (<xslt> task)
Date Fri, 17 Jan 2003 03:31:47 GMT
Does anyone know of a way to load an xsl stylesheet from a jar file
rather than a path off the basedir?

I would like to repackage the javancss stuff to include the stylesheets
in the javancss.jar then load the stylesheet from the jar in ant. This
would ease the issues of having to keep track of both the stylesheets
and the jars separately.

Any ideas?

Thanks,
Mike.

sample code
===========
    <path id="javancss.cp">
      <pathelement location="${dev.lib.dir}/javancss-xslt.jar"/>
    </path>         
    
    <taskdef name="javancss" classname="javancss.JavancssAntTask"
classpathref="javancss.cp"/>

    <javancss 
      srcdir          = "${dev.src.dir}"
      packageMetrics  = "true"      
      classMetrics    = "false"     
      functionMetrics = "falase"    
      abortOnFail     = "false"     
      generateReport  = "true"
      outputfile      = "${build.lib.dir}/exception-javancss.xml"  
      format          = "xml"
      includes        = "**/*.java"
    />

    <xslt 
      in="${build.lib.dir}/exception-javancss.xml" 
      out="${build.lib.dir}/exception-javancss.html" 
      style="javancss2html.xsl" 
      classpathref="javancss.cp"
    />  

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message