Login | Register
My pages Projects Community openCollabNet

Discussions > cvs > CVS update: /antelope/

antelope
Discussion topic

Back to topic list

CVS update: /antelope/

Author danson
Full name Dale Anson
Date 2004-02-15 18:47:23 PST
Message User: danson
Date: 04/02/15 18:47:23

Added:
 /antelope/
  build-app.xml, build-source.xml, build-tasks.xml, build.xml, run.xml

Log:
 added build files
 

File Changes:

Directory: /antelope/
=====================

File [added]: build-app.xml
Url: http://antelope.tigr​is.org/source/browse​/antelope/build-app.​xml?rev=1.1&cont​ent-type=text/vnd.vi​ewcvs-markup
Added lines: 239
----------------
<project name="AntelopeApp" default="dist" basedir=".">
    <description>
       This build file creates Antelope as an Application.
    </description>
    
    <!-- read build.props to override properties set below -->
    <property file="build.props"/>

    <!-- version number, override in build.props if necessary -->
    <property name="build.num" value="2.88.2"/>
        
    
    <!-- shouldn't need to override the following properties -->
    
    <!-- source code directory, this is where the .java files live -->
    <property name="src.dir" location="src" />
    
    <!-- build directory, all files contained in the src directory are copied
    to this directory for processing (tag substitution, mostly) -->
    <property name="prep.dir" location="prep"/>

    <!-- configuration directory, this is where the configuration files for the
    plugin are placed for pre-processing prior to getting jarred. -->
    <property name="config.dir" location="${prep.dir}/config" />

    <!-- documentation directory, this is where the plugin documentation
    files live. Files in this directory will be distributed with the plugin -->
    <property name="doc.dir" location="${prep.dir}/docs" />

    <!-- the directory for the compiled classes. Files in this directory will be
    included in the finished jar file. -->
    <property name="classes.dir" location="classes" />
    
    <!-- where to put the finished distribution file -->
    <property name="dist.dir" location="dist"/>
    

    
   <!-- ====================​====================​====================​============
      Target: set classpath
   ====================​====================​====================​============= -->
   <target name="setClasspath">
      <path id="classpathref">
         <pathelement location="${classes.dir}" />
      </path>
   </target>

   <!-- ====================​====================​====================​============
      Target: clean
      deletes all files from the build directory
   ====================​====================​====================​============= -->
    <target name="clean" description="Delete all files from the classes directory.">
        <delete>
            <fileset dir="${classes.dir}" includes="**" />
            <fileset dir="${prep.dir}">
               <include name="**/*"/>
               <exclude name="docs/**/*"/>
            </fileset>
        </delete>
    </target>
    
   <!-- ====================​====================​====================​============
      Target: compile
   ====================​====================​====================​============= -->
    <target name="compile"
            description="Compile"
            depends="init,setClasspath">
        <javac deprecation="on"
               debug="on"
               nowarn="on"
               destdir="${classes.dir}"
               srcdir="${src.dir}">
            <classpath refid="classpathref" />
            <exclude name="testcases/**/*"/>
            <exclude name="**/plugin/**/*"/>
        </javac>
    </target>
    
   <!-- ====================​====================​====================​============
      Target: dist
      this target does several things:
      first, it creates a jar file in the prep directory. This is a finished
      jar file suitable for dropping into jEdit.
      second, it copies the jar file to $install.dir
      third, it zips the jar file and installation docs into $dist.dir
   ====================​====================​====================​============= -->
    <target name="dist"
            description="Compiles, jars, puts the jar in the jEdit jars directory."
            depends="init,clean,​compile,copy_resourc​es,prep_files">
        
        <!-- make the jar file, put it in $prep.dir -->
        <tstamp/>
        <jar jarfile="${prep.dir​}/${ant.project.nam​e}_${build.num}.jar​">
            <manifest>
                <attribute name="AppName" value="${ant.project.name}" />
                <attribute name="AppVersion" value="${build.num}" />
                <attribute name="Author" value="Dale Anson" />
                <attribute name="Created-By" value="${user.name}"/>
                <attribute name="Created-On" value="${TODAY}"/>
            </manifest>

            <!-- include everything in the build directory -->
            <fileset dir="${classes.dir}">
                <include name="**/*" />
                <exclude name="**/testcases/**/*"/>
            </fileset>

            <!-- include everything in the config directory -->
            <fileset dir="${config.dir}">
                <include name="**/*" />
            </fileset>

            <!-- include everything in the doc directory -->
            <fileset dir="${doc.dir}">
                <include name="**/*" />
            </fileset>
        </jar>
        
        <!-- zip the jar and installation instructions and put the zip file in
        the $dist directory -->
        <zip destfile="${dist.di​r}/${ant.project.na​me}_${build.num}.zi​p">
           <zipfileset prefix="${ant.proje​ct.name}_${build.nu​m}" dir="${prep.dir}">
              <include name="${ant.project​.name}_${build.num}​.jar"/>
           </zipfileset>
           <zipfileset prefix="${ant.proje​ct.name}_${build.nu​m}" dir="${prep.dir}/docs">
              <include name="license.txt"/>
              <include name="readme.txt"/>
              <include name="install.txt"/>
              <include name="ChangeLog.txt"/>
           </zipfileset>
           <zipfileset prefix="${ant.proje​ct.name}_${build.nu​m}" dir="${basedir}">
              <include name="run.xml"/>
           </zipfileset>
        </zip>
        
    </target>
    
   <!-- ====================​====================​====================​============
      Target: run
      Runs Antelope as a stand-alone application.
   ====================​====================​====================​============= -->
   <target name="run"
           description="Runs Antelope as a standalone app."
           depends="setClasspath, compile">
      <java classname="ise.antel​ope.app.Antelope" fork="true">
         <classpath refid="classpathref"/>
      </java>
   </target>
   
   <!-- ====================​====================​====================​============
      Target: docs-xalan
      Generate docs from docbook format xml files with Xalan. This uses the
      files in ${src.dir}/docs and puts the finished files in ${prep.dir}/docs.
      The files are NOT ready for distribution until after prep_files is ran.
   ====================​====================​====================​============= -->
    <target name="docs-xalan"
            description="Generate user documentation in hmtl format with xalan"
            depends="init,setCla​sspath,prep_files"​>

        <delete>
            <fileset dir="${doc.dir}" includes="manual/**/*" />
        </delete>

        <copy todir="${doc.dir}/manual">
            <fileset dir="${src.dir}/docs/manual" includes="**/*.gif" />
            <fileset dir="${src.dir}/docs/manual" includes="**/*.css" />
        </copy>
        
        <style basedir="${src.dir}​/docs/manual"
               style="${src.dir}/d​ocs/users-guide.xsl"​
               destdir="${doc.dir}/manual"
               includes="userguide.xml">
           <param name="html.stylesheet" expression="./style.css"/>
        </style>
    </target>
    
   <!-- ====================​====================​====================​============
      Target: copy_resources
   ====================​====================​====================​============= -->
    <target name="copy_resources">
        <copy todir="${classes.di​r}/images">
            <fileset dir="${src.dir}/images" includes="**/*" />
        </copy>
        <copy todir="${classes.di​r}/ise/antelope/task​s">
            <fileset dir="${src.dir}/ise​/antelope/tasks" includes="antelope.t​askdefs"/>
            <fileset dir="${src.dir}/ise​/antelope/tasks" includes="antlib.xml"/>
        </copy>
    </target>
    
   <!-- ====================​====================​====================​============
      Target: prep_files
      prepares certain files for distribution by doing string replacement.
      Assumes that the configuration files and documentation files are ready.
   ====================​====================​====================​============= -->
    <target name="prep_files"
            description="Prepare files for distribution.">
        <echo>preparing files ${config.dir} ${build.num}</echo>
        <!-- clean out the config directory -->
        <delete>
            <fileset dir="${config.dir}" includes="**/*"/>
        </delete>

        <!-- copy the src files to deployment directory -->
        <copy todir="${prep.dir}" overwrite="yes">
            <fileset dir="${src.dir}">
               <include name="config/**/*"/>
               <include name="docs/*.txt"/>
               <include name="docs/about.html"/>
            </fileset>
        </copy>


        <!-- insert the build number into the documentation and configuration
        files -->
        <replace dir="${prep.dir}" token="@@build.num@@"
            value="${build.num}" />
        <tstamp/>
        <replace dir="${prep.dir}" token="@@tstamp@@"
            value="${TODAY}" />
            
    </target>
   
   <!-- ====================​====================​====================​============
      Target: init
      this target creates the directories needed for this project and
      only needs to be done once.
   ====================​====================​====================​============= -->
    <target name="init"
            description="Create directory structure."
            unless="init.done">
        <mkdir dir="${src.dir}" />
        <mkdir dir="${classes.dir}" />
        <mkdir dir="${prep.dir}"/>
        <mkdir dir="${doc.dir}" />
        <mkdir dir="${config.dir}" />
        <mkdir dir="${dist.dir}"/>
        <property name="init.done" value="true"/>
    </target>
</project>

File [added]: build-source.xml
Url: http://antelope.tigr​is.org/source/browse​/antelope/build-sour​ce.xml?rev=1.1&c​ontent-type=text/vnd​.viewcvs-markup
Added lines: 66
---------------
<project name="AntelopeSrc" default="dist" basedir=".">
    <description>
       This build file packages the Antelope source code for distribution.
    </description>
    
    <!-- read build.props to override properties set below -->
    <property file="build.props"/>

    <!-- version number, override in build.props if necessary -->
    <property name="build.num" value="2.88.2"/>
        
    
    <!-- shouldn't need to override the following properties -->
    
    <!-- source code directory, this is where the .java files live -->
    <property name="src.dir" location="src" />
    
    <!-- build directory, all files contained in the src directory are copied
    to this directory for processing (tag substitution, mostly) -->
    <property name="prep.dir" location="prep"/>

    <!-- configuration directory, this is where the configuration files for the
    plugin are placed for pre-processing prior to getting jarred. -->
    <property name="config.dir" location="${prep.dir}/config" />

    <!-- documentation directory, this is where the plugin documentation
    files live. Files in this directory will be distributed with the plugin -->
    <property name="doc.dir" location="${prep.dir}/docs" />

    <!-- the directory for the compiled classes. Files in this directory will be
    included in the finished jar file. -->
    <property name="classes.dir" location="classes" />
    
    <!-- where to put the finished distribution file -->
    <property name="dist.dir" location="dist"/>
    

   <!-- ====================​====================​====================​============
      Target: dist
   ====================​====================​====================​============= -->
    <target name="dist"
            description="Creates a source distribution zip file.">
        
        <!-- zip the source and documentation and put the zip file in
        the $dist directory -->
        <zip destfile="${dist.di​r}/${ant.project.na​me}_${build.num}.zi​p">
           <zipfileset prefix="${ant.proje​ct.name}_${build.nu​m}" dir="${basedir}">
              <include name="src/**/*"/>
           </zipfileset>
           <zipfileset prefix="${ant.proje​ct.name}_${build.nu​m}" dir="${prep.dir}">
              <include name="docs/manual/**/*"/>
           </zipfileset>
           <zipfileset prefix="${ant.proje​ct.name}_${build.nu​m}" dir="${basedir}">
              <include name="build.xml"/>
              <include name="build-app.xml"/>
              <include name="build-plugin.xml"/>
              <include name="build-tasks.xml"/>
              <include name="build-source.xml"/>
              <include name="build.props.example"/>
              <include name="run.xml"/>
           </zipfileset>
        </zip>
        
    </target>
    
</project>

File [added]: build-tasks.xml
Url: http://antelope.tigr​is.org/source/browse​/antelope/build-task​s.xml?rev=1.1&co​ntent-type=text/vnd.​viewcvs-markup
Added lines: 240
----------------

<project name="AntelopeTasks" default="dist" basedir=".">
   <description>
       This build file creates a zip file for distributing the Antelope tasks.
       Main targets:
         dist - creates a complete zip file for distribution
         jar - creates a jar file for the tasks
         
       Zip file contents:
         /build.xml
         /docs
         /AntelopeTasks_X.X.X.jar
         /tasks_readme.txt
       
    </description>
    
    <!-- read build.props to override properties set below -->
   <property file="build.props"/>

    <!-- version number, override in build.props if necessary -->
   <property name="build.num" value="2.88.2"/>
        
    
    <!-- shouldn't need to override the following properties -->
    
    <!-- source code directory, this is where the .java files live -->
   <property name="src.dir" location="src" />
    
    <!-- build directory, all files contained in the src directory are copied
    to this directory for processing (tag substitution, mostly) -->
   <property name="prep.dir" location="prep"/>

    <!-- configuration directory, this is where the configuration files for the
    plugin are placed for pre-processing prior to getting jarred. -->
   <property name="config.dir" location="${prep.dir}/config" />

    <!-- documentation directory, this is where the plugin documentation
    files live. Files in this directory will be distributed with the plugin -->
   <property name="doc.dir" location="${prep.dir}/docs" />

    <!-- the directory for the compiled classes. Files in this directory will be
    included in the finished jar file. -->
   <property name="classes.dir" location="classes" />
    
    <!-- where to put the finished distribution file -->
   <property name="dist.dir" location="dist"/>
    

    
   <!-- ====================​====================​====================​============
      Target: set classpath
   ====================​====================​====================​============= -->
   <target name="setClasspath">
      <path id="classpathref">
         <pathelement location="${classes.dir}" />
         <pathelement path="${java.class.path}"/>
      </path>
   </target>

   <!-- ====================​====================​====================​============
      Target: clean
      deletes all files from the build directory
   ====================​====================​====================​============= -->
   <target name="clean" description="Delete all files from the classes directory.">
      <delete>
         <fileset dir="${classes.dir}" includes="**" />
         <fileset dir="${prep.dir}">
            <include name="**/*"/>
            <exclude name="docs/**/*"/>
         </fileset>
      </delete>
   </target>
    
   <!-- ====================​====================​====================​============
      Target: compile
   ====================​====================​====================​============= -->
   <target name="compile"
         description="Compile"
         depends="init,setClasspath">
      <javac deprecation="on"
            debug="on"
            nowarn="on"
            destdir="${classes.dir}"
            srcdir="${src.dir}">
         <classpath refid="classpathref" />
         <include name="**/tasks/**/*"/>
         <include name="**/library/**/*"/>
      </javac>
   </target>
    
   <!-- ====================​====================​====================​============
      Target: dist
      this target does several things:
      first, it creates a jar file in the prep directory. This is a finished
      jar file suitable for dropping into jEdit.
      second, it copies the jar file to $install.dir
      third, it zips the jar file and installation docs into $dist.dir
   ====================​====================​====================​============= -->
   <target name="dist"
         description="Compiles, jars, puts the jar in the jEdit jars directory."
         depends="jar">
        
        <!-- zip the jar and installation instructions and put the zip file in
        the $dist directory -->
      <zip destfile="${dist.di​r}/${ant.project.na​me}_${build.num}.zi​p">
         <zipfileset prefix="${ant.proje​ct.name}_${build.nu​m}" dir="${prep.dir}">
            <include name="${ant.project​.name}_${build.num}​.jar"/>
            <include name="docs/manual/bk03*"/>
            <include name="docs/manual/*.css"/>
         </zipfileset>
         <zipfileset prefix="${ant.proje​ct.name}_${build.nu​m}" dir="${prep.dir}/docs">
            <include name="license.txt"/>
            <include name="install_tasks.txt"/>
            <include name="ChangeLog.txt"/>
         </zipfileset>
         <zipfileset prefix="${ant.proje​ct.name}_${build.nu​m}/src" dir="${src.dir}">
            <include name="**/tasks/**/*"/>
            <include name="**/testcases/**/*"/>
         </zipfileset>
      </zip>

   </target>

   <!-- ====================​====================​====================​============
      Target: jar
      this target creates a jar file in the prep directory. This is a finished
      jar file suitable for dropping into Ant's lib directory.
   ====================​====================​====================​============= -->
   <target name="jar"
         description="Create a jar file of the task classes."
         depends="init,clean,​compile,copy_resourc​es,prep_files">
      <!-- make the jar file, put it in $prep.dir -->
      <tstamp/>
      <jar jarfile="${prep.dir​}/${ant.project.nam​e}_${build.num}.jar​">
         <manifest>
            <attribute name="AppName" value="${ant.project.name}" />
            <attribute name="AppVersion" value="${build.num}" />
            <attribute name="Author" value="Dale Anson" />
            <attribute name="Created-By" value="${user.name}"/>
            <attribute name="Created-On" value="${TODAY}"/>
         </manifest>

         <!-- include task and library classes -->
         <fileset dir="${classes.dir}">
            <include name="**/tasks/**/*" />
            <include name="**/library/**/*"/>
         </fileset>
      </jar>
   </target>
    
   <!-- ====================​====================​====================​============
      Target: docs-xalan
      Generate docs from docbook format xml files with Xalan. This uses the
      files in ${src.dir}/docs and puts the finished files in ${prep.dir}/docs.
      The files are NOT ready for distribution until after prep_files is ran.
   ====================​====================​====================​============= -->
   <target name="docs-xalan"
         description="Generate user documentation in hmtl format with xalan"
         depends="init,setCla​sspath,prep_files"​>

      <delete>
         <fileset dir="${doc.dir}" includes="manual/**/*" />
      </delete>

      <copy todir="${doc.dir}/manual">
         <fileset dir="${src.dir}/docs/manual" includes="**/*.gif" />
         <fileset dir="${src.dir}/docs/manual" includes="**/*.css" />
      </copy>

      <style basedir="${src.dir}​/docs/manual"
            style="${src.dir}/d​ocs/users-guide.xsl"​
            destdir="${doc.dir}/manual"
            includes="userguide.xml">
         <param name="html.stylesheet" expression="./style.css"/>
      </style>
   </target>
    
   <!-- ====================​====================​====================​============
      Target: copy_resources
   ====================​====================​====================​============= -->
   <target name="copy_resources">
      <copy todir="${classes.di​r}/images">
         <fileset dir="${src.dir}/images" includes="**/*" />
      </copy>
      <copy todir="${classes.di​r}/ise/antelope/task​s">
         <fileset dir="${src.dir}/ise​/antelope/tasks" includes="antelope.t​askdefs"/>
         <fileset dir="${src.dir}/ise​/antelope/tasks" includes="antlib.xml"/>
      </copy>
   </target>
    
   <!-- ====================​====================​====================​============
      Target: prep_files
      prepares certain files for distribution by doing string replacement.
      Assumes that the configuration files and documentation files are ready.
   ====================​====================​====================​============= -->
   <target name="prep_files"
         description="Prepare files for distribution.">
      <echo>preparing files ${config.dir} ${build.num}</echo>
        <!-- clean out the config directory -->
      <delete>
         <fileset dir="${config.dir}" includes="**/*"/>
      </delete>

        <!-- copy the src files to deployment directory -->
      <copy todir="${prep.dir}" overwrite="yes">
         <fileset dir="${src.dir}">
            <include name="config/**/*"/>
            <include name="docs/*.txt"/>
            <include name="docs/about.html"/>
         </fileset>
      </copy>


        <!-- insert the build number into the documentation and configuration
        files -->
      <replace dir="${prep.dir}" token="@@build.num@@"
            value="${build.num}" />
      <tstamp/>
      <replace dir="${prep.dir}" token="@@tstamp@@"
            value="${TODAY}" />

   </target>
   
   <!-- ====================​====================​====================​============
      Target: init
      this target creates the directories needed for this project and
      only needs to be done once.
   ====================​====================​====================​============= -->
   <target name="init"
         description="Create directory structure."
         unless="init.done">
      <mkdir dir="${src.dir}" />
      <mkdir dir="${classes.dir}" />
      <mkdir dir="${prep.dir}"/>
      <mkdir dir="${doc.dir}" />
      <mkdir dir="${config.dir}" />
      <mkdir dir="${dist.dir}"/>
      <property name="init.done" value="true"/>
   </target>
</project>

File [added]: build.xml
Url: http://antelope.tigr​is.org/source/browse​/antelope/build.xml?​rev=1.1&content-​type=text/vnd.viewcv​s-markup
Added lines: 146
----------------
<project name="Antelope Master Build" basedir="." default="plugin">
   <description>
      Master build file for Antelope, calls other build files to do the actual
      work:
      build-plugin.xml, target name is "plugin"
      build-app.xml, target name is "app"
      build-source.xml, target name is "source"
      build-tasks.xml, target name is "tasks"
      
      The default target builds Antelope as a jEdit plugin. Call target "all"
      to build all distribution files, call target "transform-docs" to build
      the documentation prior to running any of the above.
   </description>
   
   <!-- ====================​====================​====================​============
      Property definition
   ====================​====================​====================​============= -->
   <!-- read build.props to override default property values set below -->
   <property file="build.props"/>
    
   <!-- source code directory, this is where the .java files live -->
   <property name="src.dir" location="src" />
   
   <!-- build directory, configuration and documentation files contained in
   the src directory are copied to this directory for pre-processing (tag
   substitution, mostly) -->
   <property name="prep.dir" location="prep"/>
   
   <!-- configuration directory, configuration files from the src directory are
   copied here for pre-processing -->
   <property name="config.dir" location="${prep.dir}/config" />
   
   <!-- documentation directory, documentation files from the src directory are
   copied here for pre-processing -->
   <property name="doc.dir" location="${prep.dir}/docs" />
   
   
   <!-- directory for the compiled classes -->
   <property name="classes.dir" location="classes" />
    
    
   <!-- ====================​====================​====================​============
      Target: all
      this target creates a complete set of distribution files
   ====================​====================​====================​============= -->
   <target name="all"
           description="Build complete set of distribution files."
           depends="plugin,app,​source,tasks"/>
      
   <!-- ====================​====================​====================​============
      Target: plugin
      this target creates the distribution file for the jEdit plugin
   ====================​====================​====================​============= -->
   <target name="plugin"
           description="Build distribution file for jEdit plugin">
      <ant antfile="build-plugin.xml" inheritAll="false"/>
   </target>
   
   <!-- ====================​====================​====================​============
      Target: app
      this target creates the distribution file for the Antelope application
   ====================​====================​====================​============= -->
   <target name="app"
           description="Build distribution file for Antelope application">
      <ant antfile="build-app.xml"/>
   </target>
   
   <!-- ====================​====================​====================​============
      Target: source
      this target creates the distribution file for the Antelope source code
   ====================​====================​====================​============= -->
   <target name="source"
           description="Build distribution file for Antelope source.">
      <ant antfile="build-source.xml"/>
   </target>
   
   <!-- ====================​====================​====================​============
      Target: tasks
      this target creates the distribution file for the Antelope tasks
   ====================​====================​====================​============= -->
   <target name="tasks"
           description="Build distribution file for Antelope tasks.">
      <ant antfile="build-tasks.xml"/>
   </target>
   
   <!-- ====================​====================​====================​============
      Target: transform-docs
      converts the xml docbook formatted documentation into html and puts it
      into the prep directory.
   ====================​====================​====================​============= -->
   <target name="transform-docs"
           description="Create html documentation from xml source."
           depends="init"
           unless="docs.done">
      
        <!-- first, remove any previous documentation files from the prep
        directory -->
        <delete>
            <fileset dir="${doc.dir}" includes="manual/**/*" />
        </delete>

        <!-- copy the images and style sheets to the prep directory -->
        <copy todir="${doc.dir}/manual">
            <fileset dir="${src.dir}/docs/manual" includes="**/*.gif" />
            <fileset dir="${src.dir}/docs/manual" includes="**/*.css" />
        </copy>
        
        <!-- transform the xml docbook formatted documentation into html and
        place it in the prep directory -->
        <style basedir="${src.dir}​/docs/manual"
               style="${src.dir}/d​ocs/users-guide.xsl"​
               destdir="${doc.dir}/manual"
               includes="userguide.xml">
           <param name="html.stylesheet" expression="./style.css"/>
        </style>
        <property name="docs.done" value="true"/>
   </target>
   
   <!-- ====================​====================​====================​============
      Target: run
      this target runs Antelope as a stand-alone application using the compiled
      classes
   ====================​====================​====================​============= -->
   <target name="run"
           description="Run Antelope">
      <ant antfile="build-app.xml" target="run"/>
   </target>
   
   <!-- ====================​====================​====================​============
      Target: init
      this target creates the directories needed for this project and
      only needs to be done once.
   ====================​====================​====================​============= -->
   <target name="init"
           description="Create directory structure."
           unless="init.done">
     <mkdir dir="${src.dir}" />
     <mkdir dir="${classes.dir}" />
     <mkdir dir="${prep.dir}"/>
     <mkdir dir="${doc.dir}" />
     <mkdir dir="${config.dir}" />
     <mkdir dir="${dist.dir}"/>
     <property name="init.done" value="true"/>
   </target>

</project>

File [added]: run.xml
Url: http://antelope.tigr​is.org/source/browse​/antelope/run.xml?re​v=1.1&content-ty​pe=text/vnd.viewcvs-​markup
Added lines: 52
---------------
<project name="run" default="run" basedir=".">
   <description>
      Instead of separate start scripts for starting Antelope for Windows,
      Unix, Mac, or whatever, this single Ant build file starts Antelope on
      all platforms that run Ant.
      
      Obviously, Ant must already be installed, but Antelope is pretty much
      useless without Ant, so this doesn't seem like an unreasonable
      requirement.
      
      To use this file, you need to have a working installation of Ant.
      Antelope has been tested extensively with Ant version 1.5 and 1.6.
      
      To run Antelope, just do "ant -f run.xml". You shouldn't need to adjust
      the classpath below.
   </description>

   <!-- ====================​====================​====================​============
      Target: run
      Runs Antelope as a stand-alone application.
   ====================​====================​====================​============= -->
   <target name="run"
           description="Runs Antelope as a standalone app."
           depends="-setClasspath">
      <java classname="ise.antel​ope.app.Antelope" fork="true">
         <classpath refid="antelopeCP"/>
      </java>
   </target>

   <!-- ====================​====================​====================​============
      Subtarget: -setClasspath
      Sets the classpath for Antelope by adding appropriate jars. Include
      jdk tools.jar, Ant's classpath, and Antelope's own jars.
   ====================​====================​====================​============= -->
   <target name="-setClasspath">
      <available property="haveToolsJar"
                 value="${java.home}​/lib/tools.jar"
                 file="${java.home}/​lib/tools.jar"/>
      <available property="haveToolsJar"
                 value="${java.home}​/../lib/tools.jar"
                 file="${java.home}/​../lib/tools.jar"/​>
      <property name="tools.jar" location="${haveToolsJar}"/>
      <path id="antelopeCP">
         <fileset dir="${basedir}">
            <include name="*.jar"/>
         </fileset>
         <pathelement path="${java.class.path}"/>
         <pathelement location="${tools.jar}"/>
      </path>
   </target>
   
</project>




--------------------​--------------------​--------------------​---------
To unsubscribe, e-mail: cvs-unsubscribe@ante​lope.tigris.org
For additional commands, e-mail: cvs-help at antelope dot tigris dot org

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

CVS update: /antelope/ danson Dale Anson 2004-02-15 18:47:23 PST
Messages per page: