APEX Developer Guide. Sven van der Meer, Liam Fallon, John Keeney. Version SNAPSHOT, T11:44:57Z

Size: px
Start display at page:

Download "APEX Developer Guide. Sven van der Meer, Liam Fallon, John Keeney. Version SNAPSHOT, T11:44:57Z"

Transcription

1 APEX Developer Guide Sven van der Meer, Liam Fallon, John Keeney Version SNAPSHOT, T11:44:57Z

2 Table of Contents 1. Build APEX from Source Introduction to building APEX Standard Build Checkstyle with Maven Build with standard Tests Build with all Tests Build with all Components Build the APEX Documentation Build APEX Site APEX Codestyle Introduction: APEX Codestyle Java coding Rules Eclipse Plugin: JAutodoc Eclipse Plugin: Checkstyle Configure Eclipse Configure JAutodoc (Eclipse) Configure Checkstyle (Maven) Run Checkstyle (Maven) Configure Checkstyle (Eclipse, globally) Configure Checkstyle Blueprint Use Eclipse Source Operations Using JAutodoc Using Checkstyle Disable Eclipse Formatting (partially) Supress Checkstyle (partially) apex-apps.utilities CLI Example Autoversioning an Application

3 Version: SNAPSHOT Version Date: T11:44:57Z Version Notes: for APEX SNAPSHOT 1. Build APEX from Source 1.1. Introduction to building APEX APEX is written 100% in Java and uses Apache Maven as the build system. The requirements for building APEX are: An installed Java development kit for Java version 8 or higher To install a Java SDK please follow these guidelines Oracle Java 8 SDK. Maven 3 To get Maven 3 running please follow the guidelines for Download and Install, and Run Maven A clone of the APEX source repositories To get a clone of the APEX source repositories, please see the APEX Installation Guide or the APEX User manual. One all requirements are in place, APEX can be build. There are several different artifacts one can create building APEX, most of them defined in their own profile. APEX can also be build in a standard way with standard tests (mvn clean install) or without standard tests (mvn clean install -DskipTests). The examples in this document assume that the APEX source repositories are cloned to: Unix, Cygwin: /usr/local/src/apex Windows: C:\dev\apex Cygwin: /cygdrive/c/dev/apex A Build requires ONAP Nexus APEX has a dependency to ONAP parent projects. You might need to adjust your Maven M2 settings. The most current settings can be found in the ONAP oparent repo: Settings. A Build needs Space Building APEX requires approximately 2-3 GB of hard disc space, 1 GB for the actual build with full distribution and 1-2 GB for the downloaded dependencies A Build requires Internet (for first build to download all dependencies and plugins) During the build, several (a lot) of Maven dependencies will be downloaded and stored in the configured local Maven repository. The first standard build (and any first specific build) requires Internet access to download those dependencies. Building RPM distributions RPM images are only build if the rpm package is installed (Unix). To install rpm run sudo apt-get install rpm, then build APEX. 1

4 1.2. Standard Build Use Maven to for a standard build without any tests. Unix, Cygwin Windows # cd /usr/local/src/apex # mvn clean install -DskipTests >c: >cd \dev\apex >mvn clean install -DskipTests The build takes about 6 minutes on a standard development laptop. It should run through without errors, but with a lot of messages from the build process. When Maven is finished with the build, the final screen should look similar to this (omitting some success lines): [INFO] tools... SUCCESS [ s] [INFO] tools-common... SUCCESS [ s] [INFO] simple-wsclient... SUCCESS [ s] [INFO] model-generator... SUCCESS [ s] [INFO] packages... SUCCESS [ s] [INFO] apex-pdp-package-full... SUCCESS [01:10 min] [INFO] Policy APEX PDP - Docker build SNAPSHOT... SUCCESS [ s] [INFO] [INFO] BUILD SUCCESS [INFO] [INFO] Total time: 03:43 min [INFO] Finished at: T11:56:01+01:00 [INFO] The build will have created all artifacts required for an APEX installation. The following example show how to change to the target directory and how it should look like. Unix, Cygwin # cd packages/apex-pdp-package-full/target # ls -l -rwxrwx esvevan Domain Users 772 Sep 3 11:55 apex-pdp-packagefull_2.0.0~snapshot_all.changes* -rwxrwx esvevan Domain Users Sep 3 11:55 apex-pdp-package-full snapshot.deb* -rwxrwx esvevan Domain Users Sep 3 11:54 apex-pdp-package-full snapshot.jar* -rwxrwx esvevan Domain Users Sep 3 11:55 apex-pdp-package-full snapshottarball.tar.gz* drwxrwx esvevan Domain Users 0 Sep 3 11:54 archive-tmp/ -rwxrwx esvevan Domain Users 89 Sep 3 11:54 checkstyle-cachefile* -rwxrwx esvevan Domain Users Sep 3 11:54 checkstyle-checker.xml* -rwxrwx esvevan Domain Users 584 Sep 3 11:54 checkstyle-header.txt* -rwxrwx esvevan Domain Users 86 Sep 3 11:54 checkstyle-result.xml* drwxrwx esvevan Domain Users 0 Sep 3 11:54 classes/ drwxrwx esvevan Domain Users 0 Sep 3 11:54 dependency-maven-plugin-markers/ drwxrwx esvevan Domain Users 0 Sep 3 11:54 etc/ drwxrwx esvevan Domain Users 0 Sep 3 11:54 examples/ drwxrwx esvevan Domain Users 0 Sep 3 11:55 install_hierarchy/ drwxrwx esvevan Domain Users 0 Sep 3 11:54 maven-archiver/ 2

5 Windows >cd packages\apex-pdp-package-full\target >dir 03/09/ :55 <DIR>. 03/09/ :55 <DIR>.. 03/09/ :55 146,296,819 apex-pdp-package-full snapshot-tarball.tar.gz 03/09/ :55 146,328,082 apex-pdp-package-full snapshot.deb 03/09/ :54 15,633 apex-pdp-package-full snapshot.jar 03/09/ : apex-pdp-package-full_2.0.0~snapshot_all.changes 03/09/ :54 <DIR> archive-tmp 03/09/ :54 89 checkstyle-cachefile 03/09/ :54 10,621 checkstyle-checker.xml 03/09/ : checkstyle-header.txt 03/09/ :54 86 checkstyle-result.xml 03/09/ :54 <DIR> classes 03/09/ :54 <DIR> dependency-maven-plugin-markers 03/09/ :54 <DIR> etc 03/09/ :54 <DIR> examples 03/09/ :55 <DIR> install_hierarchy 03/09/ :54 <DIR> maven-archiver 8 File(s) 292,652,686 bytes 9 Dir(s) 14,138,720,256 bytes free 1.3. Checkstyle with Maven The codestyle for all APEX java projects can be checked automatically. The checks include empty or non-existing Javadocs. Any checkstyle run should complete without any errors, some warnings are acceptable. To run checkstyle on an APEX Maven project use: mvn checkstyle:check To run checkstyle on all modules use: mvn checkstyle:checkstyle -DapexAll 1.4. Build with standard Tests Use Maven to for a standard build with standard tests. Some tests have specific timing Requirements Some of the tests have very specific timing requirements. If run on a low-powered build machine, or if the build machine is on high load, those tests might fail and the whole build might fail as well. If this happens, reduce the load on your build machine and restart the build. 3

6 Unix, Cygwin Windows # cd /usr/local/src/apex # mvn clean install >c: >cd \dev\apex >mvn clean install The build takes about 10 minutes with tests on a standard development laptop. It should run through without errors, but with a lot of messages from the build process. If build with tests (i.e. without -DskipTests), there will be error messages and stack trace prints from some tests. This is normal, as long as the build finishes successful Build with all Tests Use Maven to for a standard build with all tests. Some tests have specific timing Requirements Some of the tests have very specific timing requirements. If run on a low-powered build machine, or if the build machine is on high load, those tests might fail and the whole build might fail as well. If this happens, reduce the load on your build machine and restart the build. Might require specific software When running all tests, some modules require specific software installed on the build machine. For instance, testing the full capabilities of context (with distribution and persistence) will require Hazelcast and Infinispan installed on the build machine. Unix, Cygwin Windows # cd /usr/local/src/apex # mvn clean install -DallTests >c: >cd \dev\apex >mvn clean install -DallTests 1.6. Build with all Components A standard APEX build will not build all components. Some parts are for specific deployments, only. Use Maven to for a standard build with all components. Might require specific software When building all components, some modules require specific software installed on the build machine. Unix, Cygwin Windows # cd /usr/local/src/apex # mvn clean install -DapexAll >c: >cd \dev\apex >mvn clean install -DapexAll 4

7 1.7. Build the APEX Documentation The APEX Maven build also includes stand-alone documentations, such as the HowTo documents, the Installation Guide, and the User Manual. Use Maven to build the APEX Documentation. The Maven options -N prevents Maven to go through all APEX modules, which is not necessary for the documentation. The final documents will be in target/generated-docs (Windows: target\generated-docs). The HTML documents are in the html/ folder, the PDF documents are in the pdf/ folder. Once the documentation is build, copy the HTML and PDF documents to a folder of choice Unix, Cygwin Windows # cd /usr/local/src/apex # mvn clean generate-resources -N -DapexDocs >c: >cd \dev\apex >mvn clean generate-resources -N -DapexDocs 1.8. Build APEX Site The APEX Maven build comes with full support to build a web site using Maven Site. Use Maven to build the APEX Site. Stage the APEX web site. The target folder for the staged site is Unix: /usr/local/src/apex/target/ad-site Windows: C:\dev\apex\target\ad-site Cygwin: /cygdrive/c/dev/apex/target/ad-site Once the web site is staged, copy the full site to a folder of choice or into a web server. Building a Site takes Time Building and staging the APEX web site can take very long. The stand-alone documentation will take about 2 minutes. The sites for all modules and projects and the main APEX site can take between minutes depending on your build machine (~10 minutes without generating source and test-source reports, closer to 30 minutes with all reports). Start the build deleting the staging directory that might have been created by a previous site build. Then go to the APEX packaging directory. Unix Windows Cygwin cd /usr/local/src/apex rm -fr target/ad-site c: cd \dev\apex rmdir /s /q target\ad-site cd /cygdrive/c/dev/apex rm -fr target/ad-site the workflow for building a complete site then is as follows: mvn clean -DapexAll 1 mvn install -DskipTests 2 mvn generate-resources -N -DapexDocs 3 mvn initialize site:attach-descriptor site site:stage -DapexSite 4 1. First clean all modules to remove any site artifacts, use the apexxtext profile to make sure these modules are processed as well 5

8 2. Next run a simple install without tests 3. Now generate the APEX stand -alone documentation, they are in the local package only so we can use the -N switch 4. Last build the actual sites and stage (copy to the staging directory) with the profile apexsite (do not forget the initialize goal, otherwise the staging directory will not be correctly set and sites are staged in every model in a directory called docs). If you want to build the site for a particular project for testing, the Maven command is simpler. Since only the main project has APEX documentation (stand-alone), you can use Maven as follow. mvn clean site -DapexSite If you want to stage the tested site, then use mvn clean initialize site:attach-descriptor site site:stage -DapexSite 2. APEX Codestyle 2.1. Introduction: APEX Codestyle This page describes how to apply a code style to the APEX Java projects. The provided code templates are guidelines and are provided for references and as examples. We will not engage in "holy war" on style for coding. As long as the style of a particular block of code is understandable, consistent, and readable, please feel free to adapt or modify these guides or use other guides as you see fit. The JAutoDoc and Checkstyle Eclipse Plugins and tools are useful and remove a lot of the tedium from code documentation. Use them to check your code and please fix any issues they identify with your code. Since APEX is part of ONAP, the general ONAP rules and guideliness for development do apply. Please see ONAP Wiki for details Java coding Rules APEX is (in large parts) a platform (or middleware), so Software Design Patterns are a good thing The Solid Principles apply Avoid class fields scoped as protected They break a lot of good design rules, e.g. most SOLID rules For a discussion see this Stackoverflow Question If you absolutely need protected class fields they should be final Avoid default scope for class fields and methods For fields: use public or private (see also above) For methods: use public for general use, protected for specialization using inheritance (ideally final), private for everything else Method parameters that are not changed in the method should be marked final Every package must have a package-info.java file with an appropriate description, minimum a descriptive one liner 6

9 Every class must have The common header (copyright, file, date) Javadoc header for the class with description of the class and author Javadoc for all public_ fields If possible, Javadoc for private fields, at least some documentation for private fields Javadoc for all methods All project must build with all tests on Unix, Windows, and Cygwin Support all line endings in files, e.g. \n and \r\n Be aware of potential differences in exception messages, if testing against a message Support all types of paths: Unix with /, Windows with an optinal drive C:\ and \, Cygwin with mixed paths 2.3. Eclipse Plugin: JAutodoc This plugin is a helper plugin for writing Javadoc. It will automatically create standard headers on files, create package-info.java files and will put in remarkably good stub Javadoc comments in your code, using class names and method names as hints. Available from the Eclipse Marketplace. In Eclipse Help Eclipse Marketplace and type JAutodoc. Select JAutodoc when the search returns and install it. You must configure JAutoDoc in order to get the most out of it. Ideally JAutoDoc should be configured with templates that cooperate with the inbuilt Eclipse Code Formatter for best results Eclipse Plugin: Checkstyle This plugin integrates Checkstyle into Eclipse. It will check your code and flag any checkstyle issues as warnings in the code. Available from the Eclipse Marketplace. In Eclipse Help Eclipse Marketplace and type "Checkstyle". Select "Checkstyle Plug-in" when the search returns and install it. Note that "Checkstyle Plug-in" may not be the first result in the list of items returned. For APEX, the ONAP checkstyle rules do apply. The configuration is part of the ONAP parent. See ONAP Git for details and updates. All settings for checkstyle are already part of the code (POM files) Configure Eclipse Set the template for Eclipse code clean up 1. Eclipse Window Preferences Java Code Style Clean Up Import 2. Select your template file (ApexCleanUpTemplate.xml) and apply it Set the Eclipse code templates 1. Eclipse Window Preferences Java Code Style Code Templates Import 2. Select your templates file (ApexCodeTemplates.xml) and apply it Make sure to set your address in generated comments by selecting "Comments Types" in the "Configure generated code and comments:" pane, then change the address on tag to be your address Set the Eclipse Formatter profile 7

10 1. Eclipse Window Preferences Java Code Style Formatter Import 2. Select your formatter profile file (ApexFormatterProfile.xml) and apply it The templates mentioned above can be found in apex-model/apex-model.build-tools/src/main/resources/eclipse 2.6. Configure JAutodoc (Eclipse) Import the settings for JAutodoc: 1. Eclipse Window Preferences Java JAutodoc Import All (at bottom of the JAutodoc preferences window) 2. Leave all the preferences ticked to import all preferences, browse to the JAutodoc setting file (ApexJautodocSettings.xml) and press OK 3. Set your address in the package Javadoc template Press Edit Template in the Package Javadoc area of the JAutodoc preferences window, and change the address on tag to be your address 4. Now, apply the JAutodoc settings The templates mentioned above can be found in apex-model/apex-model.build-tools/src/main/resources/eclipse 2.7. Configure Checkstyle (Maven) When using a custom style configuration with Checkstyle, the definition of that style must of course be available to Checkstyle. In order not to have to distribute style files for checkstyle into all Maven modules, it is recommended that a special Maven module be built that contains the checkstyle style definition. That module is then used as a dependency in the POM for all other modules that wish to use that checkstyle style. For a full explanation see the explanation of Checkstyle multi-module configuration. For APEX, the ONAP checkstyle rules do apply. The configuration is part of the ONAP parent. See ONAP Git for details and updates Run Checkstyle (Maven) Run Checkstyle using Maven on the command line with the command: mvn checkstyle:check On the main APEX project, run a full checkstyle check as: mvn checkstyle:checkstyle -DapexAll 2.9. Configure Checkstyle (Eclipse, globally) 1. Set up a module with the Checkstyle style files (see above) 2. In Eclipse Window Preferences go to Checkstyle 3. Import the settings for Checkstyle Press New to create a new Global Check Configurations entry 8

11 Give the configuration a name such as Apex Checkstyle Configuration and select the External Configuration File form in the Type drop down menu Browse to the Checckstyle setting file (ApexCheckstyleSettings.xml) and press OK 4. Press OK You may now get an Unresolved Properties found dialogue This is because there is a second Checkstyle configuration file required to check file headers 5. Press Edit Properties and press Find unresolved properties on the next dialogue window 6. The plugin will find the ${checkstyle.header.file} property is unresolved and will ask should it be added to the properties, click yes 7. Now, select the row on the dialogue for the checkstyle.header.file property and click Edit 8. Set the value of the checkstyle.header.file property to <your-apex-git-location>/apex-model/apex-model.buildtools/src/main/resources/checkstyle/apex_header.txt Of course replacing the tag <your-apex-git-location> with the location of your Apex GIT repository 9. Press OK, OK, OK to back out to the main Checkstyle properties window 10. Select the Apex Checkstyle Configuration as your default configuration by selecting its line in the Global Check Configuraitons list and clicking Set as Default 11. Press Apply and Close to finish Checkstyle global configuration The templates mentioned above can be found in apex-model/apex-model.build-tools/src/main/resources/eclipse Configure Checkstyle Blueprint As well as being configured globally, Checkstyle must be configured and activated for each project in Eclipse. In order to make this process less tedious, set up the first project you apply Checkstye to as a blueprint project and then use this blueprint for all other projects. 1. Select the project you want to use as a blueprint For example, apex-model.basic-model in apex and enter the project properties by right clicking and selecting Properties 2. Click Checkstyle on the properties to get the Checkstyle project configuration window 3. Click the box Checkstyle active for this project and in the Exclude from checking list check the boxes: files outside source directories derived (generated) files files from packages: 4. Now, in order to turn off checking on resource directories and on JUnit tests Select the line files from packages: in the Exclude from checking list and click Change 5. On the Filter packages dialogue Check all the boxes except the top box, which is the box for src/main/java Ensure that the recursively exclude sub-packages check box is ticked recursively exclude sub-packages Press OK 6. Press Apply and Close to apply the changes 9

12 2.11. Use Eclipse Source Operations Eclipse Source Operations can be carried out on individual files or on all the files in a package but do not recurse into sub-packages. They are available as a menu in Eclipse by selecting a file or package and right clicking on Source. Note that running Clean Up with the Apex clean up profile will run Format and Organize Imports. So if you run a clean up on a file or package, you need not run Format or Organize Imports. We recommend you use the following Eclipse Source Operations: 1. Format applies the current format definition to the file or all files in a package 2. Organize Imports sorts the imports on each file in standard order 3. Clean Up runs a number of cleaning operations on each file. The Apex clean up template Remove this qualifier for non static field accesses Change non static accesses to static members using declaring type Change indirect accesses to static members to direct accesses (accesses through subtypes) Convert control statement bodies to block Convert for loops to enhanced for loops Add final modifier to private fields Add final modifier to local variables Remove unused imports Remove unused private methods Remove unused private constructors Remove unused private types Remove unused private fields Remove unused local variables Add annotations Add annotations to implementations of interface methods Add annotations Add missing serial version ID (generated) Remove unnecessary casts Remove unnecessary $NON-NLS$ tags Organize imports Format source code Remove trailing white spaces on all lines Correct indentation Remove redundant type arguments Add file header (JAutodoc) Using JAutodoc Similar to Eclipse Source Operations, JAutodoc operations can be carried out on individual files or on all the files in a package but do not recurse into sub-packages. The JAutodoc operations are available by selecting a file or package 10

13 and right clicking on JAutodoc: 1. To add a package-info.java file to a package, select the package and right-click Jautodoc Add Package Javadoc 2. To add headers to files select on a file (or on the package to do all files) and right click JAutodoc Add Header 3. To add JAutodoc stubs to a files, select on a file (or on the package to do all files) and right click JAutodoc Add Javadoc Using Checkstyle In order to use Checkstyle, you must configure it per project and then activate it per project. The easiest way to do this is to set up one project as a blueprint and use that blueprint for other projects (see above). Once you have a blueprint project, you can use Checkstyle on other projects as follows 1. Set up Checkstyle on projects by selecting one or more projects Right clicking and selecting Checkstyle Configure project(s) from blueprint and then selecting your blueprint project (for example apex-model.basic-model) from the list of projects and pressing OK 2. Activate Checkstyle on projects by selecting one or more projects Right clicking and selecting Checkstyle Activate Checkstyle Now Checkstyle warnings will appear on the selected projects if they have warnings 3. You can disable Checkstyle checking on a file or a package (recursively) by selecting a file or package Right clicking and selecting Checkstyle Clear Checkstyle violations 4. You can enable Checkstyle checking on a file or a package (recursively) by selecting a file or package Right clicking and selecting Checkstyle Check Code with Checkstyle 5. On individual files, you can apply fixes that clear some Checkstyle warnings Select the file, right click and select Apply Checkstyle fixes Disable Eclipse Formatting (partially) Sometimes, the Eclipse code formatting results in correct but untidy indentation, for example when Java Persistence annotations or long sequences of lined-up assignments are formatted. You can disable formatting for sections of code. 1. Ensure that Off/On Tags are enabled in Eclipse 2. In Eclipse Window Preferences Java Code Style Formatter window press Edit 3. Click on the Off/On Tags tab 4. Ensure that the Enable Off/On Tags checkbox is checked 5. Surround the section of code that you do not want the formatter to act on with comments containing the Off/On tags 11

14 // Plugin Parameters private DistributorParameters distributorparameters = new DistributorParameters(); private SchemaParameters schemaparameters = new SchemaParameters(); private LockManagerParameters lockmanagerparameters = new LockManagerParameters(); private PersistorParameters persistorparameters = new PersistorParameters(); Supress Checkstyle (partially) Sometimes Checkstyle checks identify code that does not comply with Checkstyle rules. In limited cases Checkstyle rules can be suppressed, for example where it is impossible to design the code in a way that complies with Checkstyle or where the Checkstyle rule is impossible to apply. Checkstyle rules are suppressed as is explained in this Stackoverflow post. The example below illustrates how to suppress a Checkstyle rule that specifies all methods must have seven parameters or less. // CHECKSTYLE:OFF: checkstyle:parameternumber public mymethod(final int par1, final int par2, final int par3, final int par4, final int par5, final int par6, final int par7, final int par8) { } // CHECKSTYLE:ON: checkstyle:parameternumber 3. apex-apps.utilities 3.1. CLI Example Using the APEX CLI utilities can be done as follows. First, add the dependency of the utility project to your POM file. <dependency> <groupid>org.onap.policy.apex-pdp.tools</groupid> <artifactid>tools-common</artifactid> <version>2.1.0-snapshot</version> </dependency> Now, create a new application project, for instance MyApp. In this project, create a new main application class as Application.java. In this class, create a new main method as public static void main(string[] args). No use the provided CliOptions and CliParser. Manually importing means to add the following lines to the start of your application (in Eclipse this import will be done automatically): import org.onap.policy.apex.tools.common.clioptions; import org.onap.policy.apex.tools.common.cliparser; Now, inside your main() method, start setting some general application properties. Important are the application name and some description of your application. For instance: final String appname = "test-app"; final String appdescription = "a test app for documenting how to use the CLI utilities"; 12

15 Next, create a new CLI Parser and add a few CLI options from the standard CliOptions. The following example adds options for help, version, and a model file: final CliParser cli = new CliParser(); cli.addoption(clioptions.help); cli.addoption(clioptions.version); cli.addoption(clioptions.modelfile); Next, parse the given CLI arguments: final CommandLine cmd = cli.parsecli(args); Once the command line is parsed, we can look into the individual options, check if they are set, and then act accordingly. We start with the option for help. If the option is present, we print a help screen and return: // help is an exit option, print usage and exit if (cmd.hasoption('h') cmd.hasoption("help")) { final HelpFormatter formatter = new HelpFormatter(); LOGGER.info(appName + " v" + cli.getappversion() + " - " + appdescription); formatter.printhelp(appname, cli.getoptions()); return; } Next, we process the option for version. Here, we want to print a version for our application and return. The CLI Parser already provides a method to obtain the correct version for an APEX build, so we use that: // version is an exit option, print version and exit if (cmd.hasoption('v') cmd.hasoption("version")) { LOGGER.info(appName + " " + cli.getappversion()); return; } Once help and version arguments are processed, we can proceed to look at all other options. We have added an option for a model file, so check this option and test if we can actually load a model file with the given argument. If we can load a model, everything is ok. If we cannot load a model, we print an error and return. String modelfile = cmd.getoptionvalue('m'); if (modelfile == null) { modelfile = cmd.getoptionvalue("model"); } if (modelfile == null) { LOGGER.error(appName + ": no model file given, cannot proceed (try -h for help)"); return; } With a model file being loadable, we finish parsing command line arguments. We also print some status messages to note that the application now is ready to start: LOGGER.info(appName + ": starting"); LOGGER.info(" --> model file: " + modelfile); The last action now is to run the actual application. The example below is taken from a version of the Model2Cli application, which creates a new object and runs it in a try block, since exceptions might be thrown by the object: 13

16 // your code for the application here // e.g. // try { // Model2Cli app = new Model2Cli(modelFile,!cmd.hasOption("sv"), appname); // app.runapp(); // } // catch(apexexception aex) { // LOGGER.error(appName + ": caught APEX exception with message: " + aex.getmessage()); // } If this new application is now called with the command line -h or --help it will print the following help screen: test-app v2.1.0-snapshot - a test app for documenting how to use the CLI utilities usage: test-app -h,--help prints this help and usage screen -m,--model <MODEL-FILE> set the input policy model file -v,--version prints the application version If this new application is called with the option -v or --version it will print its version information as: test-app SNAPSHOT 3.2. Autoversioning an Application The APEX utilities project provides means to versioning an application automatically towards the APEX version it is written for. This is realized by generating a file called app-version.txt that includes the Maven project version. This file is then automatically deployed in the folder etc of a full APEX distribution. The CLI Parser here provides a mthod to access this version for an application. First, create a new CLI Parser object, add some options (in the example an option for version, but any options will do), then parse the command line: final CliParser cli = new CliParser(); cli.addoption(clioptions.version); final CommandLine cmd = cli.parsecli(args); Next, we check if the version option was used in the command line and print application name and version if it was used: // version is an exit option, print version and exit if (cmd.hasoption('v') cmd.hasoption("version")) { LOGGER.info("myApp" + " " + cli.getappversion()); return; } The output will be: myapp SNAPSHOT The auto-version information comes from the method call cli.getappversion() in line 2 in the example above. The method is defined in the CliParser class as: 14

17 public String getappversion() { return new Scanner(CliParser.class.getResourceAsStream("/app-version.txt"), "UTF-8").useDelimiter("\\ A").next(); } The file app-version.txt is automatically added to an APEX full distribution, as described above (for details on this see the POM files in the APEX application packaging projects). 15

APEX Installation Guide. Sven van der Meer, Liam Fallon, John Keeney. Version SNAPSHOT, T16:01:13Z

APEX Installation Guide. Sven van der Meer, Liam Fallon, John Keeney. Version SNAPSHOT, T16:01:13Z APEX Installation Guide Sven van der Meer, Liam Fallon, John Keeney Version 2.0.0-SNAPSHOT, 2018-10-10T16:01:13Z Table of Contents 1. Requirements............................................................................................

More information

APEX User Manual. Sven van der Meer, Liam Fallon, John Keeney. Version SNAPSHOT, T11:44:57Z

APEX User Manual. Sven van der Meer, Liam Fallon, John Keeney. Version SNAPSHOT, T11:44:57Z APEX User Manual Sven van der Meer, Liam Fallon, John Keeney Version 2.1.0-SNAPSHOT, 2018-11-30T11:44:57Z Table of Contents 1. Installation..............................................................................................

More information

Hello Maven. TestNG, Eclipse, IntelliJ IDEA. Óbuda University, Java Enterprise Edition John von Neumann Faculty of Informatics Lab 2.

Hello Maven. TestNG, Eclipse, IntelliJ IDEA. Óbuda University, Java Enterprise Edition John von Neumann Faculty of Informatics Lab 2. Hello Maven TestNG, Eclipse, IntelliJ IDEA Óbuda University, Java Enterprise Edition John von Neumann Faculty of Informatics Lab 2 Dávid Bedők 2017.09.19. v0.1 Dávid Bedők (UNI-OBUDA) Hello JavaEE 2017.09.19.

More information

CS 215 Software Design Homework 3 Due: February 28, 11:30 PM

CS 215 Software Design Homework 3 Due: February 28, 11:30 PM CS 215 Software Design Homework 3 Due: February 28, 11:30 PM Objectives Specifying and checking class invariants Writing an abstract class Writing an immutable class Background Polynomials are a common

More information

Hello Gradle. TestNG, Eclipse, IntelliJ IDEA. Óbuda University, Java Enterprise Edition John von Neumann Faculty of Informatics Lab 2.

Hello Gradle. TestNG, Eclipse, IntelliJ IDEA. Óbuda University, Java Enterprise Edition John von Neumann Faculty of Informatics Lab 2. Hello Gradle TestNG, Eclipse, IntelliJ IDEA Óbuda University, Java Enterprise Edition John von Neumann Faculty of Informatics Lab 2 Dávid Bedők 2017.09.18. v0.2 Dávid Bedők (UNI-OBUDA) Hello JavaEE 2017.09.18.

More information

ONAP Developer Typical Setup 2017 July ONAP Virtual Developers Event

ONAP Developer Typical Setup 2017 July ONAP Virtual Developers Event ONAP Developer Typical Setup 2017 July 24-26 ONAP Virtual Developers Event Gary Wu Daniel Rose Victor Morales Getting Started with ONAP

More information

MAVEN INTERVIEW QUESTIONS

MAVEN INTERVIEW QUESTIONS MAVEN INTERVIEW QUESTIONS http://www.tutorialspoint.com/maven/maven_interview_questions.htm Copyright tutorialspoint.com Dear readers, these Maven Interview Questions have been designed specially to get

More information

sites</distribsiteroot>

sites</distribsiteroot> Maven Parent POMs What is this? We have several parent poms. They pre-configure a whole array of things, from plugin versions to deployment on our infrastructure. They should be used: By all public and

More information

Pace University. Fundamental Concepts of CS121 1

Pace University. Fundamental Concepts of CS121 1 Pace University Fundamental Concepts of CS121 1 Dr. Lixin Tao http://csis.pace.edu/~lixin Computer Science Department Pace University October 12, 2005 This document complements my tutorial Introduction

More information

Maven POM project modelversion groupid artifactid packaging version name

Maven POM project modelversion groupid artifactid packaging version name Maven The goal of this document is to introduce the Maven tool. This document just shows some of the functionalities of Maven. A complete guide about Maven can be found in http://maven.apache.org/. Maven

More information

Checking Out and Building Felix with NetBeans

Checking Out and Building Felix with NetBeans Checking Out and Building Felix with NetBeans Checking out and building Felix with NetBeans In this how-to we describe the process of checking out and building Felix from source using the NetBeans IDE.

More information

I Got My Mojo Workin'

I Got My Mojo Workin' I Got My Mojo Workin' Gary Murphy Hilbert Computing, Inc. http://www.hilbertinc.com/ glm@hilbertinc.com Gary Murphy I Got My Mojo Workin' Slide 1 Agenda Quick overview on using Maven 2 Key features and

More information

CS 315 Software Design Homework 3 Preconditions, Postconditions, Invariants Due: Sept. 29, 11:30 PM

CS 315 Software Design Homework 3 Preconditions, Postconditions, Invariants Due: Sept. 29, 11:30 PM CS 315 Software Design Homework 3 Preconditions, Postconditions, Invariants Due: Sept. 29, 11:30 PM Objectives Defining a wellformed method to check class invariants Using assert statements to check preconditions,

More information

Sonatype CLM - IDE User Guide. Sonatype CLM - IDE User Guide

Sonatype CLM - IDE User Guide. Sonatype CLM - IDE User Guide Sonatype CLM - IDE User Guide i Sonatype CLM - IDE User Guide Sonatype CLM - IDE User Guide ii Contents 1 Introduction 1 2 Installing Sonatype CLM for Eclipse 2 3 Configuring Sonatype CLM for Eclipse 5

More information

Maven. INF5750/ Lecture 2 (Part II)

Maven. INF5750/ Lecture 2 (Part II) Maven INF5750/9750 - Lecture 2 (Part II) Problem! Large software projects usually contain tens or even hundreds of projects/modules Very different teams may work on different modules Will become messy

More information

Topics covered. Introduction to Maven Maven for Dependency Management Maven Lifecycles and Plugins Hands on session. Maven 2

Topics covered. Introduction to Maven Maven for Dependency Management Maven Lifecycles and Plugins Hands on session. Maven 2 Maven Maven 1 Topics covered Introduction to Maven Maven for Dependency Management Maven Lifecycles and Plugins Hands on session Maven 2 Introduction to Maven Maven 3 What is Maven? A Java project management

More information

Maven Introduction to Concepts: POM, Dependencies, Plugins, Phases

Maven Introduction to Concepts: POM, Dependencies, Plugins, Phases arnaud.nauwynck@gmail.com Maven Introduction to Concepts: POM, Dependencies, Plugins, Phases This document: http://arnaud-nauwynck.github.io/docs/maven-intro-concepts.pdf 31 M!! What is Maven? https://maven.apache.org/

More information

Eclipse Scout. Release Notes. Scout Team. Version 7.0

Eclipse Scout. Release Notes. Scout Team. Version 7.0 Eclipse Scout Release Notes Scout Team Version 7.0 Table of Contents About This Release.......................................................................... 1 Service Releases..........................................................................

More information

What is Maven? Apache Maven is a software project management and comprehension tool (build, test, packaging, reporting, site, deploy).

What is Maven? Apache Maven is a software project management and comprehension tool (build, test, packaging, reporting, site, deploy). Plan What is Maven? Links : mvn command line tool POM : 1 pom.xml = 1 artifact POM POM Inheritance Standard Directory Layout Demo on JMMC projects Plugins Conclusion What is Maven? Apache Maven is a software

More information

IBM. IBM WebSphere Application Server Migration Toolkit. WebSphere Application Server. Version 9.0 Release

IBM. IBM WebSphere Application Server Migration Toolkit. WebSphere Application Server. Version 9.0 Release WebSphere Application Server IBM IBM WebSphere Application Server Migration Toolkit Version 9.0 Release 18.0.0.3 Contents Chapter 1. Overview......... 1 Chapter 2. What's new........ 5 Chapter 3. Support..........

More information

Software Installation Guide

Software Installation Guide Software Installation Guide Software Installation Guide 2024C Engagement Development Platform Developing Snap-ins using Java Page 1 of 11 Bring Your Own Device (BYOD) Requirements You will be using your

More information

Object Oriented Programming: In this course we began an introduction to programming from an object-oriented approach.

Object Oriented Programming: In this course we began an introduction to programming from an object-oriented approach. CMSC 131: Chapter 28 Final Review: What you learned this semester The Big Picture Object Oriented Programming: In this course we began an introduction to programming from an object-oriented approach. Java

More information

Unable To The Artifact From Any Repository Maven-clean-plugin

Unable To The Artifact From Any Repository Maven-clean-plugin Unable To The Artifact From Any Repository Maven-clean-plugin The default behaviour of the plugin is to first resolve the entire dependency tree, Any manually included purge artifacts will be removed from

More information

Section 2: Developer tools and you. Alex Mariakakis (staff-wide)

Section 2: Developer tools and you. Alex Mariakakis (staff-wide) Section 2: Developer tools and you Alex Mariakakis cse331-staff@cs.washington.edu (staff-wide) What is an SSH client? Uses the secure shell protocol (SSH) to connect to a remote computer o Enables you

More information

Content. Development Tools 2(57)

Content. Development Tools 2(57) Development Tools Content Project management and build, Maven Unit testing, Arquillian Code coverage, JaCoCo Profiling, NetBeans Static Analyzer, NetBeans Continuous integration, Hudson Development Tools

More information

Red Hat JBoss Web Server 3.1

Red Hat JBoss Web Server 3.1 Red Hat JBoss Web Server 3.1 Red Hat JBoss Web Server for OpenShift Installing and using Red Hat JBoss Web Server for OpenShift Last Updated: 2018-03-05 Red Hat JBoss Web Server 3.1 Red Hat JBoss Web

More information

Exceptions and Libraries

Exceptions and Libraries Exceptions and Libraries RS 9.3, 6.4 Some slides created by Marty Stepp http://www.cs.washington.edu/143/ Edited by Sarah Heckman 1 Exceptions exception: An object representing an error or unusual condition.

More information

Analysis Tool Project

Analysis Tool Project Tool Overview The tool we chose to analyze was the Java static analysis tool FindBugs (http://findbugs.sourceforge.net/). FindBugs is A framework for writing static analyses Developed at the University

More information

What s new in IBM Operational Decision Manager 8.9 Standard Edition

What s new in IBM Operational Decision Manager 8.9 Standard Edition What s new in IBM Operational Decision Manager 8.9 Standard Edition Release themes User empowerment in the Business Console Improved development and operations (DevOps) features Easier integration with

More information

EUSurvey Installation Guide

EUSurvey Installation Guide EUSurvey Installation Guide Guide to a successful installation of EUSurvey May 20 th, 2015 Version 1.2 (version family) 1 Content 1. Overview... 3 2. Prerequisites... 3 Tools... 4 Java SDK... 4 MySQL Database

More information

Index. Symbols. /**, symbol, 73 >> symbol, 21

Index. Symbols. /**, symbol, 73 >> symbol, 21 17_Carlson_Index_Ads.qxd 1/12/05 1:14 PM Page 281 Index Symbols /**, 73 @ symbol, 73 >> symbol, 21 A Add JARs option, 89 additem() method, 65 agile development, 14 team ownership, 225-226 Agile Manifesto,

More information

UIMA Tools Guide and Reference

UIMA Tools Guide and Reference UIMA Tools Guide and Reference Written and maintained by the Apache UIMA Development Community Version 3.0.0 Copyright 2006, 2018 The Apache Software Foundation License and Disclaimer. The ASF licenses

More information

CS520 Setting Up the Programming Environment for Windows Suresh Kalathur. For Windows users, download the Java8 SDK as shown below.

CS520 Setting Up the Programming Environment for Windows Suresh Kalathur. For Windows users, download the Java8 SDK as shown below. CS520 Setting Up the Programming Environment for Windows Suresh Kalathur 1. Java8 SDK Java8 SDK (Windows Users) For Windows users, download the Java8 SDK as shown below. The Java Development Kit (JDK)

More information

CSE 143: Computer Programming II Summer 2017 HW5: Anagrams (due Thursday, August 3, :30pm)

CSE 143: Computer Programming II Summer 2017 HW5: Anagrams (due Thursday, August 3, :30pm) CSE 143: Computer Programming II Summer 2017 HW5: Anagrams (due Thursday, August 3, 2017 11:30pm) This assignment focuses on recursive backtracking. Turn in the following files using the link on the course

More information

Code::Blocks Student Manual

Code::Blocks Student Manual Code::Blocks Student Manual Lawrence Goetz, Network Administrator Yedidyah Langsam, Professor and Theodore Raphan, Distinguished Professor Dept. of Computer and Information Science Brooklyn College of

More information

Introduction to Programming Using Java (98-388)

Introduction to Programming Using Java (98-388) Introduction to Programming Using Java (98-388) Understand Java fundamentals Describe the use of main in a Java application Signature of main, why it is static; how to consume an instance of your own class;

More information

Red Hat JBoss Developer Studio 10.4 Installation Guide

Red Hat JBoss Developer Studio 10.4 Installation Guide Red Hat JBoss Developer Studio 10.4 Installation Guide Installing Red Hat JBoss Developer Studio Misha Husnain Ali Supriya Takkhi Red Hat Developer Group Documentation Team Red Hat JBoss Developer Studio

More information

Maven in the wild. An introduction to Maven

Maven in the wild. An introduction to Maven Maven in the wild An introduction to Maven Maven gone wild!! An introduction to Maven Presentation Summary An overview of Maven What Maven provides? Maven s principles Maven s benefits Maven s features

More information

Simplified Build Management with Maven

Simplified Build Management with Maven Simplified Build Management with Maven Trasys Greece Kostis Kapelonis 11/06/2010 Menu Kitchen says hi!(motivation) Starters (Maven sample pom) Soup (Maven philosophy) Main dish (Library management) Side

More information

ICOM 4015 Advanced Programming Laboratory. Chapter 1 Introduction to Eclipse, Java and JUnit

ICOM 4015 Advanced Programming Laboratory. Chapter 1 Introduction to Eclipse, Java and JUnit ICOM 4015 Advanced Programming Laboratory Chapter 1 Introduction to Eclipse, Java and JUnit University of Puerto Rico Electrical and Computer Engineering Department by Juan E. Surís 1 Introduction This

More information

Oracle Code Day Hands On Labs (HOL) (Install, Repository, Local Deploy, DevCS, OACCS)

Oracle Code Day Hands On Labs (HOL) (Install, Repository, Local Deploy, DevCS, OACCS) Oracle Code Day Hands On Labs (HOL) (Install, Repository, Local Deploy, DevCS, OACCS) Table of Contents Getting Started...2 Overview...2 Learning Objectives...2 Prerequisites...2 Software for HOL Lab Session...2

More information

Continuous Integration INRIA

Continuous Integration INRIA Vincent Rouvreau - https://sed.saclay.inria.fr February 28, 2017 Contents 1 Preamble To go through this exercise, you will need to install : 1. Git (sudo apt-get install git sudo yum install git) 2. A

More information

Maven 2 & Continuum. by Trygve Laugstøl

Maven 2 & Continuum. by Trygve Laugstøl Maven 2 & Continuum by Trygve Laugstøl Agenda About Maven Maven 2 Highlights Changes The POM Project layout Plugin architecture Continuum About Maven It s a different kind of build

More information

Tutorial 4 Data Persistence in Java

Tutorial 4 Data Persistence in Java TCSS 360: Software Development Institute of Technology and Quality Assurance Techniques University of Washington Tacoma Winter 2017 http://faculty.washington.edu/wlloyd/courses/tcss360 Tutorial 4 Data

More information

QueueBlock, ReversalADT, LinkedList,CustomerAccount, not MaintainCustomerData

QueueBlock, ReversalADT, LinkedList,CustomerAccount, not MaintainCustomerData Naming Conventions Rules Classes Use nouns Use whole words-avoid acronyms and abbreviations (unless the abbreviation is much more widely used than the long form, such as URL or HTML) Begin with upper case

More information

Thomas Pelaia II, Ph.D. XAL Workshop 2012 December 13, 2012 Managed by UT-Battelle for the Department of Energy

Thomas Pelaia II, Ph.D. XAL Workshop 2012 December 13, 2012 Managed by UT-Battelle for the Department of Energy Thomas Pelaia II, Ph.D. XAL Workshop 2012 December 13, 2012 XAL Loose Timeline at SNS 2012 Software Maintenance Neutron Production Operations Software Development Intensity Commissioning Machine Study

More information

UIMA Tools Guide and Reference

UIMA Tools Guide and Reference UIMA Tools Guide and Reference Written and maintained by the Apache UIMA Development Community Version 2.3.0-incubating Copyright 2004, 2006 International Business Machines Corporation Copyright 2006,

More information

Introduction: Manual Testing :

Introduction: Manual Testing : : What is Automation Testing? Use of Automation. Where do we use. Tools that Do Automation. Web Applications vs Standalone Applications. What is selenium? How selenium works. Manual Testing : HTML: Detailed

More information

ASSIGNMENT 5 Objects, Files, and a Music Player

ASSIGNMENT 5 Objects, Files, and a Music Player ASSIGNMENT 5 Objects, Files, and a Music Player COMP-202A, Fall 2009, All Sections Due: Thursday, December 3, 2009 (23:55) You MUST do this assignment individually and, unless otherwise specified, you

More information

... SysML version SNAPSHOT Developer Guide.... Eclipse

... SysML version SNAPSHOT Developer Guide.... Eclipse ... SysML version 0.10.1-SNAPSHOT Developer Guide... Eclipse 2017-01-05 T a b l e o f C o n t e n t s i Table of Contents... 1. Table of Contents...........................................................

More information

ASSIGNMENT 5 Data Structures, Files, Exceptions, and To-Do Lists

ASSIGNMENT 5 Data Structures, Files, Exceptions, and To-Do Lists ASSIGNMENT 5 Data Structures, Files, Exceptions, and To-Do Lists COMP-202B, Winter 2009, All Sections Due: Tuesday, April 14, 2009 (23:55) You MUST do this assignment individually and, unless otherwise

More information

EUSurvey OSS Installation Guide

EUSurvey OSS Installation Guide Prerequisites... 2 Tools... 2 Java 7 SDK... 2 MySQL 5.6 DB and Client (Workbench)... 4 Tomcat 7... 8 Spring Tool Suite... 11 Knowledge... 12 Control System Services... 12 Prepare the Database... 14 Create

More information

Index. Bitwise operations, 131. Cloud, 88, 101

Index. Bitwise operations, 131. Cloud, 88, 101 Index A Analysis, NetBeans batch analyzers, 127 dynamic code analysis, 128 Java 8 lambda expressions, 127 static code analysis definition, 128 FindBugs categories, 144 Inspect & Transform tool, 129 inspections,

More information

Build Tools. Software Engineering SS A tool was needed. Agenda for today. Build tools. Software complexity. Build tools

Build Tools. Software Engineering SS A tool was needed. Agenda for today. Build tools. Software complexity. Build tools Agenda for today Build Tools Software Engineering SS 2007 Build Tools Available 4. Presentation Objectives - Use modern build systems for software Software Engineering, lecture #: Topic 2 Software complexity

More information

Javadoc. Computer Science and Engineering College of Engineering The Ohio State University. Lecture 7

Javadoc. Computer Science and Engineering College of Engineering The Ohio State University. Lecture 7 Javadoc Computer Science and Engineering College of Engineering The Ohio State University Lecture 7 Motivation Over the lifetime of a project, it is easy for documentation and implementation to diverge

More information

MAVEN MOCK TEST MAVEN MOCK TEST IV

MAVEN MOCK TEST MAVEN MOCK TEST IV http://www.tutorialspoint.com MAVEN MOCK TEST Copyright tutorialspoint.com This section presents you various set of Mock Tests related to Maven. You can download these sample mock tests at your local machine

More information

Build Tools. Software Engineering SS 2007

Build Tools. Software Engineering SS 2007 Build Tools Software Engineering SS 2007 Agenda for today Build Tools 1. Motivation 2. Key Concepts 3. Tools Available 4. Presentation 5. Discussion Objectives - Use modern build systems for software Software

More information

Oracle IVR Integrator

Oracle IVR Integrator Oracle IVR Integrator Implementation Guide Release 11i for Windows NT July 2001 Part No. A87492-03 1 Implementing Oracle IVR Integrator This topic group provides general descriptions of the setup and configuration

More information

Problem Set 0. General Instructions

Problem Set 0. General Instructions CS246: Mining Massive Datasets Winter 2014 Problem Set 0 Due 9:30am January 14, 2014 General Instructions This homework is to be completed individually (no collaboration is allowed). Also, you are not

More information

QUIZ on Ch.5. Why is it sometimes not a good idea to place the private part of the interface in a header file?

QUIZ on Ch.5. Why is it sometimes not a good idea to place the private part of the interface in a header file? QUIZ on Ch.5 Why is it sometimes not a good idea to place the private part of the interface in a header file? Example projects where we don t want the implementation visible to the client programmer: The

More information

Sentinel RMS SDK v9.3.0

Sentinel RMS SDK v9.3.0 Sentinel RMS SDK v9.3.0 Release Notes for Solaris Sparc (32-bit and 64-bit) Release Version: v9.3.0 Document Number: 007-013332-001, D Release Date: June, 2018 Contents Product Description 3 About This

More information

This cheat sheet is aimed at people with some experience in eclipse but who may not be aware of many of its features.

This cheat sheet is aimed at people with some experience in eclipse but who may not be aware of many of its features. ECLIPSE CHEAT SHEET This cheat sheet is aimed at people with some experience in eclipse but who may not be aware of many of its features. SHORTCUTS These are some of the most useful shortcuts in eclipse.

More information

Getting started with Geomajas. Geomajas Developers and Geosparc

Getting started with Geomajas. Geomajas Developers and Geosparc Getting started with Geomajas Geomajas Developers and Geosparc Getting started with Geomajas by Geomajas Developers and Geosparc 1.12.0-SNAPSHOT Copyright 2010-2014 Geosparc nv Abstract Documentation for

More information

Productivity! Feature Matrix

Productivity! Feature Matrix Features Code Generation Tools JBuilderX and Productivity! Std Pro JBuilderX Delegate.Insight - provides an easy way to generate methods, which implementations are delegated to another object (delegate).

More information

Snapshot Best Practices: Continuous Integration

Snapshot Best Practices: Continuous Integration Snapshot Best Practices: Continuous Integration Snapshot provides sophisticated and flexible tools for continuously keeping Salesforce accounts, developer projects, and content repositories synchronized.

More information

Sonatype CLM Enforcement Points - Nexus. Sonatype CLM Enforcement Points - Nexus

Sonatype CLM Enforcement Points - Nexus. Sonatype CLM Enforcement Points - Nexus Sonatype CLM Enforcement Points - Nexus i Sonatype CLM Enforcement Points - Nexus Sonatype CLM Enforcement Points - Nexus ii Contents 1 Introduction 1 2 Sonatype CLM for Repository Managers 2 3 Nexus Pro

More information

Software Development Kit

Software Development Kit Software Development Kit Informatica MDM - Product 360 Version: 8.1.1 07/04/2018 English 1 Table of Contents 1 Table of Contents...2 2 SDK Package...3 3 Prerequisites...3 3.1 Database...3 3.2 Java Development

More information

ROS Qt Creator Plug-in. Release

ROS Qt Creator Plug-in. Release ROS Qt Creator Plug-in Release Mar 18, 2018 Contents 1 Installation 1 2 FAQ 13 3 Users Help 15 4 Developers Help 23 5 Video Tutorials 25 i ii CHAPTER 1 Installation 1.1 How to Install (Users) This wiki

More information

How to Setup a Development Environment for ONAP

How to Setup a Development Environment for ONAP How to Setup a Development Environment for ONAP Victor Morales December 12 th, 2017 Agenda Problem statement Proposed solution ONAP on Vagrant - Installation process Key features - Why Vagrant? - Synced

More information

CS 351 Design of Large Programs Coding Standards

CS 351 Design of Large Programs Coding Standards CS 351 Design of Large Programs Coding Standards Brooke Chenoweth University of New Mexico Spring 2018 CS-351 Coding Standards All projects and labs must follow the great and hallowed CS-351 coding standards.

More information

CSE 332: Data Structures and Parallelism Autumn 2017 Setting Up Your CSE 332 Environment In this document, we will provide information for setting up Eclipse for CSE 332. The first s ection covers using

More information

Perceptive Connect Runtime

Perceptive Connect Runtime Perceptive Connect Runtime Developer's Guide Version: 1.4.x Written by: Product Knowledge, R&D Date: August 2016 2016 Lexmark. All rights reserved. Lexmark is a trademark of Lexmark International, Inc.,

More information

CS506 Web Design & Development Final Term Solved MCQs with Reference

CS506 Web Design & Development Final Term Solved MCQs with Reference with Reference I am student in MCS (Virtual University of Pakistan). All the MCQs are solved by me. I followed the Moaaz pattern in Writing and Layout this document. Because many students are familiar

More information

TIBCO ActiveMatrix BusinessWorks Plug-in for sftp User's Guide

TIBCO ActiveMatrix BusinessWorks Plug-in for sftp User's Guide TIBCO ActiveMatrix BusinessWorks Plug-in for sftp User's Guide Software Release 6.1 January 2016 Two-Second Advantage 2 Important Information SOME TIBCO SOFTWARE EMBEDS OR BUNDLES OTHER TIBCO SOFTWARE.

More information

ASSIGNMENT 5 Objects, Files, and More Garage Management

ASSIGNMENT 5 Objects, Files, and More Garage Management ASSIGNMENT 5 Objects, Files, and More Garage Management COMP-202B, Winter 2010, All Sections Due: Wednesday, April 14, 2009 (23:55) You MUST do this assignment individually and, unless otherwise specified,

More information

Objectives. Problem Solving. Introduction. An overview of object-oriented concepts. Programming and programming languages An introduction to Java

Objectives. Problem Solving. Introduction. An overview of object-oriented concepts. Programming and programming languages An introduction to Java Introduction Objectives An overview of object-oriented concepts. Programming and programming languages An introduction to Java 1-2 Problem Solving The purpose of writing a program is to solve a problem

More information

Adding Existing Source Code in NetBeans CS288, Autumn 2005 Lab 002

Adding Existing Source Code in NetBeans CS288, Autumn 2005 Lab 002 Adding Existing Source Code in NetBeans CS288, Autumn 2005 Lab 002 Purpose This document will show how to incorporate existing source code within a NetBeans project. It will also introduce the concept

More information

This checklist tells you how to create accounts and obtain permissions needed by Hive contributors. See the Hive website for additional information.

This checklist tells you how to create accounts and obtain permissions needed by Hive contributors. See the Hive website for additional information. HowToContribute How to Contribute to Apache Hive This page describes the mechanics of how to contribute software to Apache Hive. For ideas about what you might contribute, please see open tickets in Jira.

More information

Explaining & Accessing the SPDX License List

Explaining & Accessing the SPDX License List Explaining & Accessing the SPDX License List SOFTWARE PACKAGE DATA EXCHANGE Gary O Neall Source Auditor Inc. Jilayne Lovejoy ARM August, 2014 Copyright Linux Foundation 2014 1 The SPDX License List 2 The

More information

Repository Management and Sonatype Nexus. Repository Management and Sonatype Nexus

Repository Management and Sonatype Nexus. Repository Management and Sonatype Nexus Repository Management and Sonatype Nexus i Repository Management and Sonatype Nexus Repository Management and Sonatype Nexus ii Contents 1 Objectives 1 2 Development Today 1 3 But What Is A Component?

More information

COMP 1210 Documentation Guidelines Page 1 of 7. Class documentation (Chapter 1):

COMP 1210 Documentation Guidelines Page 1 of 7. Class documentation (Chapter 1): COMP 1210 Documentation Guidelines Page 1 of 7 Class documentation (Chapter 1): Every class in your program should have a Javadoc tag that specifies the programs purpose, the project number, the author,

More information

Lab 1: First Steps in C++ - Eclipse

Lab 1: First Steps in C++ - Eclipse Lab 1: First Steps in C++ - Eclipse Step Zero: Select workspace 1. Upon launching eclipse, we are ask to chose a workspace: 2. We select a new workspace directory (e.g., C:\Courses ): 3. We accept the

More information

BUILD AND DEPLOY SOA PROJECTS FROM DEVELOPER CLOUD SERVICE TO ORACLE SOA CLOUD SERVICE

BUILD AND DEPLOY SOA PROJECTS FROM DEVELOPER CLOUD SERVICE TO ORACLE SOA CLOUD SERVICE BUILD AND DEPLOY SOA PROJECTS FROM DEVELOPER CLOUD SERVICE TO ORACLE SOA CLOUD SERVICE Ashwini Sharma 1 CONTENTS 1. Introduction... 2 2 Prerequisites... 2 3 Patch the SOA Server Installation... 2 4. Use

More information

Analysiss of Software Artifacts

Analysiss of Software Artifacts Analysiss of Software Artifacts : Tool Project 6 th April 2009 The Mappers António Alvim Filipe Pontes Paulo Casanova Pedro Mota Pedro Saraiva Tool Project 1 Introduction...... 3 Tool...... 4 Projects......

More information

Project 1 Computer Science 2334 Spring 2016 This project is individual work. Each student must complete this assignment independently.

Project 1 Computer Science 2334 Spring 2016 This project is individual work. Each student must complete this assignment independently. Project 1 Computer Science 2334 Spring 2016 This project is individual work. Each student must complete this assignment independently. User Request: Create a simple movie data system. Milestones: 1. Use

More information

Intro to Linux & Command Line

Intro to Linux & Command Line Intro to Linux & Command Line Based on slides from CSE 391 Edited by Andrew Hu slides created by Marty Stepp, modified by Jessica Miller & Ruth Anderson http://www.cs.washington.edu/391/ 1 Lecture summary

More information

vrealize Code Stream Plug-In SDK Development Guide

vrealize Code Stream Plug-In SDK Development Guide vrealize Code Stream Plug-In SDK Development Guide vrealize Code Stream 2.2 This document supports the version of each product listed and supports all subsequent versions until the document is replaced

More information

juddi Developer Guide

juddi Developer Guide juddi 3.0 - Developer Guide Developer Guide ASF-JUDDI-DEVGUIDE-16/04/09 Contents Table of Contents Contents... 2 About This Guide... 3 What This Guide Contains... 3 Audience... 3 Prerequisites... 3 Organization...

More information

Please see the docs for latest release in 1.99.* Some of the information below might be outdated

Please see the docs for latest release in 1.99.*  Some of the information below might be outdated Setting up Sqoop 2 Building from sources Setting up a build environment with Eclipse Setting up the Code Formatter Quick commands to compile and run tests Creating Sqoop binaries Installing Sqoop2 on remote

More information

Tips from the experts: How to waste a lot of time on this assignment

Tips from the experts: How to waste a lot of time on this assignment Com S 227 Spring 2018 Assignment 1 100 points Due Date: Friday, September 14, 11:59 pm (midnight) Late deadline (25% penalty): Monday, September 17, 11:59 pm General information This assignment is to be

More information

Red Hat JBoss Fuse 6.1

Red Hat JBoss Fuse 6.1 Red Hat JBoss Fuse 6.1 Tooling Installation Guide Installing Red Hat JBoss Fuse ToolingRed Hat Fuse IDE Last Updated: 2017-10-16 Red Hat JBoss Fuse 6.1 Tooling Installation Guide Installing Red Hat JBoss

More information

Oracle Code Day Hands On Labs HOL

Oracle Code Day Hands On Labs HOL Oracle Code Day Hands On Labs HOL Overview This lab guides you through deploying and running the BlackJack application "locally" via a Tomcat server that is spawned by NetBeans. After successfully running

More information

Denn n i n s i s L und n b d erg r

Denn n i n s i s L und n b d erg r Dennis Lundberg Agenda Creating a site using Maven involves making a lot of choices. Some of them are obvious, like choosing a suitable document format, while others are more subtle. This presentation

More information

Red Hat JBoss Developer Studio 11.3

Red Hat JBoss Developer Studio 11.3 Red Hat JBoss Developer Studio 11.3 Installation Guide Installing Red Hat JBoss Developer Studio Last Updated: 2018-05-01 Red Hat JBoss Developer Studio 11.3 Installation Guide Installing Red Hat JBoss

More information

Java Coding style guide 1. Java. Coding Style Guide. (July 2015)

Java Coding style guide 1. Java. Coding Style Guide. (July 2015) Java Coding style guide 1 Java Coding Style Guide (July 2015) This coding style guide provides advices how to design and document your software so that your source code is easier to read, to debug, to

More information

ActiveSpaces Transactions. Quick Start Guide. Software Release Published May 25, 2015

ActiveSpaces Transactions. Quick Start Guide. Software Release Published May 25, 2015 ActiveSpaces Transactions Quick Start Guide Software Release 2.5.0 Published May 25, 2015 Important Information SOME TIBCO SOFTWARE EMBEDS OR BUNDLES OTHER TIBCO SOFTWARE. USE OF SUCH EMBEDDED OR BUNDLED

More information

Checking Current Code Coverage

Checking Current Code Coverage Junit Tests Checking Current Code Coverage We use onap Sonar to track code coverage (sonar.onap.org) To see the appc coverage, click on the appc project on the front page (make sure you choose the most

More information

CSCIE-275. Guide for Chief Programmers

CSCIE-275. Guide for Chief Programmers CSCIE-275 Guide for Chief Programmers Serguei Khramtchenko Apr 2006 1 1. Preface... 3 2. Design walkthrough meeting... 4 2.1 Choosing features for an iteration... 4 2.2 Preparing design for walkthrough

More information

Absolute C++ Walter Savitch

Absolute C++ Walter Savitch Absolute C++ sixth edition Walter Savitch Global edition This page intentionally left blank Absolute C++, Global Edition Cover Title Page Copyright Page Preface Acknowledgments Brief Contents Contents

More information

Developing with VMware vcenter Orchestrator. vrealize Orchestrator 5.5.1

Developing with VMware vcenter Orchestrator. vrealize Orchestrator 5.5.1 Developing with VMware vcenter Orchestrator vrealize Orchestrator 5.5.1 You can find the most up-to-date technical documentation on the VMware website at: https://docs.vmware.com/ If you have comments

More information