ppcas.blogg.se

Apache ant tutorial
Apache ant tutorial













apache ant tutorial

We will use several of these macros later. (Paths are relative to the location of theĮlement loads a set of Ant macros for App Engine development, included in the App Engine Java SDK. Property is the path to the App Engine Java SDK, theĭirectory created when you unpacked the SDK Zip file.Īssumes this directory is in the parent directory above the project directory. The file defines two Ant properties, which we will use when we define targets and paths later. This build file doesn't do anything yet: it doesn't contain a "target" with instructions to perform tasks. (Within the Ant file itself, paths using forward slashes If you are using Windows, change the forward slashes To create this directory structure from the command prompt, use the following commands. The complete project directory should look like this: You will create other files for the WAR directly in the The build process will compile the source code, and put the compiled Java bytecode in the appropriate location under (WAR archive files are not yet supported by the SDK.)įor these instructions, we will put all project-related files in a single directory namedįor Java source code and a subdirectory namedįor the finished application files.

apache ant tutorial

Standard layout for Java web applications. , your App Engine project must produce a directory structure using the If you do not already have Ant installed on your system, visitĬommand is on your command path, you can run the following command to verify that it works, and see which version is installed: Upgrading to the latest (experimental) versions requires changes to theįile that are not documented on this page. , please note that this article applies to JDO version 2.3 and JPA version 1.0.

apache ant tutorial

To skip the description and go directly to the complete file for copying and pasting, see This article describes an Ant build file useful for most projects. The Java SDK includes a set of Ant macros to perform common App Engine development tasks, including starting the development server and uploading the app to App Engine. Makes it easy to manage your project from the command line, or from other IDEs that work with Ant. , you'll probably want some other way to manage the process of building and testing your App Engine application. Authentication: Adding Auth Support in Client Project Authentication: Adding Client IDs to Backend and Libraryħ. Migrating from the Google Cloud Storage APIĦ. Creating, Getting, and Deleting Data in JDO















Apache ant tutorial