Build Ant Target
A flexible ANT Build System for Sublime Text 2 and 3 that doesn't require the build.xml be in the root of your project, and offers target selection.
Details
Installs
- Total 2K
- Win 1K
- Mac 544
- Linux 263
Feb 5 | Feb 4 | Feb 3 | Feb 2 | Feb 1 | Jan 31 | Jan 30 | Jan 29 | Jan 28 | Jan 27 | Jan 26 | Jan 25 | Jan 24 | Jan 23 | Jan 22 | Jan 21 | Jan 20 | Jan 19 | Jan 18 | Jan 17 | Jan 16 | Jan 15 | Jan 14 | Jan 13 | Jan 12 | Jan 11 | Jan 10 | Jan 9 | Jan 8 | Jan 7 | Jan 6 | Jan 5 | Jan 4 | Jan 3 | Jan 2 | Jan 1 | Dec 31 | Dec 30 | Dec 29 | Dec 28 | Dec 27 | Dec 26 | Dec 25 | Dec 24 | Dec 23 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Mac | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
Build Ant Target
A Sublime Text 2 and 3 plugin that allows you to…
build any target from any valid Ant build file, regardless of its location in your project!
Overview
A super simple plugin that extends Sublime Text's existing Ant build support,
by adding more flexibility, allowing you to build from any open build file
in your project, not just a build.xml
in the root of your project.
It also allows you to select your desired target to build, for projects that have more than one target defined.
Requirements
- Make sure you have Ant installed on your machine.
- https://ant.apache.org/manual/install.html
- or via Homebrew
brew update
brew install ant
- Make sure that your Ant installation is linked to
/usr/local/ant
(*).sudo ln -s /usr/local/bin/ant /usr/local/ant
- NOTE: This assumes your existing Ant install is located at
/usr/local/bin/ant
. You can figure out where you Ant is installed by running,which ant
.
- NOTE: This assumes your existing Ant install is located at
- That‘s it!
Installation
It is available through Sublime Package Contol and this is the recommended way of installation (brings configuration instructions, automatic updates with changelogs…).
Alternative installation methods
From github
You can install from github if you want, although Package Control automates
just that. Go to your Packages
subdirectory under Sublime Text's data directory:
Sublime Text 2
- Windows:
%APPDATA%\Sublime Text 2
- OS X:
~/Library/Application Support/Sublime Text 2
- Linux:
~/.config/sublime-text-2
- Portable Installation:
Sublime Text 2/Data
Sublime Text 3
- Windows:
%APPDATA%\Sublime Text 3
- OS X:
~/Library/Application Support/Sublime Text 3
- Linux:
~/.config/sublime-text-3
- Portable Installation:
Sublime Text 3/Data
Manually
Download the plugin as a zip. Copy the BuildAntTarget directory to its location (see prior section).
Usage
Build Target
There are two ways in which you can initiate the building of an Ant target, via the Keyboard Shortcut or Context Menu.
NOTE: Both of these methods require that you initiate the command from an opened, and valid, Ant build file.
Keyboard Shortcut
- Use the keyboard shortcut,
command+alt+b
, on any opened Ant build file - Select target via the popup menu
- Watch your build happen via the Build Results panel
Context Menu
- Right-click on the opened build file
- Navigate to
Build Ant Target > Build Target
- Select target via the popup menu
- Watch your build happen via the Build Results panel
Options
Coming soon…
Footnotes
- - This is the default location that the Sublime Text ANT build system uses. I was able to find this out thanks to this link Sublime Text with SuperAnt path is not correct