| <?xml version="1.0" encoding="UTF-8"?> | |
| <project name="Java Compile Test" basedir="." default="compile"> | |
| <target name="properties" if="eclipse.running"> | |
| <property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/> | |
| </target> | |
| <target name="compile" depends="properties,env"> | |
| <javac destdir="bin" failonerror="false" verbose="true" debug="on" includeAntRuntime="no"> | |
| <src path="src/"/> | |
| </javac> | |
| </target> | |
| <target name="clean"> | |
| <delete file="bin/main.class"/> | |
| </target> | |
| <target name="env"> | |
| <echo> | |
| System Properties | |
| ----------------- | |
| java.version: ${java.version} | |
| java.vendor: ${java.vendor} | |
| java.home: ${java.home} | |
| java.class.path: ${java.class.path} | |
| java.ext.dirs: ${java.ext.dirs} | |
| os.name: ${os.name} | |
| os.arch: ${os.arch} | |
| os.version: ${os.version} | |
| user.name: ${user.name} | |
| Ant Environment | |
| ---------------- | |
| basedir: ${basedir} | |
| ant.file: ${ant.file} | |
| ant.version: ${ant.version} | |
| ant.project.name: ${ant.project.name} | |
| ant.java.version: ${ant.java.version} | |
| build.compiler: ${build.compiler} | |
| </echo> | |
| </target> | |
| </project> |