The future is now. Read Hardware inputs from devices plugged into a computer, cross-platform!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
jinput2.10/build.xml

159 lines
7.8 KiB

<?xml version="1.0" encoding="UTF-8"?>
<!-- You may freely edit this file. See commented blocks below for -->
<!-- some examples of how to customize the build. -->
<!-- (If you delete it and reopen the project it will be recreated.) -->
<!-- By default, only the Clean and Build commands use this build script. -->
<!-- Commands such as Run, Debug, and Test only use this build script if -->
<!-- the Compile on Save feature is turned off for the project. -->
<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
<!-- in the project's Project Properties dialog box.-->
<project name="jInput" default="default" basedir=".">
<description>Builds, tests, and runs the project jInput.</description>
<import file="nbproject/build-impl.xml"/>
<!-- =================================================================== -->
<!-- post NB init -->
<!-- =================================================================== -->
<target name="-post-init">
<!-- general properties definition -->
<property name="archiveName" value="jinput"/>
<property name="src.dir" value="${src.core.dir}/.."/>
<property name="j2seapi" value="http://docs.oracle.com/javase/8/docs/api/"/>
<!-- To set with your location of Java 8 JDK -->
<property name="javadocDir" value="${jdk.home}/docs/api"/>
<property name="javadocEXE" value="/opt/java/17.0.2/bin/javadoc"/>
</target>
<!-- =================================================================== -->
<!-- Non NB targets -->
<!-- =================================================================== -->
<target description="fetch version" depends="-init-project" name="version">
<loadproperties srcFile="${src.core.dir}/net/java/games/input/jinput.properties">
<filterchain>
<linecontains>
<contains value="version"/>
</linecontains>
</filterchain>
</loadproperties>
</target>
<!-- =================================================================== -->
<!-- zip files -->
<!-- =================================================================== -->
<!-- zip javadocs -->
<target depends="version, -post-init"
description="create javadoc zip files" name="zipjavadoc" if="javadoc.exists">
<zip compress="true" defaultexcludes="true" zipfile="${dist.dir}/${archiveName}-docs-${version}.zip">
<fileset description="documentation" dir="${dist.javadoc.dir}">
<include name="**/*"/>
</fileset>
</zip>
</target>
<target depends="version, -post-init, zipjavadoc" description="create zip files" name="zip">
<!-- zip binary files for distribution -->
<zip compress="true" defaultexcludes="true"
zipfile="${dist.dir}/${archiveName}-bin-${version}.zip">
<fileset description="docs" dir=".">
<include name="README"/>
<include name="CHANGES"/>
</fileset>
<fileset description="binaries" dir="${dist.dir}">
<include name="jinput.jar"/>
</fileset>
<fileset description="native libs" dir=".">
<include name="natives/*.dll"/>
<include name="natives/*.so"/>
<include name="natives/*.jnilib"/>
</fileset>
</zip>
<!-- zip source files -->
<zip compress="true" defaultexcludes="yes" zipfile="${dist.dir}/${archiveName}-src-${version}.zip">
<fileset description="core source directory" dir="${src.dir}/..">
<include name="src/**/*.*"/>
<include name="src/manifest.mf"/>
</fileset>
<fileset description="binaries" dir="${dist.dir}">
<include name="jinput.jar"/>
</fileset>
<fileset description="project" dir="${dist.dir}/..">
<include name="nbproject/**/*.*"/>
</fileset>
<fileset description="native libs" dir=".">
<include name="natives/*.dll"/>
<include name="natives/*.so"/>
<include name="natives/*.jnilib"/>
</fileset>
<fileset description="misc" dir=".">
<include name="README"/>
<include name="CHANGES"/>
<include name="build.xml"/>
</fileset>
</zip>
<!-- zip test source files -->
<zip compress="true" defaultexcludes="true" zipfile="${dist.dir}/${archiveName}-tests-${version}.zip">
<fileset description="tests directory" dir="${test.src.dir}/..">
<include name="test/**/*.*"/>
</fileset>
</zip>
</target>
<!-- =================================================================== -->
<!-- NB overwrite targets : javadocs -->
<!-- =================================================================== -->
<target depends="-javadoc-core" name="-javadoc-build" />
<target depends="init, -init-project, -post-init" name="-javadoc-core">
<!-- Javadoc -->
<javadoc author="${javadoc.author}" charset="UTF-8" destdir="${dist.javadoc.dir}"
docencoding="UTF-8" encoding="${javadoc.encoding.used}" failonerror="true"
noindex="${javadoc.noindex}" nonavbar="${javadoc.nonavbar}"
notree="${javadoc.notree}" private="${javadoc.private}"
source="${javac.source}" splitindex="${javadoc.splitindex}"
overview="${src.dir}/overview.html"
use="${javadoc.use}" useexternalfile="true" version="${javadoc.version}"
windowtitle="jinput API" executable="${javadocEXE}" >
<link href="${j2seapi}" />
<!-- the Xdoclint argument avoid to get javadoc errors when the documentation format is not compliant for HTML 4, which was the case before
Java 8. It would also not be a good idea, because empty tags like br are very useful -->
<arg line="-Xdoclint:none"/>
<classpath>
<path path="${tools.dir}/junit-4.12.jar"/>
</classpath>
<fileset dir="${src.dir}">
<filename name="**/*.java"/>
<exclude name="samples/**/*.java"/>
</fileset>
</javadoc>
</target>
<!-- =================================================================== -->
<!-- NB overwrite targets : jar -->
<!-- =================================================================== -->
<target depends="init,compile,-pre-jar,-do-jar-without-manifest,-post-jar" description="Build JAR." name="jar"/>
<target name="-do-jar-without-manifest" depends="init,compile,-pre-pre-jar,-pre-jar" >
<!-- jar construction -->
<jar description="core APACHE jar binary file" compress="true"
jarfile="${dist.dir}/jinput.jar" manifest="${src.dir}/manifest.mf" >
<fileset defaultexcludes="yes" dir="${build.classes.dir}">
<include name="net/**/*.class"/>
<include name="net/**/*.properties"/>
<exclude name="samples/**/*.*"/>
</fileset>
</jar>
<jar description="core APACHE jar binary file" compress="true"
jarfile="${dist.dir}/jinput-with-sources.jar" manifest="${src.dir}/manifest.mf" >
<fileset defaultexcludes="yes" dir="${build.classes.dir}">
<include name="net/**/*.class"/>
<include name="net/**/*.properties"/>
<exclude name="samples/**/*.*"/>
</fileset>
<fileset dir="${src.dir}" includes="**/*.java"/>
</jar>
</target>
</project>