Plugin ANT Script
This is common template for plugin ANT script.
-
Automatical build incrementation
-
Automatical changes log generation
-
Building with native2ascii support
-
Building with UI Forms compilation
-
Deploying plugins to sandbox
-
Running sandbox
-
Autoupdate tool
-
Installation tool (injection into existing project)
-
Download latest archive and unzip it.
After first instalation, you can use autoupdate tool for automatical updating with out geting it manualy from this site:
ant update
You can configure ANT script by follow command:
ant configure
This is target will executed automatical for first run or after update, if it required.
You must run follow command:
ant install
ANT ask you for project directory full path. Enter it. After injection your project will have build.xml, build.properties and two template files - plugin.xml and CHANGES.txt.
Using ANT file
Ant script is base on follow common targets:
-
make
-
snapshot
-
release
-
deploy
This target is used for development builds. As result, you can see in build folder the ZIP archive, that you can deploy into IDEA manulay.
This target is used for taking current shapshot from source files.
This target is complex target, that perform target make, snapshot and perform generation of release notes - CHANGES.txt. You project root directory contains file - changes.log. You must fill this file by changes for this release and run target release. For example:
file changes.log contains:
Change 01
Change 02
Change 03
After you get release target completed, you will see ZIP distributive in build directory, where are file CHANGES.txt look like:
Plugin 0.1.0 build # 123
---
* Change 01
* Change 02
* Change 03
Plugin 0.0.1 build # 3
---
* Change 01
* Change 02
* Change 03
This file generated automaticaly.
After release target completed, you can upload this binary ZIP distribute (but not src ZIP archive!) into Plugin Repository.
This target is used for development builds. Traget depends on 'make' target, and deploy maked archive into sandbox automaticaly, after deploying ANT will run IDEA in sandbox folder (no additional scripts is requires).
-- AlexeyEfimov - 03 Nov 2004
|
|