To automatically execute your Ant file when the SimpleUMLModel changes,
follow these steps.
- Select the SimpleUMLProject project and right-click Properties
- In the Properties for SimpleUMLProject dialog
box, on the left, click Builders.
- In the Builders pane, click New to
create a new builder.
- In the Choose configuration type dialog box,
select Ant Build and click OK.
- In the Properties for New_Builder dialog box,
type a name, such as publish_builder in the Name field.
- For the Buildfile field, click on Browse
Workspace and in the Choose location dialog
box, select your publish.xml Ant script file and click OK.
- Click on the JRE tab and verify the Runtime
JRE pane has Run in same JRE as workspace selected.
- Click Apply and then OK in
the Properties for New_Builder dialog box and then OK in
the Properties for SimpleUMLProject dialog box.
The publish.xml Ant script will automatically be
executed when the project is updated.