Utilized Ant to do Windchill Deployment

11
Utilized Ant to do Windchill Deployment Albert Kuo 1

description

 

Transcript of Utilized Ant to do Windchill Deployment

Page 1: Utilized Ant to do Windchill Deployment

Utilized Ant to do Windchill Deployment

Albert Kuo

1

Page 2: Utilized Ant to do Windchill Deployment

Agenda

what is ant?

structure of ant

how does ant work?

How to utilize build.xml

Take eMemory for example

2

Page 3: Utilized Ant to do Windchill Deployment

What is ant

3

Page 4: Utilized Ant to do Windchill Deployment

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

What is Ant?

4

Page 5: Utilized Ant to do Windchill Deployment

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

Page 6: Utilized Ant to do Windchill Deployment

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

Page 7: Utilized Ant to do Windchill Deployment

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

Page 8: Utilized Ant to do Windchill Deployment

How to utilize build.xml

8

Page 9: Utilized Ant to do Windchill Deployment

take ememoy for example

9

Page 10: Utilized Ant to do Windchill Deployment

check the build files

Page 11: Utilized Ant to do Windchill Deployment

Q&A