18.04.2015 Views

ArcGIS Engine Developer Guide

ArcGIS Engine Developer Guide

ArcGIS Engine Developer Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

BUILDING A COMMAND-LINE JAVA APPLICATION<br />

main.class=engine.scenario.analyst3d.TintoPoint<br />

#TinToPoint command line args<br />

input.tin.path=\<br />

output.shape.path=\<br />

2. Save and close the file.<br />

Creating the properties.xml file<br />

The properties.xml file sets Ant properties for the build environment. Ant properties<br />

can be set explicitly or loaded from a file. For simplicity, you will add the<br />

dependent properties from a file, properties.xml.<br />

1. Create an XML file named properties.xml and add the following Ant properties:<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

2. Save and close the file.<br />

To learn more about private and public targets<br />

used in Ant scripts, see the Ant documentation<br />

available from the Apache Ant Web site,<br />

http://ant.apache.org/.<br />

Creating the build.xml file<br />

Ant build scripts are written in XML and contain one project and at least one<br />

task. Each project defines one or more targets that combine tasks for execution.<br />

In this scenario, the project name is “<strong>ArcGIS</strong> <strong>Engine</strong> <strong>Developer</strong> Scenario”, and its<br />

build script needs to contain the four private and three public targets, as listed<br />

respectively below:<br />

• init—creates the build directory structure.<br />

412 • <strong>ArcGIS</strong> <strong>Engine</strong> <strong>Developer</strong> <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!