Utilized Ant to do
Windchill Deployment
       Albert Kuo




           1
Agenda

what is ant?
  structure of ant
  how does ant work?
How to utilize build.xml
  Take eMemory for example

                             2
What is ant



     3
What is Ant?

A cross-platform build tool

Based on industry standards (Java and XML)

Compile Java code automatically

Open Source (development coordinated by the
Apache Jakarta project)

Generate jar, ear, war, zip files automatically

                      4
Structure of Ant

Project : a top level collection of targets

Property: an Ant variable

 Target: a collection of tasks executed to
achieve a particular purpose (a goal)

Task: a unit of Ant execution (a step)


                      5
How Does Ant Work?

Each Project will have a build file (build.xml)

Each build file will contain one or more Targets

The Target to be executed:

 Is either explicitly selected on the command
 line

 Or a project default Target is executed

                     6
How Does Ant Work?


Each Target is executed only once

Each Target will contain one or more Tasks

Some Tasks are executed conditionally

Tasks are implemented as Java classes


                     7
How to utilize
  build.xml



      8
take ememoy for example




           9
check the build files
Q&A

Utilized Ant to do Windchill Deployment

  • 1.
    Utilized Ant todo Windchill Deployment Albert Kuo 1
  • 2.
    Agenda what is ant? structure of ant how does ant work? How to utilize build.xml Take eMemory for example 2
  • 3.
  • 4.
    What is Ant? Across-platform build tool Based on industry standards (Java and XML) Compile Java code automatically Open Source (development coordinated by the Apache Jakarta project) Generate jar, ear, war, zip files automatically 4
  • 5.
    Structure of Ant Project: a top level collection of targets Property: an Ant variable Target: a collection of tasks executed to achieve a particular purpose (a goal) Task: a unit of Ant execution (a step) 5
  • 6.
    How Does AntWork? Each Project will have a build file (build.xml) Each build file will contain one or more Targets The Target to be executed: Is either explicitly selected on the command line Or a project default Target is executed 6
  • 7.
    How Does AntWork? Each Target is executed only once Each Target will contain one or more Tasks Some Tasks are executed conditionally Tasks are implemented as Java classes 7
  • 8.
    How to utilize build.xml 8
  • 9.
    take ememoy forexample 9
  • 10.
  • 11.