GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — new code · molakahari/samplejavaapp@ddd5a27

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • README.md
  • addressbook_screenshot.png
  • build.properties
  • build.xml
  • pom.xml
  • src
    • main
      • java/com/devopsdemo
        • helper
          • GenericResourceBundle.java
        • tutorial/addressbook
          • AddressbookUI.java
          • ContactForm.java
          • backend
            • Contact.java
            • ContactService.java
        • utilities
          • CaseInsensitiveComparator.java
          • GenericComparator.java
          • HexAsciiConvertor.java
          • LoggerStackTraceUtil.java
          • PrepareTargetMethod.java
          • PropertyHelper.java
          • PropertyLoader.java
          • StringUtilities.java
      • pmd
        • pmd.xsl
        • ruleset_basics.xml
        • ruleset_j2ee.xml
        • ruleset_security.xml
    • test
      • java/com/devopsdemo/utilities
        • ExceptionThrower.java
        • TestGenericComparator.java
        • TestHexAsciiConversion.java
        • TestLogger.java
        • UnitDTO.java
      • resources
        • Dateformat.properties
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎README.md‎

Copy file name to clipboard
+68Lines changed: 68 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
Addressbook Tutorial V2.0
2+
====================
3+
4+
This tutorial teaches you some of the basic concepts in [Vaadin Framework](https://vaadin.com). It is meant to be
5+
a fast read for learning how to get started - not an example on how application should be
6+
designed. Please note this example uses and requires Java 8 to work.
7+
8+
![Addressbook Screenshot](addressbook_screenshot.png "Addressbook Screenshot")
9+
10+
11+
Running the example from the command line
12+
-------------------
13+
```
14+
$ mvn jetty:run
15+
```
16+
17+
Open [http://localhost:8080/](http://localhost:8080/)
18+
19+
20+
Importing in IntelliJ IDEA 14
21+
--------------------
22+
These instructions were tested on IntelliJ IDEA 14 CE. You can get it from https://www.jetbrains.com/idea/
23+
24+
To get the project up and running in IDEA, do:
25+
- File -> New -> Project from Version Control -> Git
26+
- The URL to use is https://github.com/vaadin/addressbook.git
27+
- If you get a message about "Non-managed pom.xml file found". Choose "Add as Maven Project"
28+
- If you get a message about no JDK or SDK being selected. Choose "Configure" and select your installed JDK. You can also set the JDK using File -> Project Structure
29+
- To start the project, find the "Maven Projects" tab on the right hand side of the screen and navigate to
30+
- Vaadin Web Application -> Plugins -> jetty -> jetty:run
31+
- Click the play button or right click and select Run (Select Debug instead to run in debug mode)
32+
33+
You should now have a Jetty server running on localhost:8080. Navigate to http://localhost:8080 to play with the application
34+
35+
Importing in NetBeans 8
36+
--------------------
37+
These instructions were tested on NetBeans 8.0.2. You can get it from https://www.netbeans.org
38+
39+
To checkout and run the project in NetBeans, do:
40+
- Team -> Git -> Clone
41+
- Set repository URL to https://github.com/vaadin/addressbook.git
42+
- Finish
43+
- Right click the imported project (Vaadin Addressbook Application) and select Run
44+
- Select GlassFish Server 4.1 -> Remember in Current IDE Session -> OK
45+
46+
You should now have a GlassFish server running on localhost:8080 and a browser tab should also be automatically opened with this location
47+
48+
Importing in Eclipse
49+
--------------------
50+
These instructions were tested on Eclipse IDE for Java EE Developers Luna SR2. You can get it from http://eclipse.org/downloads/
51+
52+
To checkout and run the project in Eclipse, do:
53+
- File -> Import...
54+
- Check out Maven Projects from SCM
55+
- Choose Git from SCM menu
56+
- If you do not see "Git" in the SCM menu, click "Find more SCM connectors in the m2e Marketplace" and install "m2e-egit". Restart Eclipse and start over.
57+
- Set the repository URL to https://github.com/vaadin/addressbook.git
58+
- Right click the imported "addressbook" and choose Run As -> Maven Build...
59+
- Set the goal to "jetty:run" and click "Run"
60+
61+
You should now have a Jetty server running on localhost:8080. Navigate to [http://localhost:8080/](http://localhost:8080/) to play with the application
62+
63+
To use the built in server adapters of Eclipse, instead of doing "Run As -> Maven Build..." you can do
64+
- Run As -> Run on Server
65+
- Select the server you want to run on, e.g. Apache Tomcat 8 and click ok
66+
- *Do not use the suggested J2EE Preview server* as it is outdated, deprecated and does not support Servlet 3, which is required for this application
67+
68+
*** End of documentation
Collapse file

‎addressbook_screenshot.png‎

Copy file name to clipboard
114 KB
  • Display the source diff
  • Display the rich diff
Loading
Collapse file

‎build.properties‎

Copy file name to clipboard
+60Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
2+
# Copyright 2015, Seshagiri Sriram. All rights reserved.
3+
#
4+
# Created on: Feb 02, 2015, Seshagiri Sriram
5+
# Updated: June 20,2016 fixed some property paths..
6+
# File Name : build.properties
7+
#
8+
# ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
9+
# ****** NOTE: ALL PARAMETERS AND VALUES IN THIS FILE ARE CASE SENSITIVE ******
10+
# ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
11+
# Properties file
12+
# Modify the following properties before calling the ant build
13+
#
14+
# This build drops all the existing directories (mentioned in this properties file) before creating them
15+
# The JAR file structure created by this build is
16+
# |-- ReportGenerator.jar This is defined in build.xml
17+
# | |-- META-INF
18+
# |-- lib Third party jars
19+
# |-- All property files go in here.....
20+
#
21+
# ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
22+
# Build Details
23+
# ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
24+
# The below are general for *** ALL *** Projects and defined inside build.xml or passed via -D options. DO NOT CHANGE
25+
# ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
26+
# |Property Description
27+
# ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
28+
# |build.basesrcdir Location where the project is found. Passed to this script via -Dbasesrcdir=<value>
29+
# |maven.build.finalName Final name - hardcoded into build.xml e.g. X-1.0.0-SNAPSHOT.jar
30+
# |maven.build.dir Location relative to buildsrcdir where build will be done. usually target
31+
# |maven.build.outputDir Usually target/classes.
32+
# |maven.build.srcdir location of source under buid.basesrcdir
33+
# |maven.build.resourceDir location of resources under build.basesrcdir
34+
# |maven.build.testDir Location of test classes
35+
# |maven.build.testResourceDir Location of test resources
36+
# |maven.build.testOutputDir Location of test class compilation
37+
# |maven.test.reports Where test reports (from JUNIT) will be located.
38+
# |maven.build.pmddir Location where PMD rules and XSL will belocated.
39+
# |maven.reporting.outputDirectory Location of reports from PMD
40+
# |project.3rdpartylibdir lib under build.basesrcdir
41+
# |build.type dev,qa, or prod. passed via -Dbuildtype={dev|qa|prod}
42+
# |environment.type.default Value if build.type is not passed. defaults to dev -- DO NOT CHANGE
43+
# ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
44+
45+
# ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
46+
# Per User configuration..... Change for local environmnent
47+
# ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
48+
#
49+
# ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
50+
ant.home=c:/Apps/ant
51+
project.build.outputDirectory=${maven.build.outputDir}
52+
project.build.directory=${maven.build.dir}
53+
maven.repo.local=e\:/repos
54+
maven.settings.offline=false
55+
project.build.sourceEncoding=UTF-8
56+
maven.settings.interactiveMode=false
57+
maven.build.version=V1.2
58+
maven.test.skip=false
59+
pmd.installpath=c:/Apps/pmd-bin-5.2.3/lib
60+
# ----------------------------------------------------------------------------------------------------------------------------------------------------------------------

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.