Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

EclipseJDT Plug-in Developer Guide
Previous Page Home Next Page

Headless Building with APT in Eclipse

Instructions for building workspaces from the command-line directly or with ant

The APT plugin can be used in conjunction with Eclipse to build your preconfigured workspace, either directly from the command-line or via ant with its built-in ant task.

Building from the command-line

Given an installation of Eclipse with the APT plugin installed, you can invoke the command-line builder with the following command:
eclipsec -nosplash -application org.eclipse.jdt.apt.core.aptBuild -data %WORKSPACE%
This invokes Eclipse as a console application in headless mode and builds the workspace as provided on the command-line. Any configuration for the provided workspace will be observed in the build.

Building with Ant

Again, you will need an installation of Eclipse with the APT plugin installed. Given this, the "apt" task can be invoked with the following xml in your build.xml file:
<project name="test_eclipse" default="build" basedir=".">

    <taskdef name="apt" classname="org.eclipse.jdt.apt.core.build.JdtApt"/>
    
    <target name="build">
        <apt workspace="%WORKSPACE%" eclipseHome="%ECLIPSE_HOME%"/>
    </target>
    
</project>

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire