Running a batch from the command line

Generating class diagrams in the build

A batch can be run from the command line allowing it to be included in a build. The prequisites for this are:
  • An Eclipse workspace exists containing the Java source code projects
  • An AgileJ batch file (.ajb file) exists

Command line arguments

java Run a Java VM outside of Eclipse.
-jar <equinox launcher> The exact file name of the equinox launcher for your installation of Eclipse. This must be an instance of Eclipse with AgileJ StructureViews installed.
Example: /Users/validation/eclipse/plugins/org.eclipse.equinox.launcher_1.3.0.v20130125-144918.jar
-application batch.generation Tell Eclipse to run the AgileJ batch generator.
-data <workspace>Absolute path to the workspace on your file system.
Example: /Users/validation/workspace
-ajb <path to .abj file> The path to the .ajb file relative to the workspace root.
Example: myproject/batch/batch.ajb
-preserve Include this argument if you want existing diagram files in batch/war/data/diagrams to be included in this batch and not be deleted.
-vmargs Tell Eclipse to pass further arguments to the Java VM.
-Xmx1GIncrease the Java heap as needed to run the batch. May vary by the size and complexity of the Java projects in the workspace.
-XstartOnFirstThreadRequired for Mac OS X only.

Example command line

java -jar /Users/validation/eclipse/plugins/org.eclipse.equinox.launcher_1.3.0.v20130125-144918.jar -application batch.generation -data /Users/validation/workspace -ajb MyProject/batch/batch.ajb -preserve -vmargs -Xmx1G -XstartOnFirstThread

Copyright © AgileJ Ltd. All rights reserved.

AgileJ StructureViews is a plugin for Eclipse which generates UML class diagrams reverse engineered from Java source code.

Learn More

Stay Up To Date


Get In Touch

AgileJ Ltd
Trident Court, 1 Oakcroft Road
Chessington, Surrey
KT9 1BD
United Kingdom
+44 20 8123 2318