tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject cvs commit: jakarta-tomcat-jasper/jasper2/src/bin jasper.xml
Date Thu, 01 Aug 2002 17:58:54 GMT
patrickl    2002/08/01 10:58:53

  Added:       jasper2/src/bin jasper.xml
  Convert jspc.* scripts to use commons-launcher
  Revision  Changes    Path
  1.1                  jakarta-tomcat-jasper/jasper2/src/bin/jasper.xml
  Index: jasper.xml
    XML file for launching Jasper applications using the Launcher.
    To run any of the applications in the JDB debugger, execute the Launcher with
    a "-Ddebug=true" argument.
    To run any of the applications in JPDA mode, execute the Launcher with a
    "-Djpda=true" argument.
  <project name="Jasper Launcher" default="jspc" basedir=".">
    <!-- Set the application home to the parent directory of this directory -->
    <property name="jasper.home" location="${basedir}/.."/>
    <!-- Import the user's custom properties -->
    <property file="${jasper.home}/bin/"/>
    <!-- Set user configurable properties -->
    <property name="jasper.jvm.args" value=""/>
    <property name="jasper.source.path" value="${jasper.home}/../../jakarta-servletapi-5/src/share:${jasper.home}/../../jakarta-tomcat-jasper/jasper2/src/share"/>
    <!-- Build the classpath relative to the application home -->
    <path id="base.class.path">
      <fileset dir="${jasper.home}/common/lib" includes="*.jar"/>
      <fileset dir="${jasper.home}/common/endorsed" includes="*.jar"/>
      <fileset dir="${jasper.home}/shared/lib" includes="*.jar"/>
      <pathelement location="${jasper.home}/shared/classes"/>
    <!-- Build the sysproperties relative to the application home -->
    <syspropertyset id="">
      <sysproperty key="java.endorsed.dirs" file="${jasper.home}/common/endorsed"/>
      <sysproperty key="jasper.home" file="${jasper.home}"/>
    <!-- Build the standard jvmargs -->
    <jvmargset id="base.jvm.args">
      <jvmarg line="${jasper.jvm.args}"/>
      <jvmarg value="-Xdebug" if="jpda.settings"/>
      <jvmarg value="-Xrunjdwp:${jpda.settings}" if="jpda.settings"/>
      <jvmarg value="-sourcepath" if="jdb"/>
      <jvmarg path="${jasper.source.path}" if="jdb"/>
    <!-- Target that sets JDB properties when the "debug" property is set -->
    <target name="setjdb" description="Set JDB properties" if="debug">
      <property name="jdb" value="true"/>
    <!-- Target that sets JPDA properties when the "jpda" property is set -->
    <target name="setjpda" description="Set JPDA properties" if="jpda">
      <condition property="jpda.transport" value="dt_shmem">
        <os family="windows"/>
      <condition property="jpda.transport" value="dt_socket">
          <os family="windows"/>
      <condition property="jpda.address" value="jdbconn">
        <equals arg1="${jpda.transport}" arg2="dt_shmem"/>
      <condition property="jpda.address" value="8000">
          <equals arg1="${jpda.transport}" arg2="dt_shmem"/>
      <property name="jpda.suspend" value="y"/>
      <property name="jpda.settings" value="transport=${jpda.transport},address=${jpda.address},server=y,suspend=${jpda.suspend}"/>
    <!-- Target that executes the JSPC compiler-->
    <target name="jspc" description="Execute JSPC compiler"
      <!-- Launch JSPC compiler -->
      <launch classname="org.apache.jasper.JspC"
          <jvmargset refid="base.jvm.args"/>
          <arg value="jspc"/>
          <syspropertyset refid=""/>
          <classpath refid="base.class.path"/>

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message