Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.
Add Build Commands
This topic describes how you specify the commands to build the project or package, using the Execution Analyzer Script Editor.
The Build page enables you to enter commands to build your project. You can use Enterprise Architect Local Paths and environment variables in composing your command line(s).
Access Analyzer | Execution Analyzer (Shift+F12) : New (Toolbar icon) > Build > Build
Analyzer | Execution Analyzer (Shift+F12) : locate and double-click on required script > Build > Build
Reference
On the Execution Analyzer Script Editor:
Field |
Action |
See also |
---|---|---|
Execute Command As: |
Batch File Use this option to create a build script. The script is executed in a system command window. Environment variables can be accessed by commands in this script. Process Use this option to run a single program. The command should specify the path to the program, plus any command line arguments; if the executable path or any arguments contain spaces, they must be surrounded by quotes.
When this option is selected for Java, you can build all java files in child directories by adding the %r token. The token should immediately precede the files to be built. Enterprise Architect will then execute the command in each child directory. (see example below)
|
|
Build Script |
Write your script in the large text box, using the standard Windows Command Line commands; the format and content of this section depends on the actual compiler, make system, linker and so on that you use to build your project. You can specify, for example, compiler and linker options, and the names of output files; you can also wrap up all these commands into a convenient batch file and call that here instead.
Examples: Visual Studio: "C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\devenv.com" /Rebuild Debug RentalSystem.sln
Using a Local Path: "%VsCompPath%\devenv.exe" /build Debug Subway.sln
Java: C:\Program Files (x86)\Java\jdk1.6.0_22\bin\javac.exe" -g -cp "%classpath%;." %r*.java
Using a Local Path: "%JAVA%\bin\javac.exe" -g -cp "%classpath%;." %r*.java
|
|
Default Directory |
Type in or browse for the default directory path into which the Build commands are to load the built application files.
|
|
Parse Output |
This enables you to select a method for automatically parsing the compiler output. If you select this option, output from the script is logged in the System Output window; Enterprise Architect parses the output according to the syntax you specify.
|
Learning Center topics
• | (Alt+F1) | Build and Debug | Overview | Build |
• | (Alt+F1) | Build and Debug | Build and Run | Build Scripts - Native |
• | (Alt+F1) | Build and Debug | Build and Run | Build Scripts - .NET |
• | (Alt+F1) | Build and Debug | Build and Run | Build Scripts - Java |