Skip to main content

Source code file content

Revision: 226 (of 226)

Starting 'hendriks_write_support' branch
» Project Revision History

» Checkout URL

core / build.xml

Size: 4603 bytes, 1 line
<?xml version="1.0" encoding="UTF-8"?>
<project name="JavaFX_Data" default="default" basedir=".">
    <description>Builds, tests, and runs the project DataFX.</description>
    
    <import file="nbproject/build-impl.xml"/>
    
    <property name="zip.file.all" value="datafx-all.zip"/>
    <property name="zip.file.src" value="datafx-src.zip"/>
    
    <property name="build.dir" value="build"/>
    <property name="dist.dir" value="dist"/>
    <property name="dist.javadoc.dir" value="dist/javadoc"/>
    
    <property name="src.dir" value="src"/>
    <property name="datafx.jar" value="datafx.jar"/>
    
    <property name="src-redfx.dir" value="src-redfx"/>
    <property name="datafx-redfx.jar" value="datafx-redfx.jar"/>
    
    <target name="default">
        <!-- Bring in properties -->
        <property file="nbproject/project.properties"/>
        
        <!-- clean up -->
        <delete dir="${build.dir}" failonerror="false" />
        <mkdir dir="${build.dir}" />
        <delete dir="${dist.dir}" failonerror="false" />
        <mkdir dir="${dist.dir}" />
        
        <!-- compile src directory, and create a jar -->
        <javac srcdir="${src.dir}"
            destdir="${build.dir}"
            classpath="${file.reference.jfxrt.jar}"
            debug="false"
            source="1.6"/>
        <jar manifest="MANIFEST.MF" destfile="${dist.dir}/${datafx.jar}">
            <fileset dir="${build.dir}">
                <exclude name="**/samples/**"/>
                <exclude name="**/**.html"/>
            </fileset>
            <fileset dir="${src.dir}">
                <include name="**/*.css"/>
            </fileset>
        </jar>
        
        <!-- clean up build directory -->
        <delete dir="${build.dir}" failonerror="false" />
        <mkdir dir="${build.dir}" />
        
        <!-- compile src-redfx directory, and create a jar -->
        <javac srcdir="${src-redfx.dir}"
            destdir="${build.dir}"
            classpath="${file.reference.jfxrt.jar}:
                ${file.reference.redfx-client-java-1.0.jar}:
                ${file.reference.redfx-common-1.0.jar}:
                ${dist.dir}/${datafx.jar}"
            debug="false"
            source="1.6"/>
        <jar destfile="${dist.dir}/${datafx-redfx.jar}">
            <fileset dir="${build.dir}">
                <exclude name="**/samples/**"/>
                <exclude name="**/**.html"/>
            </fileset>
        </jar>
        
        <!-- clean up -->
        <delete dir="${build.dir}" failonerror="false" />
        <mkdir dir="${build.dir}" />
        
        <!-- Generate javadoc -->
        <antcall target="javadoc" />
        
        <!-- 
          Create a zip file containing: 
            * The Jar file containing all classes
            * All library jars that we depend on
            * The samples directory
        -->
        <zip destfile="${dist.dir}/${zip.file.all}">
            <fileset dir="${dist.dir}">
                <include name="${datafx.jar}"/>
                <include name="${datafx-redfx.jar}"/>
                <include name="javadoc/**"/>
            </fileset>
            <fileset dir=".">
                <include name="lib/**.jar"/>
                <include name="samples/**"/>
                <include name="license.txt"/>
            </fileset>
        </zip>
    </target>
 
    <target name="javadoc">
        <javadoc
            nodeprecated="true"
            linksource="false"
            packagenames="org.javafxdata.*"
            author="false"
            defaultexcludes="yes"
            destdir="${dist.javadoc.dir}"
            version="true"
            use="true"
            overview="${src.dir}/overview.html"
            windowtitle="DataFX API Documentation">
                <sourcepath>
                    <pathelement location="${src.dir}" /> 
                    <pathelement location="${src-redfx.dir}" />
                </sourcepath>
              
                <classpath>
                    <pathelement location="${file.reference.jfxrt.jar}" />
                    <pathelement location="${file.reference.redfx-client-java-1.0.jar}" />
                    <pathelement location="${file.reference.redfx-common-1.0.jar}" />
                </classpath>
            
                <link href="http://download.oracle.com/javafx/2.0/api/"/>
                <link href="http://download.oracle.com/javase/6/docs/api/"/>
        </javadoc>
    </target>
</project>
 
 
Close
loading
Please Confirm
Close