| Update of /cvsroot/csvtosql/csvtosql_jdk50
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15772
Added Files:
	build.xml 
Log Message:
no message
--- NEW FILE: build.xml ---
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="all" name="csvtosql">
    
    <!-- LICENSE -->
    <target name="welcome">
        <echo>
            Copyright (C) 2004  Davide Consonni (dco...@en...)
            This program is free software; you can redistribute it and/or modify
            it under the terms of the GNU General Public License as published by
            the Free Software Foundation; either version 2 of the License, or
            (at your option) any later version.
            This program is distributed in the hope that it will be useful,
            but WITHOUT ANY WARRANTY; without even the implied warranty of
            MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
            GNU General Public License for more details.
            You should have received a copy of the GNU General Public License
            along with this program; if not, write to the Free Software
            Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA        
        </echo>
    </target>
    
    <!-- INIT -->
    <target depends="welcome" name="init">    
        <property location="src" name="src.dir"/>
        <property location="classes" name="classes.dir"/>
        <property location="." name="src.dir"/>
        <property location="doc/api" name="javadoc.dir"/>
        <property location="bin/csvtosql.jar" name="jar"/>      
        <property value="${src.dir}/manifest.mf" name="manifest"/>
    </target>
    
    <!-- COMPILE -->
    <target depends="init" name="compile">
        <mkdir dir="${classes.dir}"/>
        <javac debug="true" deprecation="true" destdir="${classes.dir}" srcdir="${src.dir}">
            <classpath>
                <pathelement path="${classpath}"/>
                    <fileset dir="lib">
                        <include name="**/*.jar"/>
                    </fileset>
            </classpath>                      
        </javac>
    </target>
    <!-- MAKE JAR -->   
    <target depends="init,compile" name="jar">        
        <echo message="creating jar file .."/>    
        <jar basedir="${classes.dir}" compress="false" jarfile="${jar}" manifest="${manifest}" />
    </target>
    <!-- MAKE ALL -->
    <target depends="init,jar" description="Build everything." name="all"/>
    
    <!-- MAKE JAVADOC -->
    <target depends="init" description="Javadoc for my API." name="javadoc">
        <echo message="creating javadoc .."/>     
        <mkdir dir="${javadoc.dir}"/>
        <javadoc destdir="${javadoc.dir}" packagenames="*">
            <sourcepath>
                <pathelement location="${src.dir}"/>
            </sourcepath>
            <classpath>
                <pathelement path="${classpath}"/>
                    <fileset dir="lib">
                        <include name="**/*.jar"/>
                    </fileset>
            </classpath>              
        </javadoc>
    </target>
    <!-- CLEAN -->
    <target depends="init" description="Clean all build products." name="clean">
        <delete dir="${classes.dir}"/>
        <delete dir="${javadoc.dir}"/>
        <delete file="${jar}"/>
    </target>
    <target depends="clean,jar,javadoc" name="distrib">        
    </target>
    
</project>
 |