The following tasks are available from the Tasks page in the Generation dialog box for Java:
Task |
Description |
---|---|
Compile Java sources |
Starts a compiler using the javac command to compile Java source files |
Package compiled classes in a JAR file |
Compiles source files and package them in a JAR file |
Run Java application |
Compiles source files and run the Java application using the java command |
Generate Javadoc |
Generates Javadoc |
Package J2EE application in an EAR file |
Calls commands for building EJB component source, creating a JAR file for Java classes and a deployment descriptor, building the Web component source code, creating an EAR file for Web component classes and a deployment descriptor, and creating an EAR archive containing all generated JAR/WAR files |
Run J2EE verifier |
Calls commands for building EJB component source code, creating a JAR file for Java classes and a deployment descriptor, building the Web component source code, creating a WAR file for Web component classes and a deployment descriptor, creating an EAR archive containing all generated JAR/WAR files, and running the J2EE verifier on generated archives |
WSDL: Compile and package Web Service server-side code into an archive |
Calls commands for building EJB and Web component source code, running the WSCompile tool, creating a WAR file for Web component classes and deployment descriptor, and creating a JAR file for Java classes and deployment descriptor |
WSDL: Compile and package Web Service client proxy into an archive |
Calls commands for building EJB and Web component source code, running the WSCompile tool, and creating a WAR file for client-side artifacts |
There is no constraint over the generation of a JAR or a WAR per package. Only packages with the <<archive>> stereotype will generate a JAR or a WAR when they (or one of their descendant package not stereotyped <<archive>>) contain one EJB (for the JAR), and one servlet or JSP (for the WAR).
The newly created archive contains the package and all of its non-stereotyped descendants. The root package (that is the model) is always considered as being stereotyped <<archive>>.
For example, if a model contains several EJB components in different sub-packages but that none of these packages is stereotyped <<archive>>, a single JAR is created encompassing all packages.
The default compiler command is the javac executable. The default run command for the Java compiler is the java executable.
Those commands are used by default in PowerDesigner but you can customize your commands using any other suitable executable by selecting
and setting your preferences in this page.