IntelliJ Community . PluginANTScript

 
PluginANTScript 

HOME INDEX SEARCH CHANGES GO  

Plugin ANT Script

This is common template for plugin ANT script.

Features

  • Done Automatical build incrementation
  • Done Automatical changes log generation
  • Done Building with native2ascii support
  • Done Building with UI Forms compilation
  • Done Deploying plugins to sandbox
    • Done Running sandbox
  • Done Autoupdate tool
  • Done Installation tool (injection into existing project)

Installing

  • Done 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

Configuring and re-configuring

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.

Injection

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:

  • Done make
  • Done snapshot
  • Done release
  • Done deploy

Target 'make'

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.

Target 'snapshot'

This target is used for taking current shapshot from source files.

Target 'release'

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.

Target 'deploy'

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

Attachment: sort Action: Size: Date: Who: Comment:
template-4.5.0.1.zip action 8979 31 Oct 2004 - 14:01 AlexeyEfimov  
template-4.5.0.2.zip action 9442 03 Nov 2004 - 07:56 AlexeyEfimov  
template-4.5.0.3.zip action 9861 21 Nov 2004 - 19:28 AlexeyEfimov  

e d i t a t t a c h r e f - b y d i f f s m o r e
Have ideas, requests, problems regarding this site? Send feedback.
Copyright © 2000-2003 by the contributing authors. All materials at intellij.org are the property of the contributing authors.