cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Running Ant Targets in Eclipse - Debug from Console

Highlighted
Newbie

Running Ant Targets in Eclipse - Debug from Console

This is neat way of setting up eclipse to run your build targets. This makes it really easy to quickly deploy your changes to Windchill. The advatange here is:

  • No need for a Windchill Shell in your Task Bar.
  • Easy access to ant targets avaible to your project.
  • A standard out in the Eclipse Console with better highlighting.
  • A standard out in the Eclipse Console which does not truncate.


1). Open Eclipse>Windows>Preferences.

     preferneces.png


a). Select Ant>Runtime.

b). Select 'Ant Home Entries' and hit the button 'Ant Home...'.

c). In the browse dialog navigate to your Windchill home folder and select the the 'ant' subfolder, e.g. 'D:\ptc\x-22-\Windchill\ant'

Untitled.png

d). close the dialog.

This has setup eclipse to use your Windchill ant engine for builds.

2). In Eclipse navigate Window>Show View>Ant

a). This opens an Ant view (a new panel).

Untitled.png

b). Select the '+' button.

Untitled.png

c). In the 'Buildfile Selection' dialog select your 'build.xml' file. This is typically under your source directory.

Untitled.png

d). select ok.

3). In the Ant dialog double click on the new entry. This will perform an 'ant all'. You can expand this icon and run other targets.

Untitled.png

4). This will output to your Eclipse Console.

Untitled.png


Thanks.

-Stephen Lawson