forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From je...@apache.org
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
  Log:
  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">
  
    <description>
      Proxy Forrest targets that run the customized Ant provided with Forrest,
      rather than using the invoker's version.
  
      The 'validate' target in forrest.build.xml requires a patched Ant 1.6 to
      run.  Thus if forrest.build.xml is invoked from a user's script, it will
      fail.  The solution is to invoke this script's proxy targets, eg:
  
      <![CDATA[
      <target name="site" description="Build a static website">
        <ant antfile="${forrest.home}/forrest.antproxy.xml" target="site"/>
      </target>
      ]]>
    </description>
  
    <property name="build.sysclasspath" value="ignore"/>
  
    <target name="validate" description="Validates XML doc files">
      <antcall target="forrest"><param name="target" value="validate"/></antcall>
    </target>
    <target name="webapp" description="Generates an unpacked webapp">
      <antcall target="forrest"><param name="target" value="webapp"/></antcall>
    </target>
    <target name="war" description="Generates a packaged .war webapp">
      <antcall target="forrest"><param name="target" value="war"/></antcall>
    </target>
    <target name="site" description="Generates static HTML">
      <antcall target="forrest"><param name="target" value="site"/></antcall>
    </target>
  
    <path id="forrest-classpath">
      <fileset dir="${forrest.home}">
        <include name="ant/lib/*.jar"/>
        <include name="lib/endorsed/*.jar"/>
      </fileset>
      <pathelement location="${java.home}/../lib/tools.jar"/>
    </path>
  
    <target name="forrest">
      <java classname="org.apache.tools.ant.Main" 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}/forrest.build.xml -emacs ${target}"/>
      </java>
    </target>
  
  
  </project>
  
  
  

Mime
View raw message