forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject cvs commit: xml-forrest/src/resources/forrest-shbat forrest.antproxy.xml
Date Thu, 31 Oct 2002 11:59:59 GMT
jefft       2002/10/31 03:59:59

  Added:       src/resources/forrest-shbat forrest.antproxy.xml
  Ant proxy targets which invoke the modified Ant bundled with Forrest, rather
  than use the caller's Ant.
  Revision  Changes    Path
  1.1                  xml-forrest/src/resources/forrest-shbat/forrest.antproxy.xml
  Index: forrest.antproxy.xml
  <?xml version="1.0"?>
  <project default="site" basedir="." name="Forrest Ant proxy targets">
      Proxy Forrest targets that run the customized Ant provided with Forrest,
      rather than using the invoker's version.
      The 'validate' target in requires a patched Ant 1.6 to
      run.  Thus if is invoked from a user's script, it will
      fail.  The solution is to invoke this script's proxy targets, eg:
      <target name="site" description="Build a static website">
        <ant antfile="${forrest.home}/forrest.antproxy.xml" target="site"/>
    <property name="build.sysclasspath" value="ignore"/>
    <target name="validate" description="Validates XML doc files">
      <antcall target="forrest"><param name="target" value="validate"/></antcall>
    <target name="webapp" description="Generates an unpacked webapp">
      <antcall target="forrest"><param name="target" value="webapp"/></antcall>
    <target name="war" description="Generates a packaged .war webapp">
      <antcall target="forrest"><param name="target" value="war"/></antcall>
    <target name="site" description="Generates static HTML">
      <antcall target="forrest"><param name="target" value="site"/></antcall>
    <path id="forrest-classpath">
      <fileset dir="${forrest.home}">
        <include name="ant/lib/*.jar"/>
        <include name="lib/endorsed/*.jar"/>
      <pathelement location="${java.home}/../lib/tools.jar"/>
    <target name="forrest">
      <java classname="" fork="true">
        <classpath refid="forrest-classpath"/>
        <jvmarg value="-Dforrest.home=${forrest.home}"/>
        <jvmarg value="-Dbasedir=${basedir}"/>
        <jvmarg value="-Djava.endorsed.dirs=${forrest.home}/lib/endorsed${path.separator}${java.endorsed.dirs}"/>
        <arg line="-f ${forrest.home}/ -emacs ${target}"/>

View raw message