Sponsered Links
Categories
Sponsered Links

Ant Properties Example

 

This is a simple Ant Properties Example.

build.xml

<?xml version="1.0"?>
<project name="AntProperties" default="echo" basedir=".">
  <target name="echo">
  <echo message="The operating system is: ${os.name}"/> 
  <echo message="The home path is: ${basedir}"/> 
  <echo message="The file name is: ${ant.file}"/> 
  <echo message="The Project name is: ${ant.project.name}"/>
  <echo message="The Ant home directory is: ${ant.home}"/>
  <echo message="The Ant version is: ${ant.version}"/> 
  <echo message="The Java version is: ${ant.java.version}"/> 
  <echo message="The Java home directory is: ${java.home}"/>
  <echo message="The User home directory is: ${user.home}"/>
  <echo message="The User name is: ${user.name}"/>
  </target>
</project>

 

default.properties

# default properties
value.compile.debug     = false
value.compile.fork      = true
value.compile.optimize  = true
name.compile.compiler   = javac1.4
name.project-vob        = \\RatlBankProjects
name.project            = RatlBankModel
name.build.admin        = ccadm
name.build.branch       = RatlBankModel_Int

 

build.properties

# build properties
value.compile.debug      = true
value.compile.optimize   = off
name.build.admin         = fred
name.build.branch        = fred_RatlBankModel_Dev

 

library.properties

# Xalan - http://xml.apache.org/xalan-j/
xalan.version = 2.6.0
xalan.dir = ${dir.vendor.libs}
xalan.jar = ${dir.vendor.libs}/xalan-j-${xalan.version}.jar

# log4j - http://logging.apache.org/log4/
log4j.version = 1.2.9
log4j.dir = ${dir.vendor.libs}
log4j.jar = ${dir.vendor.libs}/log4j-${log4j.version}.jar

 
 
Sponsered Links
Latest Updates
 
All Content of this site is for learning only. We do not warrant the correctness of its content. The risk from using it lies entirely with the user. While using this site, you agree to have read and accepted our terms of use and privacy policy.
Copyright © 2009 JSPSERVLETTUTORIAL.INFO All Right Reserved