Source Code : Check Properties

Java Is Open Source Programming Language You Can Download From Java and Java Libraries From http://www.oracle.com. Click Here to download
We provide this code related to title for you to solve your developing problem easily. Libraries which is import in this program you can download from http://www.oracle.com. Click Here or search from google with Libraries Name you get jar file related it

Check Properties

<?xml version="1.0"?>
<project name="Template Buildfile" default="compile" basedir=".">
  <property name="dir.src" value="src"/>
  <property name="dir.build" value="build"/>
  <property environment="env"/>
  

  <target name="checkProperties">
    <fail unless="env.TOMCAT_HOME">TOMCAT_HOME must be set</fail>
    <fail unless="env.JUNIT_HOME">JUNIT_HOME must be set</fail>
    <fail unless="env.JBOSS_HOME">JBOSS_HOME must be set</fail>
  </target>

  <!-- Creates the output directories -->
  <target name="prepare" depends="checkProperties">
    <mkdir dir="${dir.build}"/>
  </target>

  <target name="clean"
          description="Remove all generated files.">
    <delete dir="${dir.build}"/>
  </target>

  <target name="compile" depends="prepare"
          description="Compile all source code.">
    <echo>Compile code...</echo>
  </target>

</project>

           
       

Thank with us