diff --git a/.github/workflows/master_upasna.yml b/.github/workflows/master_upasna.yml new file mode 100644 index 00000000..ffe98104 --- /dev/null +++ b/.github/workflows/master_upasna.yml @@ -0,0 +1,32 @@ +# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy +# More GitHub Actions for Azure: https://github.com/Azure/actions + +name: Build and deploy WAR app to Azure Web App - upasna + +on: + push: + branches: + - master + +jobs: + build-and-deploy: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@master + + - name: Set up Java version + uses: actions/setup-java@v1 + with: + java-version: '11' + + - name: Build with Maven + run: mvn clean install + + - name: Deploy to Azure Web App + uses: azure/webapps-deploy@v2 + with: + app-name: 'upasna' + slot-name: 'production' + publish-profile: ${{ secrets.AzureAppService_PublishProfile_9edfb83f780b4e65bb1ce6c38404b4c1 }} + package: '${{ github.workspace }}/target/*.war' \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index f911b820..e0b2198f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,14 @@ -FROM maven:3.3-jdk-8 as builder -COPY . /usr/src/mymaven/ -WORKDIR /usr/src/mymaven/ -RUN mvn clean package - -FROM tomcat:7-jre7-alpine -MAINTAINER "opstree " -RUN rm -rf /usr/local/tomcat/webapps/* -COPY --from=builder /usr/src/mymaven/target/Spring3HibernateApp.war /usr/local/tomcat/webapps/ROOT.war -WORKDIR /usr/local/tomcat/webapps/ -EXPOSE 8080 +FROM wordpress:latest + +MAINTAINER upasna + +ENV WORDPRESS_DB_HOST: db:3306 + +ENV WORDPRESS_DB_USER: wordpress + +ENV WORDPRESS_DB_PASSWORD: wordpress + +ENV WORDPRESS_DB_NAME: wordpress + + + diff --git a/Dockerfile.mysql b/Dockerfile.mysql new file mode 100644 index 00000000..5275e3d8 --- /dev/null +++ b/Dockerfile.mysql @@ -0,0 +1,6 @@ +FROM mysql:5.7 +MAINTAINER upasna +ENV MYSQL_ROOT_PASSWORD=wordpress +ENV MYSQL_DATABASE=wordpress +ENV MYSQL_USER=wordpress +ENV MYSQL_PASSWORD=wordpress diff --git a/Untitled-1.md b/Untitled-1.md new file mode 100644 index 00000000..d2de88c3 --- /dev/null +++ b/Untitled-1.md @@ -0,0 +1,3 @@ +Provisioning:- +**Provision application servers, for example - java, tomcat are required for a java project.** +![](./screenshots/image1.png) diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 00000000..03897a82 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,22 @@ +# Maven +# Build your Java project and run tests with Apache Maven. +# Add steps that analyze code, save build artifacts, deploy, and more: +# https://docs.microsoft.com/azure/devops/pipelines/languages/java + +trigger: +- master + +pool: + vmImage: 'ubuntu-latest' + +steps: +- task: Maven@3 + inputs: + mavenPomFile: 'pom.xml' + mavenOptions: '-Xmx3072m' + javaHomeOption: 'JDKVersion' + jdkVersionOption: '1.8' + jdkArchitectureOption: 'x64' + publishJUnitResults: true + testResultsFiles: '**/surefire-reports/TEST-*.xml' + goals: 'package' diff --git a/hosts b/hosts new file mode 100644 index 00000000..3358714a --- /dev/null +++ b/hosts @@ -0,0 +1,2 @@ +[vagrant] +root ansible_host=192.168.0.23 ansible_ssh_pass=root ansible_ssh_user=root diff --git a/install.yml b/install.yml new file mode 100644 index 00000000..71eef1c1 --- /dev/null +++ b/install.yml @@ -0,0 +1,66 @@ +--- +- name: java and tomcat installation + hosts: vagrant + become: true + tasks: + + - name: Install java + apt: + name: default-jdk + + - name: adding tomcat group + group: + name: tomcat + - name: adding tomcat user + user: + name: tomcat + group: tomcat + home: /opt/tomcat + shell: /bin/false + - name: downloading from web & unarchive the file + unarchive: + src: "{{url}}" + dest: /opt/tomcat + remote_src: yes + extra_opts: [--strip-components=1] + vars: + url: http://apachemirror.wuchna.com/tomcat/tomcat-8/v8.5.53/bin/apache-tomcat-8.5.53.tar.gz + - name: listing + command: pwd + register: result + - debug: + msg: "{{result.stdout_lines}}" + + - name: Change file permissions + file: + path: /opt/tomcat + mode: '0755' + - name: Changing ownership + file: + path: /opt/tomcat + state: directory + recurse: yes + owner: tomcat + group: tomcat + - name: Set JAVA_HOME + shell: sudo echo "export JAVA_HOME=/usr/lib/jvm/java-1.11.0-openjdk-amd64" >> ~/.bashrc + - name: Source Bashrc + action: shell . ~/.bashrc + + - name: listing + command: pwd + register: result + - debug: + msg: "{{result.stdout_lines}}" + + - name: service file of tomcat is copied to the target + copy: + src: /root/tomcat.service + dest: /etc/systemd/system/ + remote_src: yes + - name: starting the service of tomcat8 + systemd: + name: tomcat + state: started + enabled: true + daemon_reload: true diff --git a/inventory1 b/inventory1 new file mode 100644 index 00000000..613f238a --- /dev/null +++ b/inventory1 @@ -0,0 +1,3 @@ +192.168.16.15 ansible_ssh_private_key_file=/tmp/ubuntu.pem ansible_ssh_user=ec2-user +192.168.8.119 ansible_ssh_private_key_file=/tmp/ubuntu1.pem ansible_ssh_user=ec2-user + diff --git a/java/.travis.yml b/java/.travis.yml new file mode 100644 index 00000000..36bbf620 --- /dev/null +++ b/java/.travis.yml @@ -0,0 +1,29 @@ +--- +language: python +python: "2.7" + +# Use the new container infrastructure +sudo: false + +# Install ansible +addons: + apt: + packages: + - python-pip + +install: + # Install ansible + - pip install ansible + + # Check ansible version + - ansible --version + + # Create ansible.cfg with correct roles_path + - printf '[defaults]\nroles_path=../' >ansible.cfg + +script: + # Basic role syntax check + - ansible-playbook tests/test.yml -i tests/inventory --syntax-check + +notifications: + webhooks: https://galaxy.ansible.com/api/v1/notifications/ \ No newline at end of file diff --git a/java/README.md b/java/README.md new file mode 100644 index 00000000..225dd44b --- /dev/null +++ b/java/README.md @@ -0,0 +1,38 @@ +Role Name +========= + +A brief description of the role goes here. + +Requirements +------------ + +Any pre-requisites that may not be covered by Ansible itself or the role should be mentioned here. For instance, if the role uses the EC2 module, it may be a good idea to mention in this section that the boto package is required. + +Role Variables +-------------- + +A description of the settable variables for this role should go here, including any variables that are in defaults/main.yml, vars/main.yml, and any variables that can/should be set via parameters to the role. Any variables that are read from other roles and/or the global scope (ie. hostvars, group vars, etc.) should be mentioned here as well. + +Dependencies +------------ + +A list of other roles hosted on Galaxy should go here, plus any details in regards to parameters that may need to be set for other roles, or variables that are used from other roles. + +Example Playbook +---------------- + +Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too: + + - hosts: servers + roles: + - { role: username.rolename, x: 42 } + +License +------- + +BSD + +Author Information +------------------ + +An optional section for the role authors to include contact information, or a website (HTML is not allowed). diff --git a/java/defaults/main.yml b/java/defaults/main.yml new file mode 100644 index 00000000..5893437b --- /dev/null +++ b/java/defaults/main.yml @@ -0,0 +1,2 @@ +--- +# defaults file for java \ No newline at end of file diff --git a/java/handlers/main.yml b/java/handlers/main.yml new file mode 100644 index 00000000..4ad155aa --- /dev/null +++ b/java/handlers/main.yml @@ -0,0 +1,2 @@ +--- +# handlers file for java \ No newline at end of file diff --git a/java/meta/main.yml b/java/meta/main.yml new file mode 100644 index 00000000..227ad9c3 --- /dev/null +++ b/java/meta/main.yml @@ -0,0 +1,53 @@ +galaxy_info: + author: your name + description: your role description + company: your company (optional) + + # If the issue tracker for your role is not on github, uncomment the + # next line and provide a value + # issue_tracker_url: http://example.com/issue/tracker + + # Choose a valid license ID from https://spdx.org - some suggested licenses: + # - BSD-3-Clause (default) + # - MIT + # - GPL-2.0-or-later + # - GPL-3.0-only + # - Apache-2.0 + # - CC-BY-4.0 + license: license (GPL-2.0-or-later, MIT, etc) + + min_ansible_version: 2.9 + + # If this a Container Enabled role, provide the minimum Ansible Container version. + # min_ansible_container_version: + + # + # Provide a list of supported platforms, and for each platform a list of versions. + # If you don't wish to enumerate all versions for a particular platform, use 'all'. + # To view available platforms and versions (or releases), visit: + # https://galaxy.ansible.com/api/v1/platforms/ + # + # platforms: + # - name: Fedora + # versions: + # - all + # - 25 + # - name: SomePlatform + # versions: + # - all + # - 1.0 + # - 7 + # - 99.99 + + galaxy_tags: [] + # List tags for your role here, one per line. A tag is a keyword that describes + # and categorizes the role. Users find roles by searching for tags. Be sure to + # remove the '[]' above, if you add tags to this list. + # + # NOTE: A tag is limited to a single word comprised of alphanumeric characters. + # Maximum 20 tags per role. + +dependencies: [] + # List your role dependencies here, one per line. Be sure to remove the '[]' above, + # if you add dependencies to this list. + \ No newline at end of file diff --git a/java/tasks/main.yml b/java/tasks/main.yml new file mode 100644 index 00000000..b2312a69 --- /dev/null +++ b/java/tasks/main.yml @@ -0,0 +1,29 @@ +--- +# tasks file for java + - name: Install java + yum: + name: java-1.8.0-openjdk-devel + state: present + become: yes + when: ansible_facts['distribution'] == "CentOS" + + + - name: Install java + apt: + name: default-jdk + state: present + become: yes + when: ansible_facts['distribution'] == "Ubuntu" + + + + - name: Set JAVA_HOME + shell: sudo echo "export JAVA_HOME=/usr/lib/jvm/java-1.11.0-openjdk-amd64" >> ~/.bashrc + + + + - name: Source Bashrc + action: shell . ~/.bashrc +# shell: source ~/.bashrc + + diff --git a/java/tests/inventory b/java/tests/inventory new file mode 100644 index 00000000..878877b0 --- /dev/null +++ b/java/tests/inventory @@ -0,0 +1,2 @@ +localhost + diff --git a/java/tests/test.yml b/java/tests/test.yml new file mode 100644 index 00000000..4e358304 --- /dev/null +++ b/java/tests/test.yml @@ -0,0 +1,5 @@ +--- +- hosts: localhost + remote_user: root + roles: + - java \ No newline at end of file diff --git a/java/vars/main.yml b/java/vars/main.yml new file mode 100644 index 00000000..14b82bd8 --- /dev/null +++ b/java/vars/main.yml @@ -0,0 +1,2 @@ +--- +# vars file for java \ No newline at end of file diff --git a/jen_roles/inventory b/jen_roles/inventory new file mode 100644 index 00000000..6a1e2abe --- /dev/null +++ b/jen_roles/inventory @@ -0,0 +1,2 @@ +[nginx1] +root ansible_host=172.16.119.132 ansible_user=root diff --git a/jen_roles/java/.travis.yml b/jen_roles/java/.travis.yml new file mode 100644 index 00000000..36bbf620 --- /dev/null +++ b/jen_roles/java/.travis.yml @@ -0,0 +1,29 @@ +--- +language: python +python: "2.7" + +# Use the new container infrastructure +sudo: false + +# Install ansible +addons: + apt: + packages: + - python-pip + +install: + # Install ansible + - pip install ansible + + # Check ansible version + - ansible --version + + # Create ansible.cfg with correct roles_path + - printf '[defaults]\nroles_path=../' >ansible.cfg + +script: + # Basic role syntax check + - ansible-playbook tests/test.yml -i tests/inventory --syntax-check + +notifications: + webhooks: https://galaxy.ansible.com/api/v1/notifications/ \ No newline at end of file diff --git a/jen_roles/java/README.md b/jen_roles/java/README.md new file mode 100644 index 00000000..225dd44b --- /dev/null +++ b/jen_roles/java/README.md @@ -0,0 +1,38 @@ +Role Name +========= + +A brief description of the role goes here. + +Requirements +------------ + +Any pre-requisites that may not be covered by Ansible itself or the role should be mentioned here. For instance, if the role uses the EC2 module, it may be a good idea to mention in this section that the boto package is required. + +Role Variables +-------------- + +A description of the settable variables for this role should go here, including any variables that are in defaults/main.yml, vars/main.yml, and any variables that can/should be set via parameters to the role. Any variables that are read from other roles and/or the global scope (ie. hostvars, group vars, etc.) should be mentioned here as well. + +Dependencies +------------ + +A list of other roles hosted on Galaxy should go here, plus any details in regards to parameters that may need to be set for other roles, or variables that are used from other roles. + +Example Playbook +---------------- + +Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too: + + - hosts: servers + roles: + - { role: username.rolename, x: 42 } + +License +------- + +BSD + +Author Information +------------------ + +An optional section for the role authors to include contact information, or a website (HTML is not allowed). diff --git a/jen_roles/java/defaults/main.yml b/jen_roles/java/defaults/main.yml new file mode 100644 index 00000000..5893437b --- /dev/null +++ b/jen_roles/java/defaults/main.yml @@ -0,0 +1,2 @@ +--- +# defaults file for java \ No newline at end of file diff --git a/jen_roles/java/handlers/main.yml b/jen_roles/java/handlers/main.yml new file mode 100644 index 00000000..4ad155aa --- /dev/null +++ b/jen_roles/java/handlers/main.yml @@ -0,0 +1,2 @@ +--- +# handlers file for java \ No newline at end of file diff --git a/jen_roles/java/meta/main.yml b/jen_roles/java/meta/main.yml new file mode 100644 index 00000000..227ad9c3 --- /dev/null +++ b/jen_roles/java/meta/main.yml @@ -0,0 +1,53 @@ +galaxy_info: + author: your name + description: your role description + company: your company (optional) + + # If the issue tracker for your role is not on github, uncomment the + # next line and provide a value + # issue_tracker_url: http://example.com/issue/tracker + + # Choose a valid license ID from https://spdx.org - some suggested licenses: + # - BSD-3-Clause (default) + # - MIT + # - GPL-2.0-or-later + # - GPL-3.0-only + # - Apache-2.0 + # - CC-BY-4.0 + license: license (GPL-2.0-or-later, MIT, etc) + + min_ansible_version: 2.9 + + # If this a Container Enabled role, provide the minimum Ansible Container version. + # min_ansible_container_version: + + # + # Provide a list of supported platforms, and for each platform a list of versions. + # If you don't wish to enumerate all versions for a particular platform, use 'all'. + # To view available platforms and versions (or releases), visit: + # https://galaxy.ansible.com/api/v1/platforms/ + # + # platforms: + # - name: Fedora + # versions: + # - all + # - 25 + # - name: SomePlatform + # versions: + # - all + # - 1.0 + # - 7 + # - 99.99 + + galaxy_tags: [] + # List tags for your role here, one per line. A tag is a keyword that describes + # and categorizes the role. Users find roles by searching for tags. Be sure to + # remove the '[]' above, if you add tags to this list. + # + # NOTE: A tag is limited to a single word comprised of alphanumeric characters. + # Maximum 20 tags per role. + +dependencies: [] + # List your role dependencies here, one per line. Be sure to remove the '[]' above, + # if you add dependencies to this list. + \ No newline at end of file diff --git a/jen_roles/java/tasks/main.yml b/jen_roles/java/tasks/main.yml new file mode 100644 index 00000000..722ed2bb --- /dev/null +++ b/jen_roles/java/tasks/main.yml @@ -0,0 +1,28 @@ +--- +# tasks file for java + - name: Install java + yum: + name: java-1.8.0-openjdk-devel + state: present + become: yes + when: ansible_facts['distribution'] == "CentOS" + + + - name: Install java + apt: + name: default-jdk + state: present + become: yes + when: ansible_facts['distribution'] == "Ubuntu" + + + + - name: Set JAVA_HOME + shell: sudo echo "export JAVA_HOME=/usr/lib/jvm/java-1.11.0-openjdk-amd64" >> ~/.bashrc + + + + - name: Source Bashrc + action: shell . ~/.bashrc +# shell: source ~/.bashrc + diff --git a/jen_roles/java/tests/inventory b/jen_roles/java/tests/inventory new file mode 100644 index 00000000..878877b0 --- /dev/null +++ b/jen_roles/java/tests/inventory @@ -0,0 +1,2 @@ +localhost + diff --git a/jen_roles/java/tests/test.yml b/jen_roles/java/tests/test.yml new file mode 100644 index 00000000..4e358304 --- /dev/null +++ b/jen_roles/java/tests/test.yml @@ -0,0 +1,5 @@ +--- +- hosts: localhost + remote_user: root + roles: + - java \ No newline at end of file diff --git a/jen_roles/java/vars/main.yml b/jen_roles/java/vars/main.yml new file mode 100644 index 00000000..14b82bd8 --- /dev/null +++ b/jen_roles/java/vars/main.yml @@ -0,0 +1,2 @@ +--- +# vars file for java \ No newline at end of file diff --git a/jen_roles/maven/.travis.yml b/jen_roles/maven/.travis.yml new file mode 100644 index 00000000..36bbf620 --- /dev/null +++ b/jen_roles/maven/.travis.yml @@ -0,0 +1,29 @@ +--- +language: python +python: "2.7" + +# Use the new container infrastructure +sudo: false + +# Install ansible +addons: + apt: + packages: + - python-pip + +install: + # Install ansible + - pip install ansible + + # Check ansible version + - ansible --version + + # Create ansible.cfg with correct roles_path + - printf '[defaults]\nroles_path=../' >ansible.cfg + +script: + # Basic role syntax check + - ansible-playbook tests/test.yml -i tests/inventory --syntax-check + +notifications: + webhooks: https://galaxy.ansible.com/api/v1/notifications/ \ No newline at end of file diff --git a/jen_roles/maven/README.md b/jen_roles/maven/README.md new file mode 100644 index 00000000..225dd44b --- /dev/null +++ b/jen_roles/maven/README.md @@ -0,0 +1,38 @@ +Role Name +========= + +A brief description of the role goes here. + +Requirements +------------ + +Any pre-requisites that may not be covered by Ansible itself or the role should be mentioned here. For instance, if the role uses the EC2 module, it may be a good idea to mention in this section that the boto package is required. + +Role Variables +-------------- + +A description of the settable variables for this role should go here, including any variables that are in defaults/main.yml, vars/main.yml, and any variables that can/should be set via parameters to the role. Any variables that are read from other roles and/or the global scope (ie. hostvars, group vars, etc.) should be mentioned here as well. + +Dependencies +------------ + +A list of other roles hosted on Galaxy should go here, plus any details in regards to parameters that may need to be set for other roles, or variables that are used from other roles. + +Example Playbook +---------------- + +Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too: + + - hosts: servers + roles: + - { role: username.rolename, x: 42 } + +License +------- + +BSD + +Author Information +------------------ + +An optional section for the role authors to include contact information, or a website (HTML is not allowed). diff --git a/jen_roles/maven/defaults/main.yml b/jen_roles/maven/defaults/main.yml new file mode 100644 index 00000000..e886af2a --- /dev/null +++ b/jen_roles/maven/defaults/main.yml @@ -0,0 +1,2 @@ +--- +# defaults file for maven \ No newline at end of file diff --git a/jen_roles/maven/handlers/main.yml b/jen_roles/maven/handlers/main.yml new file mode 100644 index 00000000..a327a40e --- /dev/null +++ b/jen_roles/maven/handlers/main.yml @@ -0,0 +1,2 @@ +--- +# handlers file for maven \ No newline at end of file diff --git a/jen_roles/maven/meta/main.yml b/jen_roles/maven/meta/main.yml new file mode 100644 index 00000000..94cdbddd --- /dev/null +++ b/jen_roles/maven/meta/main.yml @@ -0,0 +1,54 @@ +galaxy_info: + author: your name + description: your role description + company: your company (optional) + + # If the issue tracker for your role is not on github, uncomment the + # next line and provide a value + # issue_tracker_url: http://example.com/issue/tracker + + # Choose a valid license ID from https://spdx.org - some suggested licenses: + # - BSD-3-Clause (default) + # - MIT + # - GPL-2.0-or-later + # - GPL-3.0-only + # - Apache-2.0 + # - CC-BY-4.0 + license: license (GPL-2.0-or-later, MIT, etc) + + min_ansible_version: 2.9 + + # If this a Container Enabled role, provide the minimum Ansible Container version. + # min_ansible_container_version: + + # + # Provide a list of supported platforms, and for each platform a list of versions. + # If you don't wish to enumerate all versions for a particular platform, use 'all'. + # To view available platforms and versions (or releases), visit: + # https://galaxy.ansible.com/api/v1/platforms/ + # + # platforms: + # - name: Fedora + # versions: + # - all + # - 25 + # - name: SomePlatform + # versions: + # - all + # - 1.0 + # - 7 + # - 99.99 + + galaxy_tags: [] + # List tags for your role here, one per line. A tag is a keyword that describes + # and categorizes the role. Users find roles by searching for tags. Be sure to + # remove the '[]' above, if you add tags to this list. + # + # NOTE: A tag is limited to a single word comprised of alphanumeric characters. + # Maximum 20 tags per role. + +dependencies: + # List your role dependencies here, one per line. Be sure to remove the '[]' above, + # if you add dependencies to this list. + - role: java + diff --git a/jen_roles/maven/tasks/main.yml b/jen_roles/maven/tasks/main.yml new file mode 100644 index 00000000..e11fe8a8 --- /dev/null +++ b/jen_roles/maven/tasks/main.yml @@ -0,0 +1,6 @@ +--- +# tasks file for maven + - name: Install maven + apt: + name: maven + state: latest diff --git a/jen_roles/maven/tests/inventory b/jen_roles/maven/tests/inventory new file mode 100644 index 00000000..878877b0 --- /dev/null +++ b/jen_roles/maven/tests/inventory @@ -0,0 +1,2 @@ +localhost + diff --git a/jen_roles/maven/tests/test.yml b/jen_roles/maven/tests/test.yml new file mode 100644 index 00000000..f36f5426 --- /dev/null +++ b/jen_roles/maven/tests/test.yml @@ -0,0 +1,5 @@ +--- +- hosts: localhost + remote_user: root + roles: + - maven \ No newline at end of file diff --git a/jen_roles/maven/vars/main.yml b/jen_roles/maven/vars/main.yml new file mode 100644 index 00000000..4bdb8810 --- /dev/null +++ b/jen_roles/maven/vars/main.yml @@ -0,0 +1,2 @@ +--- +# vars file for maven \ No newline at end of file diff --git a/jen_roles/nginx/.travis.yml b/jen_roles/nginx/.travis.yml new file mode 100644 index 00000000..36bbf620 --- /dev/null +++ b/jen_roles/nginx/.travis.yml @@ -0,0 +1,29 @@ +--- +language: python +python: "2.7" + +# Use the new container infrastructure +sudo: false + +# Install ansible +addons: + apt: + packages: + - python-pip + +install: + # Install ansible + - pip install ansible + + # Check ansible version + - ansible --version + + # Create ansible.cfg with correct roles_path + - printf '[defaults]\nroles_path=../' >ansible.cfg + +script: + # Basic role syntax check + - ansible-playbook tests/test.yml -i tests/inventory --syntax-check + +notifications: + webhooks: https://galaxy.ansible.com/api/v1/notifications/ \ No newline at end of file diff --git a/jen_roles/nginx/README.md b/jen_roles/nginx/README.md new file mode 100644 index 00000000..225dd44b --- /dev/null +++ b/jen_roles/nginx/README.md @@ -0,0 +1,38 @@ +Role Name +========= + +A brief description of the role goes here. + +Requirements +------------ + +Any pre-requisites that may not be covered by Ansible itself or the role should be mentioned here. For instance, if the role uses the EC2 module, it may be a good idea to mention in this section that the boto package is required. + +Role Variables +-------------- + +A description of the settable variables for this role should go here, including any variables that are in defaults/main.yml, vars/main.yml, and any variables that can/should be set via parameters to the role. Any variables that are read from other roles and/or the global scope (ie. hostvars, group vars, etc.) should be mentioned here as well. + +Dependencies +------------ + +A list of other roles hosted on Galaxy should go here, plus any details in regards to parameters that may need to be set for other roles, or variables that are used from other roles. + +Example Playbook +---------------- + +Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too: + + - hosts: servers + roles: + - { role: username.rolename, x: 42 } + +License +------- + +BSD + +Author Information +------------------ + +An optional section for the role authors to include contact information, or a website (HTML is not allowed). diff --git a/jen_roles/nginx/defaults/main.yml b/jen_roles/nginx/defaults/main.yml new file mode 100644 index 00000000..9793419c --- /dev/null +++ b/jen_roles/nginx/defaults/main.yml @@ -0,0 +1,4 @@ +--- +# defaults file for nginx\ + port: 8080 + name: Opstree diff --git a/jen_roles/nginx/handlers/main.yml b/jen_roles/nginx/handlers/main.yml new file mode 100644 index 00000000..d817f181 --- /dev/null +++ b/jen_roles/nginx/handlers/main.yml @@ -0,0 +1,8 @@ +--- +# handlers file for nginx + - name: restart + service: + name: nginx + state: restarted + + diff --git a/jen_roles/nginx/meta/main.yml b/jen_roles/nginx/meta/main.yml new file mode 100644 index 00000000..227ad9c3 --- /dev/null +++ b/jen_roles/nginx/meta/main.yml @@ -0,0 +1,53 @@ +galaxy_info: + author: your name + description: your role description + company: your company (optional) + + # If the issue tracker for your role is not on github, uncomment the + # next line and provide a value + # issue_tracker_url: http://example.com/issue/tracker + + # Choose a valid license ID from https://spdx.org - some suggested licenses: + # - BSD-3-Clause (default) + # - MIT + # - GPL-2.0-or-later + # - GPL-3.0-only + # - Apache-2.0 + # - CC-BY-4.0 + license: license (GPL-2.0-or-later, MIT, etc) + + min_ansible_version: 2.9 + + # If this a Container Enabled role, provide the minimum Ansible Container version. + # min_ansible_container_version: + + # + # Provide a list of supported platforms, and for each platform a list of versions. + # If you don't wish to enumerate all versions for a particular platform, use 'all'. + # To view available platforms and versions (or releases), visit: + # https://galaxy.ansible.com/api/v1/platforms/ + # + # platforms: + # - name: Fedora + # versions: + # - all + # - 25 + # - name: SomePlatform + # versions: + # - all + # - 1.0 + # - 7 + # - 99.99 + + galaxy_tags: [] + # List tags for your role here, one per line. A tag is a keyword that describes + # and categorizes the role. Users find roles by searching for tags. Be sure to + # remove the '[]' above, if you add tags to this list. + # + # NOTE: A tag is limited to a single word comprised of alphanumeric characters. + # Maximum 20 tags per role. + +dependencies: [] + # List your role dependencies here, one per line. Be sure to remove the '[]' above, + # if you add dependencies to this list. + \ No newline at end of file diff --git a/jen_roles/nginx/tasks/main.yml b/jen_roles/nginx/tasks/main.yml new file mode 100644 index 00000000..952e0fbf --- /dev/null +++ b/jen_roles/nginx/tasks/main.yml @@ -0,0 +1,55 @@ +--- +# tasks file for nginx + - debug: + var: ansible_distribution + + - name: Install nginx + apt: + name: nginx + state: present + update_cache: yes + when: ansible_distribution == "Ubuntu" + + - name: print message + fail: + msg: "OS not supported" + when: ansible_distribution != 'Ubuntu' + + - name: allow nginx + command: ufw allow 'Nginx HTTP' + + - name: Create html file + file: + path: /var/www/html/index1.html + state: touch + + - name: Printing Welcome message + lineinfile: + path: /var/www/html/index1.html + line: Hello from Opstree + + - name: Print hostname + template: + src: index.html.j2 + dest: /var/www/html/index.html + + - name: backup + copy: + src: /etc/nginx/sites-available/default + dest: /root + + - name: default file + template: + src: default.j2 + dest: /etc/nginx/sites-available/default + notify: restart + + - name: state of services + service_facts: + register: services_state + + - name: Debug + debug: + var: services_state.ansible_facts.services["nginx.service"].state + + diff --git a/jen_roles/nginx/templates/default.j2 b/jen_roles/nginx/templates/default.j2 new file mode 100644 index 00000000..340158a1 --- /dev/null +++ b/jen_roles/nginx/templates/default.j2 @@ -0,0 +1,92 @@ +## +# You should look at the following URL's in order to grasp a solid understanding +# of Nginx configuration files in order to fully unleash the power of Nginx. +# https://www.nginx.com/resources/wiki/start/ +# https://www.nginx.com/resources/wiki/start/topics/tutorials/config_pitfalls/ +# https://wiki.debian.org/Nginx/DirectoryStructure +# +# In most cases, administrators will remove this file from sites-enabled/ and +# leave it as reference inside of sites-available where it will continue to be +# updated by the nginx packaging team. +# +# This file will automatically load configuration files provided by other +# applications, such as Drupal or Wordpress. These applications will be made +# available underneath a path with that package name, such as /drupal8. +# +# Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples. +## + +# Default server configuration +# +server { + listen {{ port }} default_server; + listen [::]:{{ port }} default_server; + + # SSL configuration + # + # listen 443 ssl default_server; + # listen [::]:443 ssl default_server; + # + # Note: You should disable gzip for SSL traffic. + # See: https://bugs.debian.org/773332 + # + # Read up on ssl_ciphers to ensure a secure configuration. + # See: https://bugs.debian.org/765782 + # + # Self signed certs generated by the ssl-cert package + # Don't use them in a production server! + # + # include snippets/snakeoil.conf; + + root /var/www/html; + + # Add index.php to the list if you are using PHP + index index.html index.htm index.nginx-debian.html; + + server_name _; + + location / { + # First attempt to serve request as file, then + # as directory, then fall back to displaying a 404. + try_files $uri $uri/ =404; + } + + # pass PHP scripts to FastCGI server + # + #location ~ \.php$ { + # include snippets/fastcgi-php.conf; + # + # # With php-fpm (or other unix sockets): + # fastcgi_pass unix:/var/run/php/php7.0-fpm.sock; + # # With php-cgi (or other tcp sockets): + # fastcgi_pass 127.0.0.1:9000; + #} + + # deny access to .htaccess files, if Apache's document root + # concurs with nginx's one + # + #location ~ /\.ht { + # deny all; + #} +} + + +# Virtual Host configuration for example.com +# +# You can move that to a different file under sites-available/ and symlink that +# to sites-enabled/ to enable it. +# +#server { +# listen {port}; +# listen [::]:{port}; +# +# server_name example.com; +# +# root /var/www/example.com; +# index index.html; +# +# location / { +# try_files $uri $uri/ =404; +# } +#} + diff --git a/jen_roles/nginx/templates/index.html.j2 b/jen_roles/nginx/templates/index.html.j2 new file mode 100644 index 00000000..74a4339b --- /dev/null +++ b/jen_roles/nginx/templates/index.html.j2 @@ -0,0 +1 @@ +

Hello from Upasna

diff --git a/jen_roles/nginx/tests/inventory b/jen_roles/nginx/tests/inventory new file mode 100644 index 00000000..878877b0 --- /dev/null +++ b/jen_roles/nginx/tests/inventory @@ -0,0 +1,2 @@ +localhost + diff --git a/jen_roles/nginx/tests/test.yml b/jen_roles/nginx/tests/test.yml new file mode 100644 index 00000000..3055ba5b --- /dev/null +++ b/jen_roles/nginx/tests/test.yml @@ -0,0 +1,5 @@ +--- +- hosts: localhost + remote_user: root + roles: + - nginx \ No newline at end of file diff --git a/jen_roles/nginx/vars/main.yml b/jen_roles/nginx/vars/main.yml new file mode 100644 index 00000000..4c89b655 --- /dev/null +++ b/jen_roles/nginx/vars/main.yml @@ -0,0 +1,3 @@ +--- +# vars file for nginx + port: "8081" diff --git a/jen_roles/play.yml b/jen_roles/play.yml new file mode 100644 index 00000000..a045f812 --- /dev/null +++ b/jen_roles/play.yml @@ -0,0 +1,4 @@ +--- +- hosts: nginx1 + roles: + - $role_name diff --git a/jen_roles/tomcat/.travis.yml b/jen_roles/tomcat/.travis.yml new file mode 100644 index 00000000..36bbf620 --- /dev/null +++ b/jen_roles/tomcat/.travis.yml @@ -0,0 +1,29 @@ +--- +language: python +python: "2.7" + +# Use the new container infrastructure +sudo: false + +# Install ansible +addons: + apt: + packages: + - python-pip + +install: + # Install ansible + - pip install ansible + + # Check ansible version + - ansible --version + + # Create ansible.cfg with correct roles_path + - printf '[defaults]\nroles_path=../' >ansible.cfg + +script: + # Basic role syntax check + - ansible-playbook tests/test.yml -i tests/inventory --syntax-check + +notifications: + webhooks: https://galaxy.ansible.com/api/v1/notifications/ \ No newline at end of file diff --git a/jen_roles/tomcat/README.md b/jen_roles/tomcat/README.md new file mode 100644 index 00000000..225dd44b --- /dev/null +++ b/jen_roles/tomcat/README.md @@ -0,0 +1,38 @@ +Role Name +========= + +A brief description of the role goes here. + +Requirements +------------ + +Any pre-requisites that may not be covered by Ansible itself or the role should be mentioned here. For instance, if the role uses the EC2 module, it may be a good idea to mention in this section that the boto package is required. + +Role Variables +-------------- + +A description of the settable variables for this role should go here, including any variables that are in defaults/main.yml, vars/main.yml, and any variables that can/should be set via parameters to the role. Any variables that are read from other roles and/or the global scope (ie. hostvars, group vars, etc.) should be mentioned here as well. + +Dependencies +------------ + +A list of other roles hosted on Galaxy should go here, plus any details in regards to parameters that may need to be set for other roles, or variables that are used from other roles. + +Example Playbook +---------------- + +Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too: + + - hosts: servers + roles: + - { role: username.rolename, x: 42 } + +License +------- + +BSD + +Author Information +------------------ + +An optional section for the role authors to include contact information, or a website (HTML is not allowed). diff --git a/jen_roles/tomcat/defaults/main.yml b/jen_roles/tomcat/defaults/main.yml new file mode 100644 index 00000000..658a48c1 --- /dev/null +++ b/jen_roles/tomcat/defaults/main.yml @@ -0,0 +1,2 @@ +--- +# defaults file for tomcat \ No newline at end of file diff --git a/jen_roles/tomcat/handlers/main.yml b/jen_roles/tomcat/handlers/main.yml new file mode 100644 index 00000000..b25f5f0a --- /dev/null +++ b/jen_roles/tomcat/handlers/main.yml @@ -0,0 +1,9 @@ +--- +# handlers file for tomcat + - name: restart + systemd: + name: tomcat + state: restarted + enabled: yes + daemon_reload: yes + diff --git a/jen_roles/tomcat/meta/main.yml b/jen_roles/tomcat/meta/main.yml new file mode 100644 index 00000000..3b4d17b8 --- /dev/null +++ b/jen_roles/tomcat/meta/main.yml @@ -0,0 +1,53 @@ +galaxy_info: + author: your name + description: your role description + company: your company (optional) + + # If the issue tracker for your role is not on github, uncomment the + # next line and provide a value + # issue_tracker_url: http://example.com/issue/tracker + + # Choose a valid license ID from https://spdx.org - some suggested licenses: + # - BSD-3-Clause (default) + # - MIT + # - GPL-2.0-or-later + # - GPL-3.0-only + # - Apache-2.0 + # - CC-BY-4.0 + license: license (GPL-2.0-or-later, MIT, etc) + + min_ansible_version: 2.9 + + # If this a Container Enabled role, provide the minimum Ansible Container version. + # min_ansible_container_version: + + # + # Provide a list of supported platforms, and for each platform a list of versions. + # If you don't wish to enumerate all versions for a particular platform, use 'all'. + # To view available platforms and versions (or releases), visit: + # https://galaxy.ansible.com/api/v1/platforms/ + # + # platforms: + # - name: Fedora + # versions: + # - all + # - 25 + # - name: SomePlatform + # versions: + # - all + # - 1.0 + # - 7 + # - 99.99 + + galaxy_tags: [] + # List tags for your role here, one per line. A tag is a keyword that describes + # and categorizes the role. Users find roles by searching for tags. Be sure to + # remove the '[]' above, if you add tags to this list. + # + # NOTE: A tag is limited to a single word comprised of alphanumeric characters. + # Maximum 20 tags per role. + +dependencies: + # List your role dependencies here, one per line. Be sure to remove the '[]' above, + # if you add dependencies to this list. + - { role: java, maven } diff --git a/jen_roles/tomcat/tasks/main.yml b/jen_roles/tomcat/tasks/main.yml new file mode 100644 index 00000000..ad40e65a --- /dev/null +++ b/jen_roles/tomcat/tasks/main.yml @@ -0,0 +1,54 @@ +--- +# tasks file for tomcat + - name: Create a directory if it does not exist + file: + path: /opt/tomcat + state: directory + mode: '0755' + + - name: adding tomcat group + group: + name: tomcat + + - name: adding tomcat user + user: + name: tomcat + group: tomcat + home: /opt/tomcat + shell: /bin/false + + - name: downloading from web & unarchive the file + unarchive: + src: "{{url}}" + dest: /opt/tomcat + remote_src: yes + extra_opts: [--strip-components=1] + + + - name: Change file permissions + file: + path: /opt/tomcat + mode: '0755' + + - name: Changing ownership + file: + path: /opt/tomcat + state: directory + recurse: yes + owner: tomcat + group: tomcat + - name: copy service file + template: + src: tomcat.service.j2 + dest: /etc/systemd/system/tomcat.service + notify: restart + + - name: collect facts about system services + service_facts: + register: services_state + + - name: Debug + debug: + var: services_state.ansible_facts.services["tomcat.service"].state + + diff --git a/jen_roles/tomcat/templates/tomcat.service.j2 b/jen_roles/tomcat/templates/tomcat.service.j2 new file mode 100644 index 00000000..06c3d7a2 --- /dev/null +++ b/jen_roles/tomcat/templates/tomcat.service.j2 @@ -0,0 +1,21 @@ +[Unit] +Description=Apache Tomcat Web Application Container +After=network.target +[Service] +Type=forking +Environment=JAVA_HOME=/usr/lib/jvm/java-1.11.0-openjdk-amd64 +Environment=CATALINA_PID=/opt/tomcat7/temp/tomcat.pid +Environment=CATALINA_HOME=/opt/tomcat +Environment=CATALINA_BASE=/opt/tomcat +Environment='CATALINA_OPTS=-Xms512M -Xmx1024M -server -XX:+UseParallelGC' +Environment='JAVA_OPTS=-Djava.awt.headless=true -Djava.security.egd=file:/dev/./urandom' +ExecStart=/opt/tomcat/bin/startup.sh +ExecStop=/opt/tomcat/bin/shutdown.sh +User=tomcat +Group=tomcat +UMask=0007 +RestartSec=10 +Restart=always +[Install] +WantedBy=multi-user.target + diff --git a/jen_roles/tomcat/tests/inventory b/jen_roles/tomcat/tests/inventory new file mode 100644 index 00000000..878877b0 --- /dev/null +++ b/jen_roles/tomcat/tests/inventory @@ -0,0 +1,2 @@ +localhost + diff --git a/jen_roles/tomcat/tests/test.yml b/jen_roles/tomcat/tests/test.yml new file mode 100644 index 00000000..1c3dcda1 --- /dev/null +++ b/jen_roles/tomcat/tests/test.yml @@ -0,0 +1,5 @@ +--- +- hosts: localhost + remote_user: root + roles: + - tomcat \ No newline at end of file diff --git a/jen_roles/tomcat/vars/main.yml b/jen_roles/tomcat/vars/main.yml new file mode 100644 index 00000000..0fb66666 --- /dev/null +++ b/jen_roles/tomcat/vars/main.yml @@ -0,0 +1,3 @@ +--- +# vars file for tomcat + url: "http://apachemirror.wuchna.com/tomcat/tomcat-8/v8.5.53/bin/apache-tomcat-8.5.53.tar.gz" diff --git a/nginx_roles/.travis.yml b/nginx_roles/.travis.yml new file mode 100644 index 00000000..36bbf620 --- /dev/null +++ b/nginx_roles/.travis.yml @@ -0,0 +1,29 @@ +--- +language: python +python: "2.7" + +# Use the new container infrastructure +sudo: false + +# Install ansible +addons: + apt: + packages: + - python-pip + +install: + # Install ansible + - pip install ansible + + # Check ansible version + - ansible --version + + # Create ansible.cfg with correct roles_path + - printf '[defaults]\nroles_path=../' >ansible.cfg + +script: + # Basic role syntax check + - ansible-playbook tests/test.yml -i tests/inventory --syntax-check + +notifications: + webhooks: https://galaxy.ansible.com/api/v1/notifications/ \ No newline at end of file diff --git a/nginx_roles/README.md b/nginx_roles/README.md new file mode 100644 index 00000000..225dd44b --- /dev/null +++ b/nginx_roles/README.md @@ -0,0 +1,38 @@ +Role Name +========= + +A brief description of the role goes here. + +Requirements +------------ + +Any pre-requisites that may not be covered by Ansible itself or the role should be mentioned here. For instance, if the role uses the EC2 module, it may be a good idea to mention in this section that the boto package is required. + +Role Variables +-------------- + +A description of the settable variables for this role should go here, including any variables that are in defaults/main.yml, vars/main.yml, and any variables that can/should be set via parameters to the role. Any variables that are read from other roles and/or the global scope (ie. hostvars, group vars, etc.) should be mentioned here as well. + +Dependencies +------------ + +A list of other roles hosted on Galaxy should go here, plus any details in regards to parameters that may need to be set for other roles, or variables that are used from other roles. + +Example Playbook +---------------- + +Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too: + + - hosts: servers + roles: + - { role: username.rolename, x: 42 } + +License +------- + +BSD + +Author Information +------------------ + +An optional section for the role authors to include contact information, or a website (HTML is not allowed). diff --git a/nginx_roles/defaults/main.yml b/nginx_roles/defaults/main.yml new file mode 100644 index 00000000..9793419c --- /dev/null +++ b/nginx_roles/defaults/main.yml @@ -0,0 +1,4 @@ +--- +# defaults file for nginx\ + port: 8080 + name: Opstree diff --git a/nginx_roles/handlers/main.yml b/nginx_roles/handlers/main.yml new file mode 100644 index 00000000..d817f181 --- /dev/null +++ b/nginx_roles/handlers/main.yml @@ -0,0 +1,8 @@ +--- +# handlers file for nginx + - name: restart + service: + name: nginx + state: restarted + + diff --git a/nginx_roles/inventory b/nginx_roles/inventory new file mode 100644 index 00000000..6021a027 --- /dev/null +++ b/nginx_roles/inventory @@ -0,0 +1,2 @@ +[nginx1] +ec2 ansible_host=127.0.0.1 ansible_user=ec2-user diff --git a/nginx_roles/meta/main.yml b/nginx_roles/meta/main.yml new file mode 100644 index 00000000..227ad9c3 --- /dev/null +++ b/nginx_roles/meta/main.yml @@ -0,0 +1,53 @@ +galaxy_info: + author: your name + description: your role description + company: your company (optional) + + # If the issue tracker for your role is not on github, uncomment the + # next line and provide a value + # issue_tracker_url: http://example.com/issue/tracker + + # Choose a valid license ID from https://spdx.org - some suggested licenses: + # - BSD-3-Clause (default) + # - MIT + # - GPL-2.0-or-later + # - GPL-3.0-only + # - Apache-2.0 + # - CC-BY-4.0 + license: license (GPL-2.0-or-later, MIT, etc) + + min_ansible_version: 2.9 + + # If this a Container Enabled role, provide the minimum Ansible Container version. + # min_ansible_container_version: + + # + # Provide a list of supported platforms, and for each platform a list of versions. + # If you don't wish to enumerate all versions for a particular platform, use 'all'. + # To view available platforms and versions (or releases), visit: + # https://galaxy.ansible.com/api/v1/platforms/ + # + # platforms: + # - name: Fedora + # versions: + # - all + # - 25 + # - name: SomePlatform + # versions: + # - all + # - 1.0 + # - 7 + # - 99.99 + + galaxy_tags: [] + # List tags for your role here, one per line. A tag is a keyword that describes + # and categorizes the role. Users find roles by searching for tags. Be sure to + # remove the '[]' above, if you add tags to this list. + # + # NOTE: A tag is limited to a single word comprised of alphanumeric characters. + # Maximum 20 tags per role. + +dependencies: [] + # List your role dependencies here, one per line. Be sure to remove the '[]' above, + # if you add dependencies to this list. + \ No newline at end of file diff --git a/nginx_roles/play.yml b/nginx_roles/play.yml new file mode 100644 index 00000000..16176649 --- /dev/null +++ b/nginx_roles/play.yml @@ -0,0 +1,5 @@ +--- +- hosts: 127.0.0.1 + connection: local + roles: + - nginx diff --git a/nginx_roles/tasks/main.yml b/nginx_roles/tasks/main.yml new file mode 100644 index 00000000..2a1c6030 --- /dev/null +++ b/nginx_roles/tasks/main.yml @@ -0,0 +1,39 @@ +--- +# tasks file for nginx + - debug: + var: ansible_distribution + + - name: Install nginx + apt: + name: nginx + state: present + update_cache: yes + when: ansible_distribution == "Ubuntu" + + + - name: allow nginx + command: ufw allow 'Nginx HTTP' + + - name: Print hostname + template: + src: index.html.j2 + dest: /var/www/html/index.html + + - name: backup + copy: + src: /etc/nginx/sites-available/default + dest: /root + + - name: default file + template: + src: default.j2 + dest: /etc/nginx/sites-available/default + notify: restart + + - name: collect facts about system services + service_facts: + register: services_state + + - name: Debug + debug: + var: services_state.ansible_facts.services["nginx.service"].state diff --git a/nginx_roles/templates/default.j2 b/nginx_roles/templates/default.j2 new file mode 100644 index 00000000..340158a1 --- /dev/null +++ b/nginx_roles/templates/default.j2 @@ -0,0 +1,92 @@ +## +# You should look at the following URL's in order to grasp a solid understanding +# of Nginx configuration files in order to fully unleash the power of Nginx. +# https://www.nginx.com/resources/wiki/start/ +# https://www.nginx.com/resources/wiki/start/topics/tutorials/config_pitfalls/ +# https://wiki.debian.org/Nginx/DirectoryStructure +# +# In most cases, administrators will remove this file from sites-enabled/ and +# leave it as reference inside of sites-available where it will continue to be +# updated by the nginx packaging team. +# +# This file will automatically load configuration files provided by other +# applications, such as Drupal or Wordpress. These applications will be made +# available underneath a path with that package name, such as /drupal8. +# +# Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples. +## + +# Default server configuration +# +server { + listen {{ port }} default_server; + listen [::]:{{ port }} default_server; + + # SSL configuration + # + # listen 443 ssl default_server; + # listen [::]:443 ssl default_server; + # + # Note: You should disable gzip for SSL traffic. + # See: https://bugs.debian.org/773332 + # + # Read up on ssl_ciphers to ensure a secure configuration. + # See: https://bugs.debian.org/765782 + # + # Self signed certs generated by the ssl-cert package + # Don't use them in a production server! + # + # include snippets/snakeoil.conf; + + root /var/www/html; + + # Add index.php to the list if you are using PHP + index index.html index.htm index.nginx-debian.html; + + server_name _; + + location / { + # First attempt to serve request as file, then + # as directory, then fall back to displaying a 404. + try_files $uri $uri/ =404; + } + + # pass PHP scripts to FastCGI server + # + #location ~ \.php$ { + # include snippets/fastcgi-php.conf; + # + # # With php-fpm (or other unix sockets): + # fastcgi_pass unix:/var/run/php/php7.0-fpm.sock; + # # With php-cgi (or other tcp sockets): + # fastcgi_pass 127.0.0.1:9000; + #} + + # deny access to .htaccess files, if Apache's document root + # concurs with nginx's one + # + #location ~ /\.ht { + # deny all; + #} +} + + +# Virtual Host configuration for example.com +# +# You can move that to a different file under sites-available/ and symlink that +# to sites-enabled/ to enable it. +# +#server { +# listen {port}; +# listen [::]:{port}; +# +# server_name example.com; +# +# root /var/www/example.com; +# index index.html; +# +# location / { +# try_files $uri $uri/ =404; +# } +#} + diff --git a/nginx_roles/templates/index.html.j2 b/nginx_roles/templates/index.html.j2 new file mode 100644 index 00000000..13a7cdb2 --- /dev/null +++ b/nginx_roles/templates/index.html.j2 @@ -0,0 +1 @@ +Hi, I am ninja and my name is Upasna diff --git a/nginx_roles/tests/inventory b/nginx_roles/tests/inventory new file mode 100644 index 00000000..878877b0 --- /dev/null +++ b/nginx_roles/tests/inventory @@ -0,0 +1,2 @@ +localhost + diff --git a/nginx_roles/tests/test.yml b/nginx_roles/tests/test.yml new file mode 100644 index 00000000..3055ba5b --- /dev/null +++ b/nginx_roles/tests/test.yml @@ -0,0 +1,5 @@ +--- +- hosts: localhost + remote_user: root + roles: + - nginx \ No newline at end of file diff --git a/nginx_roles/vars/main.yml b/nginx_roles/vars/main.yml new file mode 100644 index 00000000..4c89b655 --- /dev/null +++ b/nginx_roles/vars/main.yml @@ -0,0 +1,3 @@ +--- +# vars file for nginx + port: "8081" diff --git a/play.yml b/play.yml new file mode 100644 index 00000000..0f4970e8 --- /dev/null +++ b/play.yml @@ -0,0 +1,6 @@ +--- +- hosts: localhost + connection: local + become: true + roles: + - nginx_roles diff --git a/screenshots/image1.png b/screenshots/image1.png new file mode 100644 index 00000000..87f6c910 Binary files /dev/null and b/screenshots/image1.png differ diff --git a/sonar-scanner.properties b/sonar-scanner.properties new file mode 100644 index 00000000..580e1f5f --- /dev/null +++ b/sonar-scanner.properties @@ -0,0 +1,9 @@ +#Configure here general information about the environment, such as SonarQube server connection details for example +#No information about specific project should appear here + +#----- Default SonarQube server +sonar.host.url=http://localhost:9000 + +#----- Default source code encoding +sonar.sourceEncoding=UTF-8 + diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/META-INF/MANIFEST.MF b/target/Spring3HibernateApp-1.8-SNAPSHOT/META-INF/MANIFEST.MF new file mode 100644 index 00000000..5e949512 --- /dev/null +++ b/target/Spring3HibernateApp-1.8-SNAPSHOT/META-INF/MANIFEST.MF @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +Class-Path: + diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/classes/com/sample/bean/EmployeeBean.class b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/classes/com/sample/bean/EmployeeBean.class new file mode 100644 index 00000000..12fd10b9 Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/classes/com/sample/bean/EmployeeBean.class differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/classes/com/sample/bean/FileBean.class b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/classes/com/sample/bean/FileBean.class new file mode 100644 index 00000000..f91b1729 Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/classes/com/sample/bean/FileBean.class differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/classes/com/sample/controller/EmployeeController.class b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/classes/com/sample/controller/EmployeeController.class new file mode 100644 index 00000000..d397fac5 Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/classes/com/sample/controller/EmployeeController.class differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/classes/com/sample/dao/EmployeeDao.class b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/classes/com/sample/dao/EmployeeDao.class new file mode 100644 index 00000000..a4cca1b5 Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/classes/com/sample/dao/EmployeeDao.class differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/classes/com/sample/dao/EmployeeDaoImpl.class b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/classes/com/sample/dao/EmployeeDaoImpl.class new file mode 100644 index 00000000..be2e1c64 Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/classes/com/sample/dao/EmployeeDaoImpl.class differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/classes/com/sample/dao/ImageDao.class b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/classes/com/sample/dao/ImageDao.class new file mode 100644 index 00000000..85d7e6d8 Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/classes/com/sample/dao/ImageDao.class differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/classes/com/sample/dao/ImageDaoImpl.class b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/classes/com/sample/dao/ImageDaoImpl.class new file mode 100644 index 00000000..1d90c24c Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/classes/com/sample/dao/ImageDaoImpl.class differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/classes/com/sample/model/Employee.class b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/classes/com/sample/model/Employee.class new file mode 100644 index 00000000..0acd7c9c Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/classes/com/sample/model/Employee.class differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/classes/com/sample/model/Image.class b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/classes/com/sample/model/Image.class new file mode 100644 index 00000000..a61fade7 Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/classes/com/sample/model/Image.class differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/classes/com/sample/service/EmployeeService.class b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/classes/com/sample/service/EmployeeService.class new file mode 100644 index 00000000..5ab02b70 Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/classes/com/sample/service/EmployeeService.class differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/classes/com/sample/service/EmployeeServiceImpl.class b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/classes/com/sample/service/EmployeeServiceImpl.class new file mode 100644 index 00000000..c827e606 Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/classes/com/sample/service/EmployeeServiceImpl.class differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/classes/com/sample/service/ImageService.class b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/classes/com/sample/service/ImageService.class new file mode 100644 index 00000000..c960230e Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/classes/com/sample/service/ImageService.class differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/classes/com/sample/service/ImageServiceImpl.class b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/classes/com/sample/service/ImageServiceImpl.class new file mode 100644 index 00000000..7d2c70b4 Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/classes/com/sample/service/ImageServiceImpl.class differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/classes/com/sample/servlet/DownloadServlet.class b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/classes/com/sample/servlet/DownloadServlet.class new file mode 100644 index 00000000..fbc777f8 Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/classes/com/sample/servlet/DownloadServlet.class differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/classes/com/sample/servlet/FileUploadServlet.class b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/classes/com/sample/servlet/FileUploadServlet.class new file mode 100644 index 00000000..797687ad Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/classes/com/sample/servlet/FileUploadServlet.class differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/classes/database.properties b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/classes/database.properties new file mode 100644 index 00000000..722ca331 --- /dev/null +++ b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/classes/database.properties @@ -0,0 +1,8 @@ +database.driver=com.mysql.jdbc.Driver +database.url=jdbc:mysql://mysql.okts.tk:3306/employeedb +database.user=root +database.password=password +hibernate.dialect=org.hibernate.dialect.MySQLDialect +hibernate.show_sql=true +hibernate.hbm2ddl.auto=update +upload.dir=c:/uploads \ No newline at end of file diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/classes/sdnext-servlet.xml b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/classes/sdnext-servlet.xml new file mode 100644 index 00000000..eed904e3 --- /dev/null +++ b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/classes/sdnext-servlet.xml @@ -0,0 +1,57 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + com.sample.model.Employee + com.sample.model.Image + + + + + ${hibernate.dialect} + ${hibernate.show_sql} + ${hibernate.hbm2ddl.auto} + + + + + + + + \ No newline at end of file diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/config/sdnext-servlet.xml b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/config/sdnext-servlet.xml new file mode 100644 index 00000000..62f6121a --- /dev/null +++ b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/config/sdnext-servlet.xml @@ -0,0 +1,57 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + com.sample.model.Employee + com.sample.model.Image + + + + + ${hibernate.dialect} + ${hibernate.show_sql} + ${hibernate.hbm2ddl.auto} + + + + + + + + \ No newline at end of file diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/activation-1.1.jar b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/activation-1.1.jar new file mode 100644 index 00000000..53f82a1c Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/activation-1.1.jar differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/antlr-2.7.6.jar b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/antlr-2.7.6.jar new file mode 100644 index 00000000..3702b645 Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/antlr-2.7.6.jar differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/aopalliance-1.0.jar b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/aopalliance-1.0.jar new file mode 100644 index 00000000..578b1a0c Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/aopalliance-1.0.jar differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/asm-1.5.3.jar b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/asm-1.5.3.jar new file mode 100644 index 00000000..a50aa613 Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/asm-1.5.3.jar differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/asm-attrs-1.5.3.jar b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/asm-attrs-1.5.3.jar new file mode 100644 index 00000000..a1a3c5e3 Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/asm-attrs-1.5.3.jar differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/cglib-2.1_3.jar b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/cglib-2.1_3.jar new file mode 100644 index 00000000..ddfbdb05 Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/cglib-2.1_3.jar differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/commons-beanutils-1.7.0.jar b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/commons-beanutils-1.7.0.jar new file mode 100644 index 00000000..b1b89c9c Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/commons-beanutils-1.7.0.jar differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/commons-collections-2.1.1.jar b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/commons-collections-2.1.1.jar new file mode 100644 index 00000000..3272f2be Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/commons-collections-2.1.1.jar differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/commons-digester-1.8.jar b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/commons-digester-1.8.jar new file mode 100644 index 00000000..1110f0aa Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/commons-digester-1.8.jar differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/commons-email-1.1.jar b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/commons-email-1.1.jar new file mode 100644 index 00000000..dd9183ca Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/commons-email-1.1.jar differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/commons-fileupload-1.1.1.jar b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/commons-fileupload-1.1.1.jar new file mode 100644 index 00000000..fc5763d0 Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/commons-fileupload-1.1.1.jar differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/commons-io-1.1.jar b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/commons-io-1.1.jar new file mode 100644 index 00000000..624fc1a7 Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/commons-io-1.1.jar differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/commons-lang-2.5.jar b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/commons-lang-2.5.jar new file mode 100644 index 00000000..ae491da8 Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/commons-lang-2.5.jar differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/commons-logging-1.1.1.jar b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/commons-logging-1.1.1.jar new file mode 100644 index 00000000..1deef144 Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/commons-logging-1.1.1.jar differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/dom4j-1.6.1.jar b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/dom4j-1.6.1.jar new file mode 100644 index 00000000..c8c4dbb9 Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/dom4j-1.6.1.jar differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/dumbster-1.6.jar b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/dumbster-1.6.jar new file mode 100644 index 00000000..62dfc8e7 Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/dumbster-1.6.jar differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/ehcache-1.2.3.jar b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/ehcache-1.2.3.jar new file mode 100644 index 00000000..0f8cd2c4 Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/ehcache-1.2.3.jar differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/ejb3-persistence-1.0.1.GA.jar b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/ejb3-persistence-1.0.1.GA.jar new file mode 100644 index 00000000..5aaf777d Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/ejb3-persistence-1.0.1.GA.jar differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/hibernate-3.2.6.ga.jar b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/hibernate-3.2.6.ga.jar new file mode 100644 index 00000000..b87dcb03 Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/hibernate-3.2.6.ga.jar differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/hibernate-annotations-3.3.1.GA.jar b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/hibernate-annotations-3.3.1.GA.jar new file mode 100644 index 00000000..1764d765 Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/hibernate-annotations-3.3.1.GA.jar differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/hibernate-commons-annotations-3.0.0.ga.jar b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/hibernate-commons-annotations-3.0.0.ga.jar new file mode 100644 index 00000000..8284aa2c Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/hibernate-commons-annotations-3.0.0.ga.jar differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/hibernate-commons-annotations-4.0.0.Final.jar b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/hibernate-commons-annotations-4.0.0.Final.jar new file mode 100644 index 00000000..83a3118a Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/hibernate-commons-annotations-4.0.0.Final.jar differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/hibernate-entitymanager-3.3.2.GA.jar b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/hibernate-entitymanager-3.3.2.GA.jar new file mode 100644 index 00000000..d853bc54 Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/hibernate-entitymanager-3.3.2.GA.jar differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/hibernate-search-3.0.0.GA.jar b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/hibernate-search-3.0.0.GA.jar new file mode 100644 index 00000000..fbd5a952 Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/hibernate-search-3.0.0.GA.jar differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/hibernate-validator-4.0.2.GA.jar b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/hibernate-validator-4.0.2.GA.jar new file mode 100644 index 00000000..57e94bf5 Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/hibernate-validator-4.0.2.GA.jar differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/icu4j-2.6.1.jar b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/icu4j-2.6.1.jar new file mode 100644 index 00000000..9b5f51f8 Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/icu4j-2.6.1.jar differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/javassist-3.4.GA.jar b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/javassist-3.4.GA.jar new file mode 100644 index 00000000..a6bde778 Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/javassist-3.4.GA.jar differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/jaxb-api-2.1.jar b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/jaxb-api-2.1.jar new file mode 100644 index 00000000..be3d6dca Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/jaxb-api-2.1.jar differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/jaxb-impl-2.1.3.jar b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/jaxb-impl-2.1.3.jar new file mode 100644 index 00000000..5a2129f9 Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/jaxb-impl-2.1.3.jar differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/jaxb-impl-2.1.jar b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/jaxb-impl-2.1.jar new file mode 100644 index 00000000..f3341e54 Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/jaxb-impl-2.1.jar differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/jaxen-1.1.1.jar b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/jaxen-1.1.1.jar new file mode 100644 index 00000000..b6336311 Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/jaxen-1.1.1.jar differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/jboss-logging-3.1.0.CR1.jar b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/jboss-logging-3.1.0.CR1.jar new file mode 100644 index 00000000..e8415bc4 Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/jboss-logging-3.1.0.CR1.jar differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/jdom-1.0.jar b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/jdom-1.0.jar new file mode 100644 index 00000000..288e64cb Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/jdom-1.0.jar differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/jstl-1.2.jar b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/jstl-1.2.jar new file mode 100644 index 00000000..0fd275e9 Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/jstl-1.2.jar differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/jta-1.1.jar b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/jta-1.1.jar new file mode 100644 index 00000000..7736ec9f Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/jta-1.1.jar differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/junit-4.4.jar b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/junit-4.4.jar new file mode 100644 index 00000000..649b0b32 Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/junit-4.4.jar differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/log4j-1.2.14.jar b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/log4j-1.2.14.jar new file mode 100644 index 00000000..62513071 Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/log4j-1.2.14.jar differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/lucene-core-2.3.2.jar b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/lucene-core-2.3.2.jar new file mode 100644 index 00000000..639f750d Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/lucene-core-2.3.2.jar differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/lucene-highlighter-2.0.0.jar b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/lucene-highlighter-2.0.0.jar new file mode 100644 index 00000000..e9a2de7a Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/lucene-highlighter-2.0.0.jar differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/mail-1.4.jar b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/mail-1.4.jar new file mode 100644 index 00000000..fd4555b3 Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/mail-1.4.jar differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/mockito-all-1.9.5.jar b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/mockito-all-1.9.5.jar new file mode 100644 index 00000000..00416eb3 Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/mockito-all-1.9.5.jar differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/mysql-connector-java-5.0.5.jar b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/mysql-connector-java-5.0.5.jar new file mode 100644 index 00000000..af8ec67c Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/mysql-connector-java-5.0.5.jar differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/persistence-api-1.0.jar b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/persistence-api-1.0.jar new file mode 100644 index 00000000..fe5dbcd4 Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/persistence-api-1.0.jar differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/quartz-1.5.2.jar b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/quartz-1.5.2.jar new file mode 100644 index 00000000..6d7235ca Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/quartz-1.5.2.jar differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/slf4j-api-1.5.6.jar b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/slf4j-api-1.5.6.jar new file mode 100644 index 00000000..d7942523 Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/slf4j-api-1.5.6.jar differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/slf4j-log4j12-1.5.6.jar b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/slf4j-log4j12-1.5.6.jar new file mode 100644 index 00000000..97241bb1 Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/slf4j-log4j12-1.5.6.jar differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/spring-aop-3.0.1.RELEASE.jar b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/spring-aop-3.0.1.RELEASE.jar new file mode 100644 index 00000000..33a18bca Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/spring-aop-3.0.1.RELEASE.jar differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/spring-asm-3.0.1.RELEASE.jar b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/spring-asm-3.0.1.RELEASE.jar new file mode 100644 index 00000000..79f81a04 Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/spring-asm-3.0.1.RELEASE.jar differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/spring-beans-3.0.1.RELEASE.jar b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/spring-beans-3.0.1.RELEASE.jar new file mode 100644 index 00000000..1e68fbb2 Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/spring-beans-3.0.1.RELEASE.jar differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/spring-context-3.0.1.RELEASE.jar b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/spring-context-3.0.1.RELEASE.jar new file mode 100644 index 00000000..c6cdafb3 Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/spring-context-3.0.1.RELEASE.jar differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/spring-core-3.0.1.RELEASE.jar b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/spring-core-3.0.1.RELEASE.jar new file mode 100644 index 00000000..f1a0de67 Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/spring-core-3.0.1.RELEASE.jar differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/spring-expression-3.0.1.RELEASE.jar b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/spring-expression-3.0.1.RELEASE.jar new file mode 100644 index 00000000..f5e91168 Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/spring-expression-3.0.1.RELEASE.jar differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/spring-jdbc-3.0.1.RELEASE.jar b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/spring-jdbc-3.0.1.RELEASE.jar new file mode 100644 index 00000000..df20f20b Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/spring-jdbc-3.0.1.RELEASE.jar differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/spring-orm-3.0.1.RELEASE.jar b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/spring-orm-3.0.1.RELEASE.jar new file mode 100644 index 00000000..15f610e8 Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/spring-orm-3.0.1.RELEASE.jar differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/spring-tx-3.0.1.RELEASE.jar b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/spring-tx-3.0.1.RELEASE.jar new file mode 100644 index 00000000..4011f506 Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/spring-tx-3.0.1.RELEASE.jar differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/spring-web-3.0.1.RELEASE.jar b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/spring-web-3.0.1.RELEASE.jar new file mode 100644 index 00000000..437b9248 Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/spring-web-3.0.1.RELEASE.jar differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/spring-webmvc-3.0.1.RELEASE.jar b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/spring-webmvc-3.0.1.RELEASE.jar new file mode 100644 index 00000000..033f558a Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/spring-webmvc-3.0.1.RELEASE.jar differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/stax-api-1.0-2.jar b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/stax-api-1.0-2.jar new file mode 100644 index 00000000..015169dc Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/stax-api-1.0-2.jar differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/validation-api-1.0.0.GA.jar b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/validation-api-1.0.0.GA.jar new file mode 100644 index 00000000..1ff2dd71 Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/validation-api-1.0.0.GA.jar differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/xalan-2.6.0.jar b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/xalan-2.6.0.jar new file mode 100644 index 00000000..73cf175f Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/xalan-2.6.0.jar differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/xercesImpl-2.6.2.jar b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/xercesImpl-2.6.2.jar new file mode 100644 index 00000000..f0fb0e89 Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/xercesImpl-2.6.2.jar differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/xml-apis-1.3.02.jar b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/xml-apis-1.3.02.jar new file mode 100644 index 00000000..243eaeae Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/xml-apis-1.3.02.jar differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/xmlParserAPIs-2.6.2.jar b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/xmlParserAPIs-2.6.2.jar new file mode 100644 index 00000000..2dd83771 Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/xmlParserAPIs-2.6.2.jar differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/xom-1.0.jar b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/xom-1.0.jar new file mode 100644 index 00000000..22cd958b Binary files /dev/null and b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/lib/xom-1.0.jar differ diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/views/addEmployee.jsp b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/views/addEmployee.jsp new file mode 100644 index 00000000..85d40fcf --- /dev/null +++ b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/views/addEmployee.jsp @@ -0,0 +1,68 @@ +<%@ page language="java" contentType="text/html; charset=ISO-8859-1" + pageEncoding="ISO-8859-1"%> +<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%> +<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> + + + + + Sample Webapp + + +

Add Employee Data

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Employee ID:
Employee Name:
Employee Age:
Employee Salary:
Employee Address:
+
+ + +

List Employees

+ + + + + + + + + + + + + + + + + + + + +
Employee IDEmployee NameEmployee AgeEmployee SalaryEmployee AddressActions on Row
Edit | Delete
+
+

List of Employees

+ + \ No newline at end of file diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/views/employeesList.jsp b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/views/employeesList.jsp new file mode 100644 index 00000000..b756b622 --- /dev/null +++ b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/views/employeesList.jsp @@ -0,0 +1,36 @@ +<%@ page language="java" contentType="text/html; charset=ISO-8859-1" + pageEncoding="ISO-8859-1"%> +<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> + + + +All Employees + + +

List Employees

+

Add More Employee

+ + + + + + + + + + + + + + + + + + + + + +
Employee IDEmployee NameEmployee AgeEmployee SalaryEmployee Address
Edit | Delete
+
+ + \ No newline at end of file diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/views/fileUpload.jsp b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/views/fileUpload.jsp new file mode 100644 index 00000000..f6c61bee --- /dev/null +++ b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/views/fileUpload.jsp @@ -0,0 +1,30 @@ +<%@ page language="java" contentType="text/html; charset=ISO-8859-1" + pageEncoding="ISO-8859-1"%> +<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%> +<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> + + + + + Sample Webapp + + + +

+ Please select an image file to upload(Max Size 1 MB) +

+ + + + + + + + +
+
+
+ + + + \ No newline at end of file diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/views/index.jsp b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/views/index.jsp new file mode 100644 index 00000000..b0fc5019 --- /dev/null +++ b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/views/index.jsp @@ -0,0 +1,16 @@ +<%@ page language="java" contentType="text/html; charset=ISO-8859-1" + pageEncoding="ISO-8859-1"%> + + + + + Sample Webapp CRUD Example + + +

Sample WebApp CRUD Example for CI

+

1. List of Employees

+

2. Add Employee

+

3. Upload File

+

4. List Images

+ + \ No newline at end of file diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/views/listImages.jsp b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/views/listImages.jsp new file mode 100644 index 00000000..01601274 --- /dev/null +++ b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/views/listImages.jsp @@ -0,0 +1,33 @@ +<%@ page language="java" contentType="text/html; charset=ISO-8859-1" + pageEncoding="ISO-8859-1"%> +<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> + + + +All Images + + +

List of images

+

Add More Images

+ + + + + + + + + + + + + + + + + + +
Image NameActions
Download
+
+ + \ No newline at end of file diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/web.xml b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/web.xml new file mode 100644 index 00000000..407170e1 --- /dev/null +++ b/target/Spring3HibernateApp-1.8-SNAPSHOT/WEB-INF/web.xml @@ -0,0 +1,53 @@ + + + + + sdnext + org.springframework.web.servlet.DispatcherServlet + + contextConfigLocation + /WEB-INF/config/sdnext-servlet.xml + + 1 + + + + FileUploadServlet + com.sample.servlet.FileUploadServlet + + + + + + DownloadServlet + com.sample.servlet.DownloadServlet + + + + + + + + FileUploadServlet + /FileUploadServlet + + + + + DownloadServlet + /DownloadServlet + + + + + sdnext + *.html + + + + index.html + + + \ No newline at end of file diff --git a/target/Spring3HibernateApp-1.8-SNAPSHOT/index.html b/target/Spring3HibernateApp-1.8-SNAPSHOT/index.html new file mode 100644 index 00000000..da247f47 --- /dev/null +++ b/target/Spring3HibernateApp-1.8-SNAPSHOT/index.html @@ -0,0 +1,3 @@ + +hello + \ No newline at end of file diff --git a/target/Spring3HibernateApp.war b/target/Spring3HibernateApp.war new file mode 100644 index 00000000..6d3edfdc Binary files /dev/null and b/target/Spring3HibernateApp.war differ diff --git a/target/checkstyle-cachefile b/target/checkstyle-cachefile new file mode 100644 index 00000000..9dfdd753 --- /dev/null +++ b/target/checkstyle-cachefile @@ -0,0 +1,2 @@ +#Mon Mar 09 16:22:13 IST 2020 +configuration*?=9764EC6FEBD7832FA2EEDE24D7FB5AF3190645F6 diff --git a/target/checkstyle-checker.xml b/target/checkstyle-checker.xml new file mode 100644 index 00000000..decb8ae8 --- /dev/null +++ b/target/checkstyle-checker.xml @@ -0,0 +1,197 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/target/checkstyle-result.xml b/target/checkstyle-result.xml new file mode 100644 index 00000000..a7cb30a3 --- /dev/null +++ b/target/checkstyle-result.xml @@ -0,0 +1,848 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/target/classes/com/sample/bean/EmployeeBean.class b/target/classes/com/sample/bean/EmployeeBean.class new file mode 100644 index 00000000..12fd10b9 Binary files /dev/null and b/target/classes/com/sample/bean/EmployeeBean.class differ diff --git a/target/classes/com/sample/bean/FileBean.class b/target/classes/com/sample/bean/FileBean.class new file mode 100644 index 00000000..f91b1729 Binary files /dev/null and b/target/classes/com/sample/bean/FileBean.class differ diff --git a/target/classes/com/sample/controller/EmployeeController.class b/target/classes/com/sample/controller/EmployeeController.class new file mode 100644 index 00000000..d397fac5 Binary files /dev/null and b/target/classes/com/sample/controller/EmployeeController.class differ diff --git a/target/classes/com/sample/dao/EmployeeDao.class b/target/classes/com/sample/dao/EmployeeDao.class new file mode 100644 index 00000000..a4cca1b5 Binary files /dev/null and b/target/classes/com/sample/dao/EmployeeDao.class differ diff --git a/target/classes/com/sample/dao/EmployeeDaoImpl.class b/target/classes/com/sample/dao/EmployeeDaoImpl.class new file mode 100644 index 00000000..be2e1c64 Binary files /dev/null and b/target/classes/com/sample/dao/EmployeeDaoImpl.class differ diff --git a/target/classes/com/sample/dao/ImageDao.class b/target/classes/com/sample/dao/ImageDao.class new file mode 100644 index 00000000..85d7e6d8 Binary files /dev/null and b/target/classes/com/sample/dao/ImageDao.class differ diff --git a/target/classes/com/sample/dao/ImageDaoImpl.class b/target/classes/com/sample/dao/ImageDaoImpl.class new file mode 100644 index 00000000..1d90c24c Binary files /dev/null and b/target/classes/com/sample/dao/ImageDaoImpl.class differ diff --git a/target/classes/com/sample/model/Employee.class b/target/classes/com/sample/model/Employee.class new file mode 100644 index 00000000..0acd7c9c Binary files /dev/null and b/target/classes/com/sample/model/Employee.class differ diff --git a/target/classes/com/sample/model/Image.class b/target/classes/com/sample/model/Image.class new file mode 100644 index 00000000..a61fade7 Binary files /dev/null and b/target/classes/com/sample/model/Image.class differ diff --git a/target/classes/com/sample/service/EmployeeService.class b/target/classes/com/sample/service/EmployeeService.class new file mode 100644 index 00000000..5ab02b70 Binary files /dev/null and b/target/classes/com/sample/service/EmployeeService.class differ diff --git a/target/classes/com/sample/service/EmployeeServiceImpl.class b/target/classes/com/sample/service/EmployeeServiceImpl.class new file mode 100644 index 00000000..c827e606 Binary files /dev/null and b/target/classes/com/sample/service/EmployeeServiceImpl.class differ diff --git a/target/classes/com/sample/service/ImageService.class b/target/classes/com/sample/service/ImageService.class new file mode 100644 index 00000000..c960230e Binary files /dev/null and b/target/classes/com/sample/service/ImageService.class differ diff --git a/target/classes/com/sample/service/ImageServiceImpl.class b/target/classes/com/sample/service/ImageServiceImpl.class new file mode 100644 index 00000000..7d2c70b4 Binary files /dev/null and b/target/classes/com/sample/service/ImageServiceImpl.class differ diff --git a/target/classes/com/sample/servlet/DownloadServlet.class b/target/classes/com/sample/servlet/DownloadServlet.class new file mode 100644 index 00000000..fbc777f8 Binary files /dev/null and b/target/classes/com/sample/servlet/DownloadServlet.class differ diff --git a/target/classes/com/sample/servlet/FileUploadServlet.class b/target/classes/com/sample/servlet/FileUploadServlet.class new file mode 100644 index 00000000..797687ad Binary files /dev/null and b/target/classes/com/sample/servlet/FileUploadServlet.class differ diff --git a/target/classes/database.properties b/target/classes/database.properties new file mode 100644 index 00000000..722ca331 --- /dev/null +++ b/target/classes/database.properties @@ -0,0 +1,8 @@ +database.driver=com.mysql.jdbc.Driver +database.url=jdbc:mysql://mysql.okts.tk:3306/employeedb +database.user=root +database.password=password +hibernate.dialect=org.hibernate.dialect.MySQLDialect +hibernate.show_sql=true +hibernate.hbm2ddl.auto=update +upload.dir=c:/uploads \ No newline at end of file diff --git a/target/classes/sdnext-servlet.xml b/target/classes/sdnext-servlet.xml new file mode 100644 index 00000000..eed904e3 --- /dev/null +++ b/target/classes/sdnext-servlet.xml @@ -0,0 +1,57 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + com.sample.model.Employee + com.sample.model.Image + + + + + ${hibernate.dialect} + ${hibernate.show_sql} + ${hibernate.hbm2ddl.auto} + + + + + + + + \ No newline at end of file diff --git a/target/cobertura/cobertura.ser b/target/cobertura/cobertura.ser new file mode 100644 index 00000000..eec1077a Binary files /dev/null and b/target/cobertura/cobertura.ser differ diff --git a/target/findbugs.xml b/target/findbugs.xml new file mode 100644 index 00000000..1c1ba467 --- /dev/null +++ b/target/findbugs.xml @@ -0,0 +1,2 @@ + +/home/upasna/spring3hibernate/src/main/java/home/upasna/spring3hibernate/src/test/java \ No newline at end of file diff --git a/target/findbugs/findbugsXml.xml b/target/findbugs/findbugsXml.xml new file mode 100644 index 00000000..a5e5885f --- /dev/null +++ b/target/findbugs/findbugsXml.xml @@ -0,0 +1,36 @@ + +/home/upasna/spring3hibernate/target/classes/home/upasna/.m2/repository/org/mockito/mockito-all/1.9.5/mockito-all-1.9.5.jar/home/upasna/.m2/repository/javax/activation/activation/1.1/activation-1.1.jar/home/upasna/.m2/repository/antlr/antlr/2.7.6/antlr-2.7.6.jar/home/upasna/.m2/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar/home/upasna/.m2/repository/asm/asm/1.5.3/asm-1.5.3.jar/home/upasna/.m2/repository/asm/asm-attrs/1.5.3/asm-attrs-1.5.3.jar/home/upasna/.m2/repository/cglib/cglib/2.1_3/cglib-2.1_3.jar/home/upasna/.m2/repository/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar/home/upasna/.m2/repository/commons-io/commons-io/1.1/commons-io-1.1.jar/home/upasna/.m2/repository/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar/home/upasna/.m2/repository/commons-lang/commons-lang/2.5/commons-lang-2.5.jar/home/upasna/.m2/repository/commons-collections/commons-collections/2.1.1/commons-collections-2.1.1.jar/home/upasna/.m2/repository/commons-fileupload/commons-fileupload/1.1.1/commons-fileupload-1.1.1.jar/home/upasna/.m2/repository/org/apache/commons/commons-email/1.1/commons-email-1.1.jar/home/upasna/.m2/repository/commons-digester/commons-digester/1.8/commons-digester-1.8.jar/home/upasna/.m2/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar/home/upasna/.m2/repository/dumbster/dumbster/1.6/dumbster-1.6.jar/home/upasna/.m2/repository/net/sf/ehcache/ehcache/1.2.3/ehcache-1.2.3.jar/home/upasna/.m2/repository/com/ibm/icu/icu4j/2.6.1/icu4j-2.6.1.jar/home/upasna/.m2/repository/javassist/javassist/3.4.GA/javassist-3.4.GA.jar/home/upasna/.m2/repository/javax/xml/bind/jaxb-api/2.1/jaxb-api-2.1.jar/home/upasna/.m2/repository/javax/xml/jaxb-impl/2.1/jaxb-impl-2.1.jar/home/upasna/.m2/repository/jaxen/jaxen/1.1.1/jaxen-1.1.1.jar/home/upasna/.m2/repository/jdom/jdom/1.0/jdom-1.0.jar/home/upasna/.m2/repository/javax/transaction/jta/1.1/jta-1.1.jar/home/upasna/.m2/repository/jstl/jstl/1.2/jstl-1.2.jar/home/upasna/.m2/repository/log4j/log4j/1.2.14/log4j-1.2.14.jar/home/upasna/.m2/repository/org/apache/lucene/lucene-core/2.3.2/lucene-core-2.3.2.jar/home/upasna/.m2/repository/org/apache/lucene/lucene-highlighter/2.0.0/lucene-highlighter-2.0.0.jar/home/upasna/.m2/repository/javax/mail/mail/1.4/mail-1.4.jar/home/upasna/.m2/repository/org/slf4j/slf4j-api/1.5.6/slf4j-api-1.5.6.jar/home/upasna/.m2/repository/mysql/mysql-connector-java/5.0.5/mysql-connector-java-5.0.5.jar/home/upasna/.m2/repository/org/slf4j/slf4j-log4j12/1.5.6/slf4j-log4j12-1.5.6.jar/home/upasna/.m2/repository/javax/persistence/persistence-api/1.0/persistence-api-1.0.jar/home/upasna/.m2/repository/quartz/quartz/1.5.2/quartz-1.5.2.jar/home/upasna/.m2/repository/javax/xml/stream/stax-api/1.0-2/stax-api-1.0-2.jar/home/upasna/.m2/repository/javax/validation/validation-api/1.0.0.GA/validation-api-1.0.0.GA.jar/home/upasna/.m2/repository/xalan/xalan/2.6.0/xalan-2.6.0.jar/home/upasna/.m2/repository/xerces/xercesImpl/2.6.2/xercesImpl-2.6.2.jar/home/upasna/.m2/repository/xml-apis/xml-apis/1.3.02/xml-apis-1.3.02.jar/home/upasna/.m2/repository/xerces/xmlParserAPIs/2.6.2/xmlParserAPIs-2.6.2.jar/home/upasna/.m2/repository/xom/xom/1.0/xom-1.0.jar/home/upasna/.m2/repository/javax/servlet/javax.servlet-api/3.1.0/javax.servlet-api-3.1.0.jar/home/upasna/.m2/repository/org/hibernate/hibernate-annotations/3.3.1.GA/hibernate-annotations-3.3.1.GA.jar/home/upasna/.m2/repository/org/hibernate/hibernate-commons-annotations/3.0.0.ga/hibernate-commons-annotations-3.0.0.ga.jar/home/upasna/.m2/repository/org/hibernate/ejb3-persistence/1.0.1.GA/ejb3-persistence-1.0.1.GA.jar/home/upasna/.m2/repository/org/hibernate/hibernate-entitymanager/3.3.2.GA/hibernate-entitymanager-3.3.2.GA.jar/home/upasna/.m2/repository/org/hibernate/hibernate-validator/4.0.2.GA/hibernate-validator-4.0.2.GA.jar/home/upasna/.m2/repository/com/sun/xml/bind/jaxb-impl/2.1.3/jaxb-impl-2.1.3.jar/home/upasna/.m2/repository/org/hibernate/hibernate/3.2.6.ga/hibernate-3.2.6.ga.jar/home/upasna/.m2/repository/org/hibernate/common/hibernate-commons-annotations/4.0.0.Final/hibernate-commons-annotations-4.0.0.Final.jar/home/upasna/.m2/repository/org/jboss/logging/jboss-logging/3.1.0.CR1/jboss-logging-3.1.0.CR1.jar/home/upasna/.m2/repository/org/hibernate/hibernate-search/3.0.0.GA/hibernate-search-3.0.0.GA.jar/home/upasna/.m2/repository/org/springframework/spring-webmvc/3.0.1.RELEASE/spring-webmvc-3.0.1.RELEASE.jar/home/upasna/.m2/repository/org/springframework/spring-web/3.0.1.RELEASE/spring-web-3.0.1.RELEASE.jar/home/upasna/.m2/repository/org/springframework/spring-context/3.0.1.RELEASE/spring-context-3.0.1.RELEASE.jar/home/upasna/.m2/repository/org/springframework/spring-core/3.0.1.RELEASE/spring-core-3.0.1.RELEASE.jar/home/upasna/.m2/repository/org/springframework/spring-beans/3.0.1.RELEASE/spring-beans-3.0.1.RELEASE.jar/home/upasna/.m2/repository/org/springframework/spring-aop/3.0.1.RELEASE/spring-aop-3.0.1.RELEASE.jar/home/upasna/.m2/repository/org/springframework/spring-tx/3.0.1.RELEASE/spring-tx-3.0.1.RELEASE.jar/home/upasna/.m2/repository/org/springframework/spring-orm/3.0.1.RELEASE/spring-orm-3.0.1.RELEASE.jar/home/upasna/.m2/repository/org/springframework/spring-jdbc/3.0.1.RELEASE/spring-jdbc-3.0.1.RELEASE.jar/home/upasna/.m2/repository/org/springframework/spring-expression/3.0.1.RELEASE/spring-expression-3.0.1.RELEASE.jar/home/upasna/.m2/repository/org/springframework/spring-asm/3.0.1.RELEASE/spring-asm-3.0.1.RELEASE.jar/home/upasna/.m2/repository/junit/junit/4.4/junit-4.4.jar/home/upasna/spring3hibernate/src/main/java/home/upasna/spring3hibernate/targetField names should start with a lower case letterThe field name com.sample.bean.EmployeeBean.Name doesn't start with a lower case letterAt EmployeeBean.java:[lines 3-39]In class com.sample.bean.EmployeeBeanIn EmployeeBean.javaField com.sample.bean.EmployeeBean.NameIn EmployeeBean.javaField names should start with a lower case letterThe field name com.sample.bean.FileBean.Name doesn't start with a lower case letterAt FileBean.java:[lines 3-18]In class com.sample.bean.FileBeanIn FileBean.javaField com.sample.bean.FileBean.NameIn FileBean.javaRelative path traversal in servletRelative path traversal in com.sample.servlet.DownloadServlet.doGet(HttpServletRequest, HttpServletResponse)At DownloadServlet.java:[lines 21-87]In class com.sample.servlet.DownloadServletIn method com.sample.servlet.DownloadServlet.doGet(HttpServletRequest, HttpServletResponse)Called method new java.io.File(String)Parameter "name"Value generated at DownloadServlet.java:[line 26]Local variable named filePathAt DownloadServlet.java:[line 29]Class is Serializable, but doesn't define serialVersionUIDcom.sample.servlet.DownloadServlet is Serializable; consider declaring a serialVersionUIDAt DownloadServlet.java:[lines 21-87]In class com.sample.servlet.DownloadServletAt DownloadServlet.java:[lines 21-87]Class is Serializable, but doesn't define serialVersionUIDcom.sample.servlet.FileUploadServlet is Serializable; consider declaring a serialVersionUIDAt FileUploadServlet.java:[lines 25-89]In class com.sample.servlet.FileUploadServletAt FileUploadServlet.java:[lines 25-89]Bad practiceSecurityField names should start with a lower case letter
+ + <p> +Names of fields that are not final should be in mixed case with a lowercase first letter and the first letters of subsequent words capitalized. +</p> + +
Class is Serializable, but doesn't define serialVersionUID
+ + <p> This class implements the <code>Serializable</code> interface, but does + not define a <code>serialVersionUID</code> field.&nbsp; + A change as simple as adding a reference to a .class object + will add synthetic fields to the class, + which will unfortunately change the implicit + serialVersionUID (e.g., adding a reference to <code>String.class</code> + will generate a static field <code>class$java$lang$String</code>). + Also, different source code to bytecode compilers may use different + naming conventions for synthetic variables generated for + references to class objects or inner classes. + To ensure interoperability of Serializable across versions, + consider adding an explicit serialVersionUID.</p> + +
Relative path traversal in servlet
+ + <p>The software uses an HTTP request parameter to construct a pathname that should be within a restricted directory, but it does not properly neutralize sequences such as ".." that can resolve to a location that is outside of that directory. + +See <a href="http://cwe.mitre.org/data/definitions/23.html">http://cwe.mitre.org/data/definitions/23.html</a> +for more information.</p> +<p>FindBugs looks only for the most blatant, obvious cases of relative path traversal. +If FindBugs found <em>any</em>, you <em>almost certainly</em> have more +vulnerabilities that FindBugs doesn't report. If you are concerned about relative path traversal, you should seriously +consider using a commercial static analysis or pen-testing tool. +</p> + + +
Path traversalSerializable class with no Version IDConfusing method namejava.io.Filejava.io.FileInputStreamjava.io.IOExceptionjava.io.InputStreamjava.io.OutputStreamjava.io.PrintStreamjava.io.Serializablejava.lang.IllegalAccessErrorjava.lang.Integerjava.lang.Longjava.lang.NoSuchFieldErrorjava.lang.Objectjava.lang.Stringjava.lang.StringBuilderjava.lang.Throwablejava.util.ArrayListjava.util.HashMapjava.util.Iteratorjava.util.Listjava.util.Mapjava.util.Properties
\ No newline at end of file diff --git a/target/generated-classes/cobertura/cobertura.properties b/target/generated-classes/cobertura/cobertura.properties new file mode 100644 index 00000000..614dce0e --- /dev/null +++ b/target/generated-classes/cobertura/cobertura.properties @@ -0,0 +1,3 @@ +#Generated by maven-cobertura-plugin for project Spring3HibernateApp:Spring3HibernateApp:war:1.8-SNAPSHOT +#Mon Mar 09 16:29:39 IST 2020 +net.sourceforge.cobertura.datafile=/home/upasna/spring3hibernate/target/cobertura/cobertura.ser diff --git a/target/generated-classes/cobertura/com/sample/bean/EmployeeBean.class b/target/generated-classes/cobertura/com/sample/bean/EmployeeBean.class new file mode 100644 index 00000000..d0d4092a Binary files /dev/null and b/target/generated-classes/cobertura/com/sample/bean/EmployeeBean.class differ diff --git a/target/generated-classes/cobertura/com/sample/bean/FileBean.class b/target/generated-classes/cobertura/com/sample/bean/FileBean.class new file mode 100644 index 00000000..19865dd5 Binary files /dev/null and b/target/generated-classes/cobertura/com/sample/bean/FileBean.class differ diff --git a/target/generated-classes/cobertura/com/sample/controller/EmployeeController.class b/target/generated-classes/cobertura/com/sample/controller/EmployeeController.class new file mode 100644 index 00000000..c21716db Binary files /dev/null and b/target/generated-classes/cobertura/com/sample/controller/EmployeeController.class differ diff --git a/target/generated-classes/cobertura/com/sample/dao/EmployeeDao.class b/target/generated-classes/cobertura/com/sample/dao/EmployeeDao.class new file mode 100644 index 00000000..a4cca1b5 Binary files /dev/null and b/target/generated-classes/cobertura/com/sample/dao/EmployeeDao.class differ diff --git a/target/generated-classes/cobertura/com/sample/dao/EmployeeDaoImpl.class b/target/generated-classes/cobertura/com/sample/dao/EmployeeDaoImpl.class new file mode 100644 index 00000000..8c0c1c87 Binary files /dev/null and b/target/generated-classes/cobertura/com/sample/dao/EmployeeDaoImpl.class differ diff --git a/target/generated-classes/cobertura/com/sample/dao/ImageDao.class b/target/generated-classes/cobertura/com/sample/dao/ImageDao.class new file mode 100644 index 00000000..85d7e6d8 Binary files /dev/null and b/target/generated-classes/cobertura/com/sample/dao/ImageDao.class differ diff --git a/target/generated-classes/cobertura/com/sample/dao/ImageDaoImpl.class b/target/generated-classes/cobertura/com/sample/dao/ImageDaoImpl.class new file mode 100644 index 00000000..73e4ba82 Binary files /dev/null and b/target/generated-classes/cobertura/com/sample/dao/ImageDaoImpl.class differ diff --git a/target/generated-classes/cobertura/com/sample/model/Employee.class b/target/generated-classes/cobertura/com/sample/model/Employee.class new file mode 100644 index 00000000..e0812380 Binary files /dev/null and b/target/generated-classes/cobertura/com/sample/model/Employee.class differ diff --git a/target/generated-classes/cobertura/com/sample/model/Image.class b/target/generated-classes/cobertura/com/sample/model/Image.class new file mode 100644 index 00000000..338a721f Binary files /dev/null and b/target/generated-classes/cobertura/com/sample/model/Image.class differ diff --git a/target/generated-classes/cobertura/com/sample/service/EmployeeService.class b/target/generated-classes/cobertura/com/sample/service/EmployeeService.class new file mode 100644 index 00000000..5ab02b70 Binary files /dev/null and b/target/generated-classes/cobertura/com/sample/service/EmployeeService.class differ diff --git a/target/generated-classes/cobertura/com/sample/service/EmployeeServiceImpl.class b/target/generated-classes/cobertura/com/sample/service/EmployeeServiceImpl.class new file mode 100644 index 00000000..3435825f Binary files /dev/null and b/target/generated-classes/cobertura/com/sample/service/EmployeeServiceImpl.class differ diff --git a/target/generated-classes/cobertura/com/sample/service/ImageService.class b/target/generated-classes/cobertura/com/sample/service/ImageService.class new file mode 100644 index 00000000..c960230e Binary files /dev/null and b/target/generated-classes/cobertura/com/sample/service/ImageService.class differ diff --git a/target/generated-classes/cobertura/com/sample/service/ImageServiceImpl.class b/target/generated-classes/cobertura/com/sample/service/ImageServiceImpl.class new file mode 100644 index 00000000..c37b0c0c Binary files /dev/null and b/target/generated-classes/cobertura/com/sample/service/ImageServiceImpl.class differ diff --git a/target/generated-classes/cobertura/com/sample/servlet/DownloadServlet.class b/target/generated-classes/cobertura/com/sample/servlet/DownloadServlet.class new file mode 100644 index 00000000..3f894858 Binary files /dev/null and b/target/generated-classes/cobertura/com/sample/servlet/DownloadServlet.class differ diff --git a/target/generated-classes/cobertura/com/sample/servlet/FileUploadServlet.class b/target/generated-classes/cobertura/com/sample/servlet/FileUploadServlet.class new file mode 100644 index 00000000..ddf315e8 Binary files /dev/null and b/target/generated-classes/cobertura/com/sample/servlet/FileUploadServlet.class differ diff --git a/target/generated-classes/cobertura/database.properties b/target/generated-classes/cobertura/database.properties new file mode 100644 index 00000000..722ca331 --- /dev/null +++ b/target/generated-classes/cobertura/database.properties @@ -0,0 +1,8 @@ +database.driver=com.mysql.jdbc.Driver +database.url=jdbc:mysql://mysql.okts.tk:3306/employeedb +database.user=root +database.password=password +hibernate.dialect=org.hibernate.dialect.MySQLDialect +hibernate.show_sql=true +hibernate.hbm2ddl.auto=update +upload.dir=c:/uploads \ No newline at end of file diff --git a/target/generated-classes/cobertura/sdnext-servlet.xml b/target/generated-classes/cobertura/sdnext-servlet.xml new file mode 100644 index 00000000..eed904e3 --- /dev/null +++ b/target/generated-classes/cobertura/sdnext-servlet.xml @@ -0,0 +1,57 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + com.sample.model.Employee + com.sample.model.Image + + + + + ${hibernate.dialect} + ${hibernate.show_sql} + ${hibernate.hbm2ddl.auto} + + + + + + + + \ No newline at end of file diff --git a/target/maven-archiver/pom.properties b/target/maven-archiver/pom.properties new file mode 100644 index 00000000..c0bb0e58 --- /dev/null +++ b/target/maven-archiver/pom.properties @@ -0,0 +1,5 @@ +#Generated by Maven +#Mon Mar 09 16:28:39 IST 2020 +groupId=Spring3HibernateApp +artifactId=Spring3HibernateApp +version=1.8-SNAPSHOT diff --git a/target/pmd.xml b/target/pmd.xml new file mode 100644 index 00000000..3fa5298f --- /dev/null +++ b/target/pmd.xml @@ -0,0 +1,82 @@ + + + + +Unnecessary modifier 'public' on method 'addEmployee': the method is declared in an interface type + + +Unnecessary modifier 'public' on method 'listEmployeess': the method is declared in an interface type + + +Unnecessary modifier 'public' on method 'getEmployee': the method is declared in an interface type + + +Unnecessary modifier 'public' on method 'deleteEmployee': the method is declared in an interface type + + + + +Unnecessary modifier 'public' on method 'saveImage': the method is declared in an interface type + + +Unnecessary modifier 'public' on method 'listImages': the method is declared in an interface type + + +Unnecessary modifier 'public' on method 'getImage': the method is declared in an interface type + + + + +Unnecessary modifier 'public' on method 'addEmployee': the method is declared in an interface type + + +Unnecessary modifier 'public' on method 'listEmployeess': the method is declared in an interface type + + +Unnecessary modifier 'public' on method 'getEmployee': the method is declared in an interface type + + +Unnecessary modifier 'public' on method 'deleteEmployee': the method is declared in an interface type + + + + +Avoid empty try blocks + + +Avoid empty catch blocks + + + + +Unnecessary modifier 'public' on method 'saveImage': the method is declared in an interface type + + +Unnecessary modifier 'public' on method 'listImages': the method is declared in an interface type + + +Unnecessary modifier 'public' on method 'getImage': the method is declared in an interface type + + + + +Avoid empty try blocks + + +Avoid empty catch blocks + + + + +Avoid empty catch blocks + + + + +Avoid empty catch blocks + + + diff --git a/target/pmd/rulesets/maven-pmd-plugin-default.xml b/target/pmd/rulesets/maven-pmd-plugin-default.xml new file mode 100644 index 00000000..472cade9 --- /dev/null +++ b/target/pmd/rulesets/maven-pmd-plugin-default.xml @@ -0,0 +1,93 @@ + + + + + + The default ruleset used by the Maven PMD Plugin, when no other ruleset is specified. + It contains the rules of the old (pre PMD 6.0.0) rulesets java-basic, java-empty, java-imports, + java-unnecessary, java-unusedcode. + + This ruleset might be used as a starting point for an own customized ruleset [0]. + + [0] https://pmd.github.io/latest/pmd_userdocs_making_rulesets.html + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/target/site/checkstyle.html b/target/site/checkstyle.html new file mode 100644 index 00000000..31439255 --- /dev/null +++ b/target/site/checkstyle.html @@ -0,0 +1,67 @@ + + + + + + Checkstyle Results + + + + + + + + + +
+ +
+
+
+

Checkstyle Results

The following document contains the results of Checkstyle 5.8 with config/sun_checks.xml ruleset. rss feed

Summary

Files Info Warnings Errors
1600813

Rules

CategoryRuleViolationsSeverity
blocksEmptyBlock6 Error
NeedBraces2 Error
RightCurly2 Error
codingHiddenField14 Error
MagicNumber1 Error
designDesignForExtension54 Error
javadocJavadocMethod70 Error
JavadocPackage
  • allowLegacy: "true"
6 Error
JavadocStyle1 Error
JavadocType14 Error
JavadocVariable22 Error
miscFinalParameters43 Error
NewlineAtEndOfFile3 Error
modifierRedundantModifier14 Error
namingMemberName2 Error
regexpRegexpSingleline
  • format: "\s+$"
  • message: "Line has trailing spaces."
80 Error
sizesLineLength24 Error
whitespaceFileTabCharacter
  • eachLine: "true"
397 Error
ParenPad1 Error
WhitespaceAround57 Error

Details

com/sample/bean/EmployeeBean.java

SeverityCategoryRuleMessageLine
 ErrorjavadocJavadocTypeMissing a Javadoc comment.3
 ErrorwhitespaceFileTabCharacterLine contains a tab character.4
 ErrorjavadocJavadocVariableMissing a Javadoc comment.4
 ErrorwhitespaceFileTabCharacterLine contains a tab character.5
 ErrorjavadocJavadocVariableMissing a Javadoc comment.5
 ErrornamingMemberNameName 'Name' must match pattern '^[a-z][a-zA-Z0-9]*$'.5
 ErrorwhitespaceFileTabCharacterLine contains a tab character.6
 ErrorjavadocJavadocVariableMissing a Javadoc comment.6
 ErrorwhitespaceFileTabCharacterLine contains a tab character.7
 ErrorjavadocJavadocVariableMissing a Javadoc comment.7
 ErrorwhitespaceFileTabCharacterLine contains a tab character.8
 ErrorjavadocJavadocVariableMissing a Javadoc comment.8
 ErrorregexpRegexpSinglelineLine has trailing spaces.9
 ErrorwhitespaceFileTabCharacterLine contains a tab character.9
 ErrorwhitespaceFileTabCharacterLine contains a tab character.10
 ErrordesignDesignForExtensionMethod 'getSalary' is not designed for extension - needs to be abstract, final or empty.10
 ErrorjavadocJavadocMethodMissing a Javadoc comment.10
 ErrorwhitespaceFileTabCharacterLine contains a tab character.11
 ErrorwhitespaceFileTabCharacterLine contains a tab character.12
 ErrorwhitespaceFileTabCharacterLine contains a tab character.13
 ErrordesignDesignForExtensionMethod 'setSalary' is not designed for extension - needs to be abstract, final or empty.13
 ErrorjavadocJavadocMethodMissing a Javadoc comment.13
 ErrormiscFinalParametersParameter salary should be final.13
 ErrorcodingHiddenField'salary' hides a field.13
 ErrorwhitespaceFileTabCharacterLine contains a tab character.14
 ErrorwhitespaceFileTabCharacterLine contains a tab character.15
 ErrorwhitespaceFileTabCharacterLine contains a tab character.16
 ErrordesignDesignForExtensionMethod 'getId' is not designed for extension - needs to be abstract, final or empty.16
 ErrorjavadocJavadocMethodMissing a Javadoc comment.16
 ErrorwhitespaceFileTabCharacterLine contains a tab character.17
 ErrorwhitespaceFileTabCharacterLine contains a tab character.18
 ErrorwhitespaceFileTabCharacterLine contains a tab character.19
 ErrordesignDesignForExtensionMethod 'setId' is not designed for extension - needs to be abstract, final or empty.19
 ErrorjavadocJavadocMethodMissing a Javadoc comment.19
 ErrormiscFinalParametersParameter id should be final.19
 ErrorcodingHiddenField'id' hides a field.19
 ErrorwhitespaceFileTabCharacterLine contains a tab character.20
 ErrorwhitespaceFileTabCharacterLine contains a tab character.21
 ErrorwhitespaceFileTabCharacterLine contains a tab character.22
 ErrordesignDesignForExtensionMethod 'getName' is not designed for extension - needs to be abstract, final or empty.22
 ErrorjavadocJavadocMethodMissing a Javadoc comment.22
 ErrorwhitespaceFileTabCharacterLine contains a tab character.23
 ErrorwhitespaceFileTabCharacterLine contains a tab character.24
 ErrorwhitespaceFileTabCharacterLine contains a tab character.25
 ErrordesignDesignForExtensionMethod 'setName' is not designed for extension - needs to be abstract, final or empty.25
 ErrorjavadocJavadocMethodMissing a Javadoc comment.25
 ErrormiscFinalParametersParameter name should be final.25
 ErrorwhitespaceFileTabCharacterLine contains a tab character.26
 ErrorwhitespaceFileTabCharacterLine contains a tab character.27
 ErrorwhitespaceFileTabCharacterLine contains a tab character.28
 ErrordesignDesignForExtensionMethod 'getAge' is not designed for extension - needs to be abstract, final or empty.28
 ErrorjavadocJavadocMethodMissing a Javadoc comment.28
 ErrorwhitespaceFileTabCharacterLine contains a tab character.29
 ErrorwhitespaceFileTabCharacterLine contains a tab character.30
 ErrorwhitespaceFileTabCharacterLine contains a tab character.31
 ErrordesignDesignForExtensionMethod 'setAge' is not designed for extension - needs to be abstract, final or empty.31
 ErrorjavadocJavadocMethodMissing a Javadoc comment.31
 ErrormiscFinalParametersParameter age should be final.31
 ErrorcodingHiddenField'age' hides a field.31
 ErrorwhitespaceFileTabCharacterLine contains a tab character.32
 ErrorwhitespaceFileTabCharacterLine contains a tab character.33
 ErrorwhitespaceFileTabCharacterLine contains a tab character.34
 ErrordesignDesignForExtensionMethod 'getAddress' is not designed for extension - needs to be abstract, final or empty.34
 ErrorjavadocJavadocMethodMissing a Javadoc comment.34
 ErrorwhitespaceFileTabCharacterLine contains a tab character.35
 ErrorwhitespaceFileTabCharacterLine contains a tab character.36
 ErrorwhitespaceFileTabCharacterLine contains a tab character.37
 ErrordesignDesignForExtensionMethod 'setAddress' is not designed for extension - needs to be abstract, final or empty.37
 ErrorjavadocJavadocMethodMissing a Javadoc comment.37
 ErrormiscFinalParametersParameter address should be final.37
 ErrorcodingHiddenField'address' hides a field.37
 ErrorwhitespaceFileTabCharacterLine contains a tab character.38
 ErrorwhitespaceFileTabCharacterLine contains a tab character.39

com/sample/bean/FileBean.java

SeverityCategoryRuleMessageLine
 ErrorjavadocJavadocPackageMissing package-info.java file.
 ErrorjavadocJavadocTypeMissing a Javadoc comment.3
 ErrorwhitespaceFileTabCharacterLine contains a tab character.4
 ErrorjavadocJavadocVariableMissing a Javadoc comment.4
 ErrorwhitespaceFileTabCharacterLine contains a tab character.5
 ErrorjavadocJavadocVariableMissing a Javadoc comment.5
 ErrornamingMemberNameName 'Name' must match pattern '^[a-z][a-zA-Z0-9]*$'.5
 ErrorregexpRegexpSinglelineLine has trailing spaces.6
 ErrorwhitespaceFileTabCharacterLine contains a tab character.6
 ErrorwhitespaceFileTabCharacterLine contains a tab character.7
 ErrordesignDesignForExtensionMethod 'getId' is not designed for extension - needs to be abstract, final or empty.7
 ErrorjavadocJavadocMethodMissing a Javadoc comment.7
 ErrorwhitespaceFileTabCharacterLine contains a tab character.8
 ErrorwhitespaceFileTabCharacterLine contains a tab character.9
 ErrorwhitespaceFileTabCharacterLine contains a tab character.10
 ErrordesignDesignForExtensionMethod 'setId' is not designed for extension - needs to be abstract, final or empty.10
 ErrorjavadocJavadocMethodMissing a Javadoc comment.10
 ErrormiscFinalParametersParameter id should be final.10
 ErrorcodingHiddenField'id' hides a field.10
 ErrorwhitespaceFileTabCharacterLine contains a tab character.11
 ErrorwhitespaceFileTabCharacterLine contains a tab character.12
 ErrorwhitespaceFileTabCharacterLine contains a tab character.13
 ErrordesignDesignForExtensionMethod 'getName' is not designed for extension - needs to be abstract, final or empty.13
 ErrorjavadocJavadocMethodMissing a Javadoc comment.13
 ErrorwhitespaceFileTabCharacterLine contains a tab character.14
 ErrorwhitespaceFileTabCharacterLine contains a tab character.15
 ErrorwhitespaceFileTabCharacterLine contains a tab character.16
 ErrordesignDesignForExtensionMethod 'setName' is not designed for extension - needs to be abstract, final or empty.16
 ErrorjavadocJavadocMethodMissing a Javadoc comment.16
 ErrormiscFinalParametersParameter name should be final.16
 ErrorwhitespaceFileTabCharacterLine contains a tab character.17
 ErrorwhitespaceFileTabCharacterLine contains a tab character.18
 ErrorwhitespaceFileTabCharacterLine contains a tab character.19

com/sample/controller/EmployeeController.java

SeverityCategoryRuleMessageLine
 ErrorjavadocJavadocPackageMissing package-info.java file.
 ErrorjavadocJavadocTypeMissing a Javadoc comment.22
 ErrorregexpRegexpSinglelineLine has trailing spaces.24
 ErrorwhitespaceFileTabCharacterLine contains a tab character.24
 ErrorwhitespaceFileTabCharacterLine contains a tab character.25
 ErrorjavadocJavadocVariableMissing a Javadoc comment.25
 ErrorwhitespaceFileTabCharacterLine contains a tab character.26
 ErrorregexpRegexpSinglelineLine has trailing spaces.27
 ErrorwhitespaceFileTabCharacterLine contains a tab character.27
 ErrorwhitespaceFileTabCharacterLine contains a tab character.28
 ErrorjavadocJavadocVariableMissing a Javadoc comment.28
 ErrorwhitespaceFileTabCharacterLine contains a tab character.29
 ErrorregexpRegexpSinglelineLine has trailing spaces.30
 ErrorwhitespaceFileTabCharacterLine contains a tab character.30
 ErrorwhitespaceFileTabCharacterLine contains a tab character.31
 ErrordesignDesignForExtensionMethod 'saveEmployee' is not designed for extension - needs to be abstract, final or empty.31
 ErrorjavadocJavadocMethodMissing a Javadoc comment.31
 ErrorregexpRegexpSinglelineLine has trailing spaces.32
 ErrorsizesLineLengthLine is longer than 80 characters (found 95).32
 ErrorwhitespaceFileTabCharacterLine contains a tab character.32
 ErrormiscFinalParametersParameter employeeBean should be final.32
 ErrorwhitespaceFileTabCharacterLine contains a tab character.33
 ErrormiscFinalParametersParameter result should be final.33
 ErrorwhitespaceFileTabCharacterLine contains a tab character.34
 ErrorwhitespaceFileTabCharacterLine contains a tab character.35
 ErrorwhitespaceFileTabCharacterLine contains a tab character.36
 ErrorwhitespaceFileTabCharacterLine contains a tab character.37
 ErrorwhitespaceFileTabCharacterLine contains a tab character.39
 ErrordesignDesignForExtensionMethod 'listEmployees' is not designed for extension - needs to be abstract, final or empty.39
 ErrorjavadocJavadocMethodMissing a Javadoc comment.39
 ErrorwhitespaceWhitespaceAround'=' is not preceded with whitespace.39
 ErrorwhitespaceWhitespaceAround'=' is not followed by whitespace.39
 ErrorwhitespaceFileTabCharacterLine contains a tab character.40
 ErrorwhitespaceFileTabCharacterLine contains a tab character.41
 ErrorsizesLineLengthLine is longer than 80 characters (found 93).42
 ErrorwhitespaceFileTabCharacterLine contains a tab character.42
 ErrorwhitespaceFileTabCharacterLine contains a tab character.43
 ErrorwhitespaceFileTabCharacterLine contains a tab character.44
 ErrorwhitespaceFileTabCharacterLine contains a tab character.46
 ErrordesignDesignForExtensionMethod 'listImages' is not designed for extension - needs to be abstract, final or empty.46
 ErrorjavadocJavadocMethodMissing a Javadoc comment.46
 ErrorwhitespaceWhitespaceAround'=' is not preceded with whitespace.46
 ErrorwhitespaceWhitespaceAround'=' is not followed by whitespace.46
 ErrorwhitespaceFileTabCharacterLine contains a tab character.47
 ErrorwhitespaceFileTabCharacterLine contains a tab character.48
 ErrorwhitespaceFileTabCharacterLine contains a tab character.49
 ErrorwhitespaceFileTabCharacterLine contains a tab character.50
 ErrorwhitespaceFileTabCharacterLine contains a tab character.51
 ErrorregexpRegexpSinglelineLine has trailing spaces.53
 ErrorwhitespaceFileTabCharacterLine contains a tab character.53
 ErrorwhitespaceFileTabCharacterLine contains a tab character.54
 ErrordesignDesignForExtensionMethod 'addEmployee' is not designed for extension - needs to be abstract, final or empty.54
 ErrorjavadocJavadocMethodMissing a Javadoc comment.54
 ErrorsizesLineLengthLine is longer than 80 characters (found 94).55
 ErrorwhitespaceFileTabCharacterLine contains a tab character.55
 ErrormiscFinalParametersParameter employeeBean should be final.55
 ErrorwhitespaceFileTabCharacterLine contains a tab character.56
 ErrormiscFinalParametersParameter result should be final.56
 ErrorwhitespaceFileTabCharacterLine contains a tab character.57
 ErrorsizesLineLengthLine is longer than 80 characters (found 93).58
 ErrorwhitespaceFileTabCharacterLine contains a tab character.58
 ErrorwhitespaceFileTabCharacterLine contains a tab character.59
 ErrorwhitespaceFileTabCharacterLine contains a tab character.60
 ErrorregexpRegexpSinglelineLine has trailing spaces.61
 ErrorwhitespaceFileTabCharacterLine contains a tab character.61
 ErrorwhitespaceFileTabCharacterLine contains a tab character.62
 ErrordesignDesignForExtensionMethod 'fileUpload' is not designed for extension - needs to be abstract, final or empty.62
 ErrorjavadocJavadocMethodMissing a Javadoc comment.62
 ErrorsizesLineLengthLine is longer than 80 characters (found 85).63
 ErrorwhitespaceFileTabCharacterLine contains a tab character.63
 ErrormiscFinalParametersParameter fileBean should be final.63
 ErrorwhitespaceFileTabCharacterLine contains a tab character.64
 ErrormiscFinalParametersParameter result should be final.64
 ErrorwhitespaceFileTabCharacterLine contains a tab character.65
 ErrorwhitespaceFileTabCharacterLine contains a tab character.66
 ErrorwhitespaceFileTabCharacterLine contains a tab character.67
 ErrorregexpRegexpSinglelineLine has trailing spaces.68
 ErrorwhitespaceFileTabCharacterLine contains a tab character.68
 ErrorregexpRegexpSinglelineLine has trailing spaces.69
 ErrorwhitespaceFileTabCharacterLine contains a tab character.69
 ErrorwhitespaceFileTabCharacterLine contains a tab character.70
 ErrordesignDesignForExtensionMethod 'welcome' is not designed for extension - needs to be abstract, final or empty.70
 ErrorjavadocJavadocMethodMissing a Javadoc comment.70
 ErrorwhitespaceFileTabCharacterLine contains a tab character.71
 ErrorwhitespaceFileTabCharacterLine contains a tab character.72
 ErrorwhitespaceFileTabCharacterLine contains a tab character.73
 ErrorregexpRegexpSinglelineLine has trailing spaces.74
 ErrorwhitespaceFileTabCharacterLine contains a tab character.74
 ErrorwhitespaceFileTabCharacterLine contains a tab character.75
 ErrordesignDesignForExtensionMethod 'editEmployee' is not designed for extension - needs to be abstract, final or empty.75
 ErrorjavadocJavadocMethodMissing a Javadoc comment.75
 ErrorsizesLineLengthLine is longer than 80 characters (found 95).76
 ErrorwhitespaceFileTabCharacterLine contains a tab character.76
 ErrormiscFinalParametersParameter employeeBean should be final.76
 ErrorwhitespaceFileTabCharacterLine contains a tab character.77
 ErrormiscFinalParametersParameter result should be final.77
 ErrorwhitespaceFileTabCharacterLine contains a tab character.78
 ErrorwhitespaceFileTabCharacterLine contains a tab character.79
 ErrorwhitespaceFileTabCharacterLine contains a tab character.80
 ErrorsizesLineLengthLine is longer than 80 characters (found 93).81
 ErrorwhitespaceFileTabCharacterLine contains a tab character.81
 ErrorwhitespaceFileTabCharacterLine contains a tab character.82
 ErrorwhitespaceFileTabCharacterLine contains a tab character.83
 ErrorregexpRegexpSinglelineLine has trailing spaces.84
 ErrorwhitespaceFileTabCharacterLine contains a tab character.84
 ErrorwhitespaceFileTabCharacterLine contains a tab character.85
 ErrordesignDesignForExtensionMethod 'deleteEmployee' is not designed for extension - needs to be abstract, final or empty.85
 ErrorjavadocJavadocMethodMissing a Javadoc comment.85
 ErrorsizesLineLengthLine is longer than 80 characters (found 97).86
 ErrorwhitespaceFileTabCharacterLine contains a tab character.86
 ErrormiscFinalParametersParameter employeeBean should be final.86
 ErrorwhitespaceFileTabCharacterLine contains a tab character.87
 ErrormiscFinalParametersParameter result should be final.87
 ErrorwhitespaceFileTabCharacterLine contains a tab character.88
 ErrorsizesLineLengthLine is longer than 80 characters (found 110).89
 ErrorwhitespaceFileTabCharacterLine contains a tab character.89
 ErrorsizesLineLengthLine is longer than 80 characters (found 93).90
 ErrorwhitespaceFileTabCharacterLine contains a tab character.90
 ErrorwhitespaceFileTabCharacterLine contains a tab character.91
 ErrorwhitespaceFileTabCharacterLine contains a tab character.92
 ErrorregexpRegexpSinglelineLine has trailing spaces.93
 ErrorwhitespaceFileTabCharacterLine contains a tab character.93
 ErrorwhitespaceFileTabCharacterLine contains a tab character.94
 ErrorjavadocJavadocMethodMissing a Javadoc comment.94
 ErrormiscFinalParametersParameter employeeBean should be final.94
 ErrorwhitespaceWhitespaceAround'{' is not preceded with whitespace.94
 ErrorwhitespaceFileTabCharacterLine contains a tab character.95
 ErrorwhitespaceFileTabCharacterLine contains a tab character.96
 ErrorwhitespaceFileTabCharacterLine contains a tab character.97
 ErrorwhitespaceFileTabCharacterLine contains a tab character.98
 ErrorwhitespaceFileTabCharacterLine contains a tab character.99
 ErrorwhitespaceFileTabCharacterLine contains a tab character.100
 ErrorwhitespaceFileTabCharacterLine contains a tab character.101
 ErrorwhitespaceFileTabCharacterLine contains a tab character.102
 ErrorwhitespaceFileTabCharacterLine contains a tab character.103
 ErrorregexpRegexpSinglelineLine has trailing spaces.104
 ErrorwhitespaceFileTabCharacterLine contains a tab character.104
 ErrorwhitespaceFileTabCharacterLine contains a tab character.105
 ErrorjavadocJavadocMethodMissing a Javadoc comment.105
 ErrormiscFinalParametersParameter employees should be final.105
 ErrorwhitespaceWhitespaceAround'{' is not preceded with whitespace.105
 ErrorwhitespaceFileTabCharacterLine contains a tab character.106
 ErrorwhitespaceFileTabCharacterLine contains a tab character.107
 ErrorwhitespaceWhitespaceAround'if' is not followed by whitespace.107
 ErrorwhitespaceWhitespaceAround'{' is not preceded with whitespace.107
 ErrorwhitespaceFileTabCharacterLine contains a tab character.108
 ErrorwhitespaceFileTabCharacterLine contains a tab character.109
 ErrorwhitespaceFileTabCharacterLine contains a tab character.110
 ErrorwhitespaceWhitespaceAround'for' is not followed by whitespace.110
 ErrorwhitespaceWhitespaceAround'{' is not preceded with whitespace.110
 ErrorwhitespaceFileTabCharacterLine contains a tab character.111
 ErrorwhitespaceFileTabCharacterLine contains a tab character.112
 ErrorwhitespaceFileTabCharacterLine contains a tab character.113
 ErrorwhitespaceFileTabCharacterLine contains a tab character.114
 ErrorwhitespaceFileTabCharacterLine contains a tab character.115
 ErrorwhitespaceFileTabCharacterLine contains a tab character.116
 ErrorwhitespaceFileTabCharacterLine contains a tab character.117
 ErrorwhitespaceFileTabCharacterLine contains a tab character.118
 ErrorwhitespaceFileTabCharacterLine contains a tab character.119
 ErrorwhitespaceFileTabCharacterLine contains a tab character.120
 ErrorwhitespaceFileTabCharacterLine contains a tab character.121
 ErrorregexpRegexpSinglelineLine has trailing spaces.122
 ErrorwhitespaceFileTabCharacterLine contains a tab character.122
 ErrorwhitespaceFileTabCharacterLine contains a tab character.123
 ErrorjavadocJavadocMethodMissing a Javadoc comment.123
 ErrormiscFinalParametersParameter employee should be final.123
 ErrorwhitespaceWhitespaceAround'{' is not preceded with whitespace.123
 ErrorwhitespaceFileTabCharacterLine contains a tab character.124
 ErrorwhitespaceFileTabCharacterLine contains a tab character.125
 ErrorwhitespaceFileTabCharacterLine contains a tab character.126
 ErrorwhitespaceFileTabCharacterLine contains a tab character.127
 ErrorwhitespaceFileTabCharacterLine contains a tab character.128
 ErrorwhitespaceFileTabCharacterLine contains a tab character.129
 ErrorwhitespaceFileTabCharacterLine contains a tab character.130
 ErrorwhitespaceFileTabCharacterLine contains a tab character.131

com/sample/dao/EmployeeDao.java

SeverityCategoryRuleMessageLine
 ErrorjavadocJavadocTypeMissing a Javadoc comment.7
 ErrorregexpRegexpSinglelineLine has trailing spaces.8
 ErrorwhitespaceFileTabCharacterLine contains a tab character.8
 ErrorwhitespaceFileTabCharacterLine contains a tab character.9
 ErrorjavadocJavadocMethodMissing a Javadoc comment.9
 ErrormodifierRedundantModifierRedundant 'public' modifier.9
 ErrorwhitespaceFileTabCharacterLine contains a tab character.11
 ErrorjavadocJavadocMethodMissing a Javadoc comment.11
 ErrormodifierRedundantModifierRedundant 'public' modifier.11
 ErrorregexpRegexpSinglelineLine has trailing spaces.12
 ErrorwhitespaceFileTabCharacterLine contains a tab character.12
 ErrorwhitespaceFileTabCharacterLine contains a tab character.13
 ErrorjavadocJavadocMethodMissing a Javadoc comment.13
 ErrormodifierRedundantModifierRedundant 'public' modifier.13
 ErrorregexpRegexpSinglelineLine has trailing spaces.14
 ErrorwhitespaceFileTabCharacterLine contains a tab character.14
 ErrorwhitespaceFileTabCharacterLine contains a tab character.15
 ErrorjavadocJavadocMethodMissing a Javadoc comment.15
 ErrormodifierRedundantModifierRedundant 'public' modifier.15

com/sample/dao/EmployeeDaoImpl.java

SeverityCategoryRuleMessageLine
 ErrorjavadocJavadocTypeMissing a Javadoc comment.12
 ErrorwhitespaceFileTabCharacterLine contains a tab character.15
 ErrorjavadocJavadocVariableMissing a Javadoc comment.15
 ErrorwhitespaceFileTabCharacterLine contains a tab character.16
 ErrorregexpRegexpSinglelineLine has trailing spaces.17
 ErrorwhitespaceFileTabCharacterLine contains a tab character.17
 ErrorwhitespaceFileTabCharacterLine contains a tab character.18
 ErrordesignDesignForExtensionMethod 'addEmployee' is not designed for extension - needs to be abstract, final or empty.18
 ErrorjavadocJavadocMethodMissing a Javadoc comment.18
 ErrormiscFinalParametersParameter employee should be final.18
 ErrorwhitespaceFileTabCharacterLine contains a tab character.19
 ErrorwhitespaceFileTabCharacterLine contains a tab character.20
 ErrorwhitespaceFileTabCharacterLine contains a tab character.22
 ErrordesignDesignForExtensionMethod 'listEmployeess' is not designed for extension - needs to be abstract, final or empty.22
 ErrorjavadocJavadocMethodMissing a Javadoc comment.22
 ErrorwhitespaceFileTabCharacterLine contains a tab character.23
 ErrorsizesLineLengthLine is longer than 80 characters (found 113).24
 ErrorwhitespaceFileTabCharacterLine contains a tab character.24
 ErrorwhitespaceFileTabCharacterLine contains a tab character.25
 ErrorwhitespaceFileTabCharacterLine contains a tab character.27
 ErrordesignDesignForExtensionMethod 'getEmployee' is not designed for extension - needs to be abstract, final or empty.27
 ErrorjavadocJavadocMethodMissing a Javadoc comment.27
 ErrormiscFinalParametersParameter empid should be final.27
 ErrorsizesLineLengthLine is longer than 80 characters (found 96).28
 ErrorwhitespaceFileTabCharacterLine contains a tab character.28
 ErrorwhitespaceFileTabCharacterLine contains a tab character.29
 ErrorwhitespaceFileTabCharacterLine contains a tab character.31
 ErrordesignDesignForExtensionMethod 'deleteEmployee' is not designed for extension - needs to be abstract, final or empty.31
 ErrorjavadocJavadocMethodMissing a Javadoc comment.31
 ErrormiscFinalParametersParameter employee should be final.31
 ErrorsizesLineLengthLine is longer than 80 characters (found 138).32
 ErrorwhitespaceFileTabCharacterLine contains a tab character.32
 ErrorwhitespaceWhitespaceAround'+' is not preceded with whitespace.32
 ErrorwhitespaceWhitespaceAround'+' is not followed by whitespace.32
 ErrorwhitespaceFileTabCharacterLine contains a tab character.33

com/sample/dao/ImageDao.java

SeverityCategoryRuleMessageLine
 ErrorjavadocJavadocPackageMissing package-info.java file.
 ErrorjavadocJavadocTypeMissing a Javadoc comment.7
 ErrorregexpRegexpSinglelineLine has trailing spaces.8
 ErrorwhitespaceFileTabCharacterLine contains a tab character.8
 ErrorwhitespaceFileTabCharacterLine contains a tab character.9
 ErrorjavadocJavadocMethodMissing a Javadoc comment.9
 ErrormodifierRedundantModifierRedundant 'public' modifier.9
 ErrorwhitespaceFileTabCharacterLine contains a tab character.11
 ErrorjavadocJavadocMethodMissing a Javadoc comment.11
 ErrormodifierRedundantModifierRedundant 'public' modifier.11
 ErrorregexpRegexpSinglelineLine has trailing spaces.12
 ErrorwhitespaceFileTabCharacterLine contains a tab character.12
 ErrorwhitespaceFileTabCharacterLine contains a tab character.13
 ErrorjavadocJavadocMethodMissing a Javadoc comment.13
 ErrormodifierRedundantModifierRedundant 'public' modifier.13
 ErrorregexpRegexpSinglelineLine has trailing spaces.14
 ErrorwhitespaceFileTabCharacterLine contains a tab character.14
 ErrorregexpRegexpSinglelineLine has trailing spaces.15
 ErrorwhitespaceFileTabCharacterLine contains a tab character.15

com/sample/dao/ImageDaoImpl.java

SeverityCategoryRuleMessageLine
 ErrorjavadocJavadocTypeMissing a Javadoc comment.14
 ErrorwhitespaceFileTabCharacterLine contains a tab character.17
 ErrorjavadocJavadocVariableMissing a Javadoc comment.17
 ErrorwhitespaceFileTabCharacterLine contains a tab character.18
 ErrorregexpRegexpSinglelineLine has trailing spaces.19
 ErrorwhitespaceFileTabCharacterLine contains a tab character.19
 ErrorwhitespaceFileTabCharacterLine contains a tab character.20
 ErrordesignDesignForExtensionMethod 'saveImage' is not designed for extension - needs to be abstract, final or empty.20
 ErrorjavadocJavadocMethodMissing a Javadoc comment.20
 ErrorwhitespaceFileTabCharacterLine contains a tab character.21
 ErrormiscFinalParametersParameter image should be final.21
 ErrorwhitespaceFileTabCharacterLine contains a tab character.22
 ErrorwhitespaceFileTabCharacterLine contains a tab character.23
 ErrorwhitespaceFileTabCharacterLine contains a tab character.25
 ErrordesignDesignForExtensionMethod 'listImages' is not designed for extension - needs to be abstract, final or empty.25
 ErrorjavadocJavadocMethodMissing a Javadoc comment.25
 ErrorwhitespaceFileTabCharacterLine contains a tab character.26
 ErrorsizesLineLengthLine is longer than 80 characters (found 112).27
 ErrorwhitespaceFileTabCharacterLine contains a tab character.27
 ErrorwhitespaceFileTabCharacterLine contains a tab character.28
 ErrorwhitespaceFileTabCharacterLine contains a tab character.30
 ErrordesignDesignForExtensionMethod 'getImage' is not designed for extension - needs to be abstract, final or empty.30
 ErrorjavadocJavadocMethodMissing a Javadoc comment.30
 ErrormiscFinalParametersParameter imgid should be final.30
 ErrorsizesLineLengthLine is longer than 80 characters (found 95).31
 ErrorwhitespaceFileTabCharacterLine contains a tab character.31
 ErrorwhitespaceFileTabCharacterLine contains a tab character.32
 ErrorjavadocJavadocMethodMissing a Javadoc comment.34
 ErrorregexpRegexpSinglelineLine has trailing spaces.35
 ErrorwhitespaceFileTabCharacterLine contains a tab character.35
 ErrorwhitespaceFileTabCharacterLine contains a tab character.36

com/sample/model/Employee.java

SeverityCategoryRuleMessageLine
 ErrorjavadocJavadocTypeMissing a Javadoc comment.12
 ErrorwhitespaceWhitespaceAround'=' is not preceded with whitespace.13
 ErrorwhitespaceWhitespaceAround'=' is not followed by whitespace.13
 ErrorwhitespaceWhitespaceAround'{' is not preceded with whitespace.14
 ErrorwhitespaceFileTabCharacterLine contains a tab character.16
 ErrorjavadocJavadocVariableMissing a Javadoc comment.16
 ErrorregexpRegexpSinglelineLine has trailing spaces.17
 ErrorwhitespaceFileTabCharacterLine contains a tab character.17
 ErrorwhitespaceFileTabCharacterLine contains a tab character.18
 ErrorjavadocJavadocVariableMissing a Javadoc comment.18
 ErrorwhitespaceFileTabCharacterLine contains a tab character.19
 ErrorwhitespaceWhitespaceAround'=' is not preceded with whitespace.19
 ErrorwhitespaceWhitespaceAround'=' is not followed by whitespace.19
 ErrorwhitespaceFileTabCharacterLine contains a tab character.20
 ErrorwhitespaceFileTabCharacterLine contains a tab character.21
 ErrorregexpRegexpSinglelineLine has trailing spaces.22
 ErrorwhitespaceFileTabCharacterLine contains a tab character.22
 ErrorwhitespaceFileTabCharacterLine contains a tab character.23
 ErrorjavadocJavadocVariableMissing a Javadoc comment.23
 ErrorwhitespaceWhitespaceAround'=' is not preceded with whitespace.23
 ErrorwhitespaceWhitespaceAround'=' is not followed by whitespace.23
 ErrorwhitespaceFileTabCharacterLine contains a tab character.24
 ErrorregexpRegexpSinglelineLine has trailing spaces.25
 ErrorwhitespaceFileTabCharacterLine contains a tab character.25
 ErrorwhitespaceFileTabCharacterLine contains a tab character.26
 ErrorjavadocJavadocVariableMissing a Javadoc comment.26
 ErrorwhitespaceWhitespaceAround'=' is not preceded with whitespace.26
 ErrorwhitespaceWhitespaceAround'=' is not followed by whitespace.26
 ErrorwhitespaceFileTabCharacterLine contains a tab character.27
 ErrorregexpRegexpSinglelineLine has trailing spaces.28
 ErrorwhitespaceFileTabCharacterLine contains a tab character.28
 ErrorwhitespaceFileTabCharacterLine contains a tab character.29
 ErrorjavadocJavadocVariableMissing a Javadoc comment.29
 ErrorwhitespaceWhitespaceAround'=' is not preceded with whitespace.29
 ErrorwhitespaceWhitespaceAround'=' is not followed by whitespace.29
 ErrorwhitespaceFileTabCharacterLine contains a tab character.30
 ErrorregexpRegexpSinglelineLine has trailing spaces.31
 ErrorwhitespaceFileTabCharacterLine contains a tab character.31
 ErrorwhitespaceFileTabCharacterLine contains a tab character.32
 ErrorjavadocJavadocVariableMissing a Javadoc comment.32
 ErrorwhitespaceWhitespaceAround'=' is not preceded with whitespace.32
 ErrorwhitespaceWhitespaceAround'=' is not followed by whitespace.32
 ErrorwhitespaceFileTabCharacterLine contains a tab character.33
 ErrorwhitespaceFileTabCharacterLine contains a tab character.35
 ErrordesignDesignForExtensionMethod 'getEmpId' is not designed for extension - needs to be abstract, final or empty.35
 ErrorjavadocJavadocMethodMissing a Javadoc comment.35
 ErrorwhitespaceFileTabCharacterLine contains a tab character.36
 ErrorwhitespaceFileTabCharacterLine contains a tab character.37
 ErrorwhitespaceFileTabCharacterLine contains a tab character.39
 ErrordesignDesignForExtensionMethod 'setEmpId' is not designed for extension - needs to be abstract, final or empty.39
 ErrorjavadocJavadocMethodMissing a Javadoc comment.39
 ErrormiscFinalParametersParameter empId should be final.39
 ErrorcodingHiddenField'empId' hides a field.39
 ErrorwhitespaceFileTabCharacterLine contains a tab character.40
 ErrorwhitespaceFileTabCharacterLine contains a tab character.41
 ErrorwhitespaceFileTabCharacterLine contains a tab character.43
 ErrordesignDesignForExtensionMethod 'getEmpName' is not designed for extension - needs to be abstract, final or empty.43
 ErrorjavadocJavadocMethodMissing a Javadoc comment.43
 ErrorwhitespaceFileTabCharacterLine contains a tab character.44
 ErrorwhitespaceFileTabCharacterLine contains a tab character.45
 ErrorwhitespaceFileTabCharacterLine contains a tab character.47
 ErrordesignDesignForExtensionMethod 'setEmpName' is not designed for extension - needs to be abstract, final or empty.47
 ErrorjavadocJavadocMethodMissing a Javadoc comment.47
 ErrormiscFinalParametersParameter empName should be final.47
 ErrorcodingHiddenField'empName' hides a field.47
 ErrorwhitespaceFileTabCharacterLine contains a tab character.48
 ErrorwhitespaceFileTabCharacterLine contains a tab character.49
 ErrorwhitespaceFileTabCharacterLine contains a tab character.51
 ErrordesignDesignForExtensionMethod 'getEmpAddress' is not designed for extension - needs to be abstract, final or empty.51
 ErrorjavadocJavadocMethodMissing a Javadoc comment.51
 ErrorwhitespaceFileTabCharacterLine contains a tab character.52
 ErrorwhitespaceFileTabCharacterLine contains a tab character.53
 ErrorwhitespaceFileTabCharacterLine contains a tab character.55
 ErrordesignDesignForExtensionMethod 'setEmpAddress' is not designed for extension - needs to be abstract, final or empty.55
 ErrorjavadocJavadocMethodMissing a Javadoc comment.55
 ErrormiscFinalParametersParameter empAddress should be final.55
 ErrorcodingHiddenField'empAddress' hides a field.55
 ErrorwhitespaceFileTabCharacterLine contains a tab character.56
 ErrorwhitespaceFileTabCharacterLine contains a tab character.57
 ErrorwhitespaceFileTabCharacterLine contains a tab character.59
 ErrordesignDesignForExtensionMethod 'getSalary' is not designed for extension - needs to be abstract, final or empty.59
 ErrorjavadocJavadocMethodMissing a Javadoc comment.59
 ErrorwhitespaceFileTabCharacterLine contains a tab character.60
 ErrorwhitespaceFileTabCharacterLine contains a tab character.61
 ErrorwhitespaceFileTabCharacterLine contains a tab character.63
 ErrordesignDesignForExtensionMethod 'setSalary' is not designed for extension - needs to be abstract, final or empty.63
 ErrorjavadocJavadocMethodMissing a Javadoc comment.63
 ErrormiscFinalParametersParameter salary should be final.63
 ErrorcodingHiddenField'salary' hides a field.63
 ErrorwhitespaceFileTabCharacterLine contains a tab character.64
 ErrorwhitespaceFileTabCharacterLine contains a tab character.65
 ErrorwhitespaceFileTabCharacterLine contains a tab character.67
 ErrordesignDesignForExtensionMethod 'getEmpAge' is not designed for extension - needs to be abstract, final or empty.67
 ErrorjavadocJavadocMethodMissing a Javadoc comment.67
 ErrorwhitespaceFileTabCharacterLine contains a tab character.68
 ErrorwhitespaceFileTabCharacterLine contains a tab character.69
 ErrorwhitespaceFileTabCharacterLine contains a tab character.71
 ErrordesignDesignForExtensionMethod 'setEmpAge' is not designed for extension - needs to be abstract, final or empty.71
 ErrorjavadocJavadocMethodMissing a Javadoc comment.71
 ErrormiscFinalParametersParameter empAge should be final.71
 ErrorcodingHiddenField'empAge' hides a field.71
 ErrorwhitespaceFileTabCharacterLine contains a tab character.72
 ErrorwhitespaceFileTabCharacterLine contains a tab character.73

com/sample/model/Image.java

SeverityCategoryRuleMessageLine
 ErrorjavadocJavadocPackageMissing package-info.java file.
 ErrorjavadocJavadocTypeMissing a Javadoc comment.12
 ErrorwhitespaceWhitespaceAround'=' is not preceded with whitespace.13
 ErrorwhitespaceWhitespaceAround'=' is not followed by whitespace.13
 ErrorwhitespaceWhitespaceAround'{' is not preceded with whitespace.14
 ErrorwhitespaceFileTabCharacterLine contains a tab character.16
 ErrorjavadocJavadocVariableMissing a Javadoc comment.16
 ErrorregexpRegexpSinglelineLine has trailing spaces.17
 ErrorwhitespaceFileTabCharacterLine contains a tab character.17
 ErrorwhitespaceFileTabCharacterLine contains a tab character.18
 ErrorjavadocJavadocVariableMissing a Javadoc comment.18
 ErrorwhitespaceFileTabCharacterLine contains a tab character.19
 ErrorwhitespaceWhitespaceAround'=' is not preceded with whitespace.19
 ErrorwhitespaceWhitespaceAround'=' is not followed by whitespace.19
 ErrorwhitespaceFileTabCharacterLine contains a tab character.20
 ErrorwhitespaceFileTabCharacterLine contains a tab character.21
 ErrorregexpRegexpSinglelineLine has trailing spaces.22
 ErrorwhitespaceFileTabCharacterLine contains a tab character.22
 ErrorwhitespaceFileTabCharacterLine contains a tab character.23
 ErrorjavadocJavadocVariableMissing a Javadoc comment.23
 ErrorwhitespaceWhitespaceAround'=' is not preceded with whitespace.23
 ErrorwhitespaceWhitespaceAround'=' is not followed by whitespace.23
 ErrorwhitespaceFileTabCharacterLine contains a tab character.24
 ErrorwhitespaceFileTabCharacterLine contains a tab character.26
 ErrorwhitespaceFileTabCharacterLine contains a tab character.27
 ErrorwhitespaceFileTabCharacterLine contains a tab character.28
 ErrorwhitespaceFileTabCharacterLine contains a tab character.29
 ErrordesignDesignForExtensionMethod 'getId' is not designed for extension - needs to be abstract, final or empty.29
 ErrorwhitespaceFileTabCharacterLine contains a tab character.30
 ErrorwhitespaceFileTabCharacterLine contains a tab character.31
 ErrorwhitespaceFileTabCharacterLine contains a tab character.33
 ErrorwhitespaceFileTabCharacterLine contains a tab character.34
 ErrorwhitespaceFileTabCharacterLine contains a tab character.35
 ErrorwhitespaceFileTabCharacterLine contains a tab character.36
 ErrordesignDesignForExtensionMethod 'setId' is not designed for extension - needs to be abstract, final or empty.36
 ErrormiscFinalParametersParameter id should be final.36
 ErrorcodingHiddenField'id' hides a field.36
 ErrorwhitespaceFileTabCharacterLine contains a tab character.37
 ErrorwhitespaceFileTabCharacterLine contains a tab character.38
 ErrorwhitespaceFileTabCharacterLine contains a tab character.40
 ErrorwhitespaceFileTabCharacterLine contains a tab character.41
 ErrorwhitespaceFileTabCharacterLine contains a tab character.42
 ErrorwhitespaceFileTabCharacterLine contains a tab character.43
 ErrordesignDesignForExtensionMethod 'getImageName' is not designed for extension - needs to be abstract, final or empty.43
 ErrorwhitespaceFileTabCharacterLine contains a tab character.44
 ErrorwhitespaceFileTabCharacterLine contains a tab character.45
 ErrorwhitespaceFileTabCharacterLine contains a tab character.47
 ErrorwhitespaceFileTabCharacterLine contains a tab character.48
 ErrorwhitespaceFileTabCharacterLine contains a tab character.49
 ErrorwhitespaceFileTabCharacterLine contains a tab character.50
 ErrordesignDesignForExtensionMethod 'setImageName' is not designed for extension - needs to be abstract, final or empty.50
 ErrormiscFinalParametersParameter imageName should be final.50
 ErrorcodingHiddenField'imageName' hides a field.50
 ErrorwhitespaceFileTabCharacterLine contains a tab character.51
 ErrorwhitespaceFileTabCharacterLine contains a tab character.52
 ErrorregexpRegexpSinglelineLine has trailing spaces.53
 ErrorwhitespaceFileTabCharacterLine contains a tab character.53

com/sample/service/EmployeeService.java

SeverityCategoryRuleMessageLine
 ErrorjavadocJavadocTypeMissing a Javadoc comment.8
 ErrorregexpRegexpSinglelineLine has trailing spaces.9
 ErrorwhitespaceFileTabCharacterLine contains a tab character.9
 ErrorwhitespaceFileTabCharacterLine contains a tab character.10
 ErrorjavadocJavadocMethodMissing a Javadoc comment.10
 ErrormodifierRedundantModifierRedundant 'public' modifier.10
 ErrorwhitespaceFileTabCharacterLine contains a tab character.12
 ErrorjavadocJavadocMethodMissing a Javadoc comment.12
 ErrormodifierRedundantModifierRedundant 'public' modifier.12
 ErrorregexpRegexpSinglelineLine has trailing spaces.13
 ErrorwhitespaceFileTabCharacterLine contains a tab character.13
 ErrorwhitespaceFileTabCharacterLine contains a tab character.14
 ErrorjavadocJavadocMethodMissing a Javadoc comment.14
 ErrormodifierRedundantModifierRedundant 'public' modifier.14
 ErrorregexpRegexpSinglelineLine has trailing spaces.15
 ErrorwhitespaceFileTabCharacterLine contains a tab character.15
 ErrorwhitespaceFileTabCharacterLine contains a tab character.16
 ErrorjavadocJavadocMethodMissing a Javadoc comment.16
 ErrormodifierRedundantModifierRedundant 'public' modifier.16

com/sample/service/EmployeeServiceImpl.java

SeverityCategoryRuleMessageLine
 ErrorjavadocJavadocTypeMissing a Javadoc comment.13
 ErrorwhitespaceFileTabCharacterLine contains a tab character.17
 ErrorjavadocJavadocVariableMissing a Javadoc comment.17
 ErrorwhitespaceFileTabCharacterLine contains a tab character.18
 ErrorregexpRegexpSinglelineLine has trailing spaces.19
 ErrorwhitespaceFileTabCharacterLine contains a tab character.19
 ErrorwhitespaceFileTabCharacterLine contains a tab character.20
 ErrordesignDesignForExtensionMethod 'addEmployee' is not designed for extension - needs to be abstract, final or empty.20
 ErrorjavadocJavadocMethodMissing a Javadoc comment.20
 ErrorwhitespaceFileTabCharacterLine contains a tab character.21
 ErrormiscFinalParametersParameter employee should be final.21
 ErrorwhitespaceFileTabCharacterLine contains a tab character.22
 ErrorwhitespaceWhitespaceAround'try' is not followed by whitespace.22
 ErrorwhitespaceWhitespaceAround'{' is not preceded with whitespace.22
 ErrorblocksEmptyBlockMust have at least one statement.22
 ErrorregexpRegexpSinglelineLine has trailing spaces.23
 ErrorwhitespaceFileTabCharacterLine contains a tab character.23
 ErrorwhitespaceFileTabCharacterLine contains a tab character.24
 ErrorwhitespaceWhitespaceAround'{' is not preceded with whitespace.24
 ErrorblocksEmptyBlockMust have at least one statement.24
 ErrorregexpRegexpSinglelineLine has trailing spaces.25
 ErrorwhitespaceFileTabCharacterLine contains a tab character.25
 ErrorwhitespaceFileTabCharacterLine contains a tab character.26
 ErrorwhitespaceFileTabCharacterLine contains a tab character.27
 ErrorwhitespaceFileTabCharacterLine contains a tab character.28
 ErrorregexpRegexpSinglelineLine has trailing spaces.29
 ErrorwhitespaceFileTabCharacterLine contains a tab character.29
 ErrorwhitespaceFileTabCharacterLine contains a tab character.30
 ErrordesignDesignForExtensionMethod 'listEmployeess' is not designed for extension - needs to be abstract, final or empty.30
 ErrorjavadocJavadocMethodMissing a Javadoc comment.30
 ErrorwhitespaceFileTabCharacterLine contains a tab character.31
 ErrorwhitespaceFileTabCharacterLine contains a tab character.32
 ErrorwhitespaceFileTabCharacterLine contains a tab character.34
 ErrordesignDesignForExtensionMethod 'getEmployee' is not designed for extension - needs to be abstract, final or empty.34
 ErrorjavadocJavadocMethodMissing a Javadoc comment.34
 ErrormiscFinalParametersParameter empid should be final.34
 ErrorwhitespaceFileTabCharacterLine contains a tab character.35
 ErrorwhitespaceFileTabCharacterLine contains a tab character.36
 ErrorregexpRegexpSinglelineLine has trailing spaces.37
 ErrorwhitespaceFileTabCharacterLine contains a tab character.37
 ErrorwhitespaceFileTabCharacterLine contains a tab character.38
 ErrordesignDesignForExtensionMethod 'deleteEmployee' is not designed for extension - needs to be abstract, final or empty.38
 ErrorjavadocJavadocMethodMissing a Javadoc comment.38
 ErrormiscFinalParametersParameter employee should be final.38
 ErrorwhitespaceFileTabCharacterLine contains a tab character.39
 ErrorwhitespaceFileTabCharacterLine contains a tab character.40
 ErrorwhitespaceFileTabCharacterLine contains a tab character.42
 ErrordesignDesignForExtensionMethod 'setEmployeeDao' is not designed for extension - needs to be abstract, final or empty.42
 ErrorjavadocJavadocMethodMissing a Javadoc comment.42
 ErrormiscFinalParametersParameter employeeDao should be final.42
 ErrorcodingHiddenField'employeeDao' hides a field.42
 ErrorwhitespaceFileTabCharacterLine contains a tab character.43
 ErrorwhitespaceFileTabCharacterLine contains a tab character.44

com/sample/service/ImageService.java

SeverityCategoryRuleMessageLine
 ErrorjavadocJavadocTypeMissing a Javadoc comment.8
 ErrorregexpRegexpSinglelineLine has trailing spaces.9
 ErrorwhitespaceFileTabCharacterLine contains a tab character.9
 ErrorwhitespaceFileTabCharacterLine contains a tab character.10
 ErrorjavadocJavadocMethodMissing a Javadoc comment.10
 ErrormodifierRedundantModifierRedundant 'public' modifier.10
 ErrorwhitespaceFileTabCharacterLine contains a tab character.12
 ErrorjavadocJavadocMethodMissing a Javadoc comment.12
 ErrormodifierRedundantModifierRedundant 'public' modifier.12
 ErrorregexpRegexpSinglelineLine has trailing spaces.13
 ErrorwhitespaceFileTabCharacterLine contains a tab character.13
 ErrorwhitespaceFileTabCharacterLine contains a tab character.14
 ErrorjavadocJavadocMethodMissing a Javadoc comment.14
 ErrormodifierRedundantModifierRedundant 'public' modifier.14
 ErrorregexpRegexpSinglelineLine has trailing spaces.15
 ErrorwhitespaceFileTabCharacterLine contains a tab character.15

com/sample/service/ImageServiceImpl.java

SeverityCategoryRuleMessageLine
 ErrorjavadocJavadocPackageMissing package-info.java file.
 ErrorjavadocJavadocTypeMissing a Javadoc comment.16
 ErrorwhitespaceFileTabCharacterLine contains a tab character.20
 ErrorjavadocJavadocVariableMissing a Javadoc comment.20
 ErrorwhitespaceFileTabCharacterLine contains a tab character.21
 ErrorregexpRegexpSinglelineLine has trailing spaces.22
 ErrorwhitespaceFileTabCharacterLine contains a tab character.22
 ErrorwhitespaceFileTabCharacterLine contains a tab character.23
 ErrordesignDesignForExtensionMethod 'saveImage' is not designed for extension - needs to be abstract, final or empty.23
 ErrorjavadocJavadocMethodMissing a Javadoc comment.23
 ErrorwhitespaceFileTabCharacterLine contains a tab character.24
 ErrormiscFinalParametersParameter image should be final.24
 ErrorwhitespaceFileTabCharacterLine contains a tab character.25
 ErrorwhitespaceWhitespaceAround'try' is not followed by whitespace.25
 ErrorwhitespaceWhitespaceAround'{' is not preceded with whitespace.25
 ErrorblocksEmptyBlockMust have at least one statement.25
 ErrorregexpRegexpSinglelineLine has trailing spaces.26
 ErrorwhitespaceFileTabCharacterLine contains a tab character.26
 ErrorwhitespaceFileTabCharacterLine contains a tab character.27
 ErrorwhitespaceWhitespaceAround'{' is not preceded with whitespace.27
 ErrorblocksEmptyBlockMust have at least one statement.27
 ErrorregexpRegexpSinglelineLine has trailing spaces.28
 ErrorwhitespaceFileTabCharacterLine contains a tab character.28
 ErrorwhitespaceFileTabCharacterLine contains a tab character.29
 ErrorwhitespaceFileTabCharacterLine contains a tab character.30
 ErrorwhitespaceFileTabCharacterLine contains a tab character.31
 ErrorregexpRegexpSinglelineLine has trailing spaces.32
 ErrorwhitespaceFileTabCharacterLine contains a tab character.32
 ErrorwhitespaceFileTabCharacterLine contains a tab character.33
 ErrordesignDesignForExtensionMethod 'listImages' is not designed for extension - needs to be abstract, final or empty.33
 ErrorjavadocJavadocMethodMissing a Javadoc comment.33
 ErrorwhitespaceFileTabCharacterLine contains a tab character.34
 ErrorwhitespaceFileTabCharacterLine contains a tab character.35
 ErrorwhitespaceFileTabCharacterLine contains a tab character.37
 ErrordesignDesignForExtensionMethod 'getImage' is not designed for extension - needs to be abstract, final or empty.37
 ErrorjavadocJavadocMethodMissing a Javadoc comment.37
 ErrormiscFinalParametersParameter imgid should be final.37
 ErrorwhitespaceFileTabCharacterLine contains a tab character.38
 ErrorwhitespaceFileTabCharacterLine contains a tab character.39
 ErrorregexpRegexpSinglelineLine has trailing spaces.40
 ErrorwhitespaceFileTabCharacterLine contains a tab character.40
 ErrorregexpRegexpSinglelineLine has trailing spaces.41
 ErrorwhitespaceFileTabCharacterLine contains a tab character.41
 ErrorwhitespaceFileTabCharacterLine contains a tab character.42
 ErrordesignDesignForExtensionMethod 'setImageDao' is not designed for extension - needs to be abstract, final or empty.42
 ErrorjavadocJavadocMethodMissing a Javadoc comment.42
 ErrormiscFinalParametersParameter imageDao should be final.42
 ErrorcodingHiddenField'imageDao' hides a field.42
 ErrorwhitespaceFileTabCharacterLine contains a tab character.43
 ErrorwhitespaceFileTabCharacterLine contains a tab character.44
 ErrorregexpRegexpSinglelineLine has trailing spaces.45
 ErrorwhitespaceFileTabCharacterLine contains a tab character.45
 ErrorwhitespaceFileTabCharacterLine contains a tab character.46
 ErrorjavadocJavadocMethodMissing a Javadoc comment.46
 ErrorwhitespaceWhitespaceAround'{' is not preceded with whitespace.46
 ErrorwhitespaceFileTabCharacterLine contains a tab character.47
 ErrorwhitespaceWhitespaceAround'if' is not followed by whitespace.47
 ErrorsizesLineLengthLine is longer than 80 characters (found 107).48
 ErrorwhitespaceFileTabCharacterLine contains a tab character.48
 ErrorwhitespaceFileTabCharacterLine contains a tab character.49
 ErrorwhitespaceFileTabCharacterLine contains a tab character.50
 ErrorwhitespaceFileTabCharacterLine contains a tab character.51
 ErrorwhitespaceFileTabCharacterLine contains a tab character.52

com/sample/servlet/DownloadServlet.java

SeverityCategoryRuleMessageLine
 ErrormiscNewlineAtEndOfFileFile does not end with a newline.
 ErrorregexpRegexpSinglelineLine has trailing spaces.9
 ErrorregexpRegexpSinglelineLine has trailing spaces.20
 ErrorjavadocJavadocTypeMissing a Javadoc comment.21
 ErrorregexpRegexpSinglelineLine has trailing spaces.22
 ErrordesignDesignForExtensionMethod 'doGet' is not designed for extension - needs to be abstract, final or empty.23
 ErrorjavadocJavadocMethodMissing a Javadoc comment.23
 ErrormiscFinalParametersParameter request should be final.23
 ErrormiscFinalParametersParameter response should be final.24
 ErrorregexpRegexpSinglelineLine has trailing spaces.25
 ErrorwhitespaceFileTabCharacterLine contains a tab character.25
 ErrorwhitespaceFileTabCharacterLine contains a tab character.26
 ErrorregexpRegexpSinglelineLine has trailing spaces.31
 ErrorregexpRegexpSinglelineLine has trailing spaces.34
 ErrorregexpRegexpSinglelineLine has trailing spaces.37
 ErrorregexpRegexpSinglelineLine has trailing spaces.42
 ErrorregexpRegexpSinglelineLine has trailing spaces.46
 ErrorsizesLineLengthLine is longer than 80 characters (found 98).49
 ErrorregexpRegexpSinglelineLine has trailing spaces.51
 ErrorregexpRegexpSinglelineLine has trailing spaces.54
 ErrorcodingMagicNumber'4096' is a magic number.55
 ErrorregexpRegexpSinglelineLine has trailing spaces.57
 ErrorregexpRegexpSinglelineLine has trailing spaces.61
 ErrorregexpRegexpSinglelineLine has trailing spaces.63
 ErrorregexpRegexpSinglelineLine has trailing spaces.65
 ErrorjavadocJavadocMethodMissing a Javadoc comment.66
 ErrorwhitespaceFileTabCharacterLine contains a tab character.67
 ErrorwhitespaceFileTabCharacterLine contains a tab character.68
 ErrorwhitespaceFileTabCharacterLine contains a tab character.69
 ErrorwhitespaceWhitespaceAround'try' is not followed by whitespace.69
 ErrorwhitespaceWhitespaceAround'{' is not preceded with whitespace.69
 ErrorsizesLineLengthLine is longer than 80 characters (found 83).70
 ErrorwhitespaceFileTabCharacterLine contains a tab character.70
 ErrorwhitespaceFileTabCharacterLine contains a tab character.71
 ErrorwhitespaceFileTabCharacterLine contains a tab character.73
 ErrorwhitespaceFileTabCharacterLine contains a tab character.74
 ErrorregexpRegexpSinglelineLine has trailing spaces.75
 ErrorwhitespaceFileTabCharacterLine contains a tab character.75
 ErrorblocksRightCurly'}' should be on the same line.75
 ErrorwhitespaceFileTabCharacterLine contains a tab character.76
 ErrorwhitespaceFileTabCharacterLine contains a tab character.78
 ErrorwhitespaceFileTabCharacterLine contains a tab character.79
 ErrorblocksNeedBraces'if' construct must use '{}'s.80
 ErrorwhitespaceFileTabCharacterLine contains a tab character.80
 ErrorwhitespaceWhitespaceAround'if' is not followed by whitespace.80
 ErrorwhitespaceFileTabCharacterLine contains a tab character.81
 ErrorwhitespaceFileTabCharacterLine contains a tab character.82
 ErrorwhitespaceFileTabCharacterLine contains a tab character.83
 ErrorblocksEmptyBlockMust have at least one statement.83
 ErrorwhitespaceFileTabCharacterLine contains a tab character.84
 ErrorwhitespaceFileTabCharacterLine contains a tab character.85
 ErrorwhitespaceFileTabCharacterLine contains a tab character.86
 ErrorwhitespaceFileTabCharacterLine contains a tab character.87

com/sample/servlet/FileUploadServlet.java

SeverityCategoryRuleMessageLine
 ErrormiscNewlineAtEndOfFileFile does not end with a newline.
 ErrorjavadocJavadocPackageMissing package-info.java file.
 ErrorjavadocJavadocStyleFirst sentence should end with a period.22
 ErrorregexpRegexpSinglelineLine has trailing spaces.26
 ErrordesignDesignForExtensionMethod 'doPost' is not designed for extension - needs to be abstract, final or empty.27
 ErrorsizesLineLengthLine is longer than 80 characters (found 83).28
 ErrormiscFinalParametersParameter request should be final.28
 ErrormiscFinalParametersParameter response should be final.28
 ErrorwhitespaceFileTabCharacterLine contains a tab character.30
 ErrorwhitespaceWhitespaceAround'if' is not followed by whitespace.32
 ErrorwhitespaceWhitespaceAround'{' is not preceded with whitespace.32
 ErrorsizesLineLengthLine is longer than 80 characters (found 90).35
 ErrorregexpRegexpSinglelineLine has trailing spaces.36
 ErrorwhitespaceWhitespaceAround'for' is not followed by whitespace.37
 ErrorwhitespaceWhitespaceAround'{' is not preceded with whitespace.37
 ErrorwhitespaceWhitespaceAround'if' is not followed by whitespace.38
 ErrorwhitespaceWhitespaceAround'{' is not preceded with whitespace.38
 ErrorsizesLineLengthLine is longer than 80 characters (found 86).40
 ErrorwhitespaceParenPad'(' is followed by whitespace.40
 ErrorregexpRegexpSinglelineLine has trailing spaces.43
 ErrorregexpRegexpSinglelineLine has trailing spaces.46
 ErrorregexpRegexpSinglelineLine has trailing spaces.52
 ErrorsizesLineLengthLine is longer than 80 characters (found 82).54
 ErrorregexpRegexpSinglelineLine has trailing spaces.55
 ErrorregexpRegexpSinglelineLine has trailing spaces.56
 ErrorregexpRegexpSinglelineLine has trailing spaces.57
 ErrorwhitespaceWhitespaceAround'else' is not preceded with whitespace.58
 ErrorwhitespaceWhitespaceAround'}' is not followed by whitespace.58
 ErrorwhitespaceWhitespaceAround'else' is not followed by whitespace.58
 ErrorwhitespaceWhitespaceAround'{' is not preceded with whitespace.58
 ErrorsizesLineLengthLine is longer than 80 characters (found 88).60
 ErrorregexpRegexpSinglelineLine has trailing spaces.62
 ErrorregexpRegexpSinglelineLine has trailing spaces.63
 ErrorregexpRegexpSinglelineLine has trailing spaces.65
 ErrorregexpRegexpSinglelineLine has trailing spaces.67
 ErrorjavadocJavadocMethodMissing a Javadoc comment.68
 ErrorwhitespaceFileTabCharacterLine contains a tab character.69
 ErrorwhitespaceFileTabCharacterLine contains a tab character.70
 ErrorwhitespaceFileTabCharacterLine contains a tab character.71
 ErrorwhitespaceWhitespaceAround'try' is not followed by whitespace.71
 ErrorwhitespaceWhitespaceAround'{' is not preceded with whitespace.71
 ErrorsizesLineLengthLine is longer than 80 characters (found 83).72
 ErrorwhitespaceFileTabCharacterLine contains a tab character.72
 ErrorwhitespaceFileTabCharacterLine contains a tab character.73
 ErrorwhitespaceFileTabCharacterLine contains a tab character.75
 ErrorwhitespaceFileTabCharacterLine contains a tab character.76
 ErrorregexpRegexpSinglelineLine has trailing spaces.77
 ErrorwhitespaceFileTabCharacterLine contains a tab character.77
 ErrorblocksRightCurly'}' should be on the same line.77
 ErrorwhitespaceFileTabCharacterLine contains a tab character.78
 ErrorwhitespaceFileTabCharacterLine contains a tab character.80
 ErrorwhitespaceFileTabCharacterLine contains a tab character.81
 ErrorblocksNeedBraces'if' construct must use '{}'s.82
 ErrorwhitespaceFileTabCharacterLine contains a tab character.82
 ErrorwhitespaceWhitespaceAround'if' is not followed by whitespace.82
 ErrorwhitespaceFileTabCharacterLine contains a tab character.83
 ErrorwhitespaceFileTabCharacterLine contains a tab character.84
 ErrorwhitespaceFileTabCharacterLine contains a tab character.85
 ErrorblocksEmptyBlockMust have at least one statement.85
 ErrorwhitespaceFileTabCharacterLine contains a tab character.86
 ErrorwhitespaceFileTabCharacterLine contains a tab character.87
 ErrorwhitespaceFileTabCharacterLine contains a tab character.88
 ErrorwhitespaceFileTabCharacterLine contains a tab character.89

database.properties

SeverityCategoryRuleMessageLine
 ErrormiscNewlineAtEndOfFileFile does not end with a newline.
+
+
+
+
+
+ + + diff --git a/target/site/checkstyle.rss b/target/site/checkstyle.rss new file mode 100644 index 00000000..e0b9787f --- /dev/null +++ b/target/site/checkstyle.rss @@ -0,0 +1,278 @@ + + + + + Spring3HibernateApp - Checkstyle report + http://maven.apache.org + Spring3HibernateApp - Checkstyle report + en-us + ©2020 + + File: 16, + Errors: 813, + Warnings: 0, + Infos: 0 + + http://maven.apache.org/checkstyle.html + +

Click here for the full Checkstyle report.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FilesIWE
+ com/sample/servlet/DownloadServlet.java + + 0 + + 0 + + 53 +
+ com/sample/servlet/FileUploadServlet.java + + 0 + + 0 + + 63 +
+ com/sample/dao/ImageDaoImpl.java + + 0 + + 0 + + 31 +
+ com/sample/dao/ImageDao.java + + 0 + + 0 + + 19 +
+ com/sample/controller/EmployeeController.java + + 0 + + 0 + + 175 +
+ com/sample/bean/EmployeeBean.java + + 0 + + 0 + + 73 +
+ com/sample/model/Employee.java + + 0 + + 0 + + 103 +
+ com/sample/dao/EmployeeDaoImpl.java + + 0 + + 0 + + 35 +
+ com/sample/bean/FileBean.java + + 0 + + 0 + + 33 +
+ com/sample/service/ImageServiceImpl.java + + 0 + + 0 + + 63 +
+ database.properties + + 0 + + 0 + + 1 +
+ com/sample/service/EmployeeService.java + + 0 + + 0 + + 19 +
+ com/sample/service/ImageService.java + + 0 + + 0 + + 16 +
+ com/sample/dao/EmployeeDao.java + + 0 + + 0 + + 19 +
+ com/sample/service/EmployeeServiceImpl.java + + 0 + + 0 + + 53 +
+ com/sample/model/Image.java + + 0 + + 0 + + 57 +
+ +
+
+
+
+ diff --git a/target/site/cobertura/coverage.xml b/target/site/cobertura/coverage.xml new file mode 100644 index 00000000..4f552612 --- /dev/null +++ b/target/site/cobertura/coverage.xml @@ -0,0 +1,905 @@ + + + + + + /home/upasna/spring3hibernate/src/main/java + --source + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/target/site/images/rss.png b/target/site/images/rss.png new file mode 100644 index 00000000..f0796ac8 Binary files /dev/null and b/target/site/images/rss.png differ diff --git a/target/site/pmd.html b/target/site/pmd.html new file mode 100644 index 00000000..bd95a8ed --- /dev/null +++ b/target/site/pmd.html @@ -0,0 +1,370 @@ + + + + + + PMD Results + + + + + + + + + +
+ +
+
+
+
+

PMD Results

+

The following document contains the results of PMD 6.21.0.

+
+

Violations By Priority

+
+

Priority 3

+
+

com/sample/dao/EmployeeDao.java

+ + + + + + + + + + + + + + + + + + + + +
RuleViolationLine
UnnecessaryModifierUnnecessary modifier 'public' on method 'addEmployee': the method is declared in an interface type9
UnnecessaryModifierUnnecessary modifier 'public' on method 'listEmployeess': the method is declared in an interface type11
UnnecessaryModifierUnnecessary modifier 'public' on method 'getEmployee': the method is declared in an interface type13
UnnecessaryModifierUnnecessary modifier 'public' on method 'deleteEmployee': the method is declared in an interface type15
+
+

com/sample/dao/ImageDao.java

+ + + + + + + + + + + + + + + + +
RuleViolationLine
UnnecessaryModifierUnnecessary modifier 'public' on method 'saveImage': the method is declared in an interface type9
UnnecessaryModifierUnnecessary modifier 'public' on method 'listImages': the method is declared in an interface type11
UnnecessaryModifierUnnecessary modifier 'public' on method 'getImage': the method is declared in an interface type13
+
+

com/sample/service/EmployeeService.java

+ + + + + + + + + + + + + + + + + + + + +
RuleViolationLine
UnnecessaryModifierUnnecessary modifier 'public' on method 'addEmployee': the method is declared in an interface type10
UnnecessaryModifierUnnecessary modifier 'public' on method 'listEmployeess': the method is declared in an interface type12
UnnecessaryModifierUnnecessary modifier 'public' on method 'getEmployee': the method is declared in an interface type14
UnnecessaryModifierUnnecessary modifier 'public' on method 'deleteEmployee': the method is declared in an interface type16
+
+

com/sample/service/EmployeeServiceImpl.java

+ + + + + + + + + + + + +
RuleViolationLine
EmptyTryBlockAvoid empty try blocks22–24
EmptyCatchBlockAvoid empty catch blocks24–26
+
+

com/sample/service/ImageService.java

+ + + + + + + + + + + + + + + + +
RuleViolationLine
UnnecessaryModifierUnnecessary modifier 'public' on method 'saveImage': the method is declared in an interface type10
UnnecessaryModifierUnnecessary modifier 'public' on method 'listImages': the method is declared in an interface type12
UnnecessaryModifierUnnecessary modifier 'public' on method 'getImage': the method is declared in an interface type14
+
+

com/sample/service/ImageServiceImpl.java

+ + + + + + + + + + + + +
RuleViolationLine
EmptyTryBlockAvoid empty try blocks25–27
EmptyCatchBlockAvoid empty catch blocks27–29
+
+

com/sample/servlet/DownloadServlet.java

+ + + + + + + + +
RuleViolationLine
EmptyCatchBlockAvoid empty catch blocks83–85
+
+

com/sample/servlet/FileUploadServlet.java

+ + + + + + + + +
RuleViolationLine
EmptyCatchBlockAvoid empty catch blocks85–87
+
+

Files

+
+

com/sample/dao/EmployeeDao.java

+ + + + + + + + + + + + + + + + + + + + + + + + + +
RuleViolationPriorityLine
UnnecessaryModifierUnnecessary modifier 'public' on method 'addEmployee': the method is declared in an interface type39
UnnecessaryModifierUnnecessary modifier 'public' on method 'listEmployeess': the method is declared in an interface type311
UnnecessaryModifierUnnecessary modifier 'public' on method 'getEmployee': the method is declared in an interface type313
UnnecessaryModifierUnnecessary modifier 'public' on method 'deleteEmployee': the method is declared in an interface type315
+
+

com/sample/dao/ImageDao.java

+ + + + + + + + + + + + + + + + + + + + +
RuleViolationPriorityLine
UnnecessaryModifierUnnecessary modifier 'public' on method 'saveImage': the method is declared in an interface type39
UnnecessaryModifierUnnecessary modifier 'public' on method 'listImages': the method is declared in an interface type311
UnnecessaryModifierUnnecessary modifier 'public' on method 'getImage': the method is declared in an interface type313
+
+

com/sample/service/EmployeeService.java

+ + + + + + + + + + + + + + + + + + + + + + + + + +
RuleViolationPriorityLine
UnnecessaryModifierUnnecessary modifier 'public' on method 'addEmployee': the method is declared in an interface type310
UnnecessaryModifierUnnecessary modifier 'public' on method 'listEmployeess': the method is declared in an interface type312
UnnecessaryModifierUnnecessary modifier 'public' on method 'getEmployee': the method is declared in an interface type314
UnnecessaryModifierUnnecessary modifier 'public' on method 'deleteEmployee': the method is declared in an interface type316
+
+

com/sample/service/EmployeeServiceImpl.java

+ + + + + + + + + + + + + + + +
RuleViolationPriorityLine
EmptyTryBlockAvoid empty try blocks322–24
EmptyCatchBlockAvoid empty catch blocks324–26
+
+

com/sample/service/ImageService.java

+ + + + + + + + + + + + + + + + + + + + +
RuleViolationPriorityLine
UnnecessaryModifierUnnecessary modifier 'public' on method 'saveImage': the method is declared in an interface type310
UnnecessaryModifierUnnecessary modifier 'public' on method 'listImages': the method is declared in an interface type312
UnnecessaryModifierUnnecessary modifier 'public' on method 'getImage': the method is declared in an interface type314
+
+

com/sample/service/ImageServiceImpl.java

+ + + + + + + + + + + + + + + +
RuleViolationPriorityLine
EmptyTryBlockAvoid empty try blocks325–27
EmptyCatchBlockAvoid empty catch blocks327–29
+
+

com/sample/servlet/DownloadServlet.java

+ + + + + + + + + + +
RuleViolationPriorityLine
EmptyCatchBlockAvoid empty catch blocks383–85
+
+

com/sample/servlet/FileUploadServlet.java

+ + + + + + + + + + +
RuleViolationPriorityLine
EmptyCatchBlockAvoid empty catch blocks385–87
+
+
+
+
+
+ + + diff --git a/target/surefire-reports/TEST-com.sample.bean.EmployeeBeanTest.xml b/target/surefire-reports/TEST-com.sample.bean.EmployeeBeanTest.xml new file mode 100644 index 00000000..3826c764 --- /dev/null +++ b/target/surefire-reports/TEST-com.sample.bean.EmployeeBeanTest.xml @@ -0,0 +1,67 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/target/surefire-reports/TEST-com.sample.service.EmployeeServiceImplTest.xml b/target/surefire-reports/TEST-com.sample.service.EmployeeServiceImplTest.xml new file mode 100644 index 00000000..31be68a8 --- /dev/null +++ b/target/surefire-reports/TEST-com.sample.service.EmployeeServiceImplTest.xml @@ -0,0 +1,68 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/target/surefire-reports/com.sample.bean.EmployeeBeanTest.txt b/target/surefire-reports/com.sample.bean.EmployeeBeanTest.txt new file mode 100644 index 00000000..6e27e53c --- /dev/null +++ b/target/surefire-reports/com.sample.bean.EmployeeBeanTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: com.sample.bean.EmployeeBeanTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 sec diff --git a/target/surefire-reports/com.sample.service.EmployeeServiceImplTest.txt b/target/surefire-reports/com.sample.service.EmployeeServiceImplTest.txt new file mode 100644 index 00000000..867dba21 --- /dev/null +++ b/target/surefire-reports/com.sample.service.EmployeeServiceImplTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: com.sample.service.EmployeeServiceImplTest +------------------------------------------------------------------------------- +Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.284 sec diff --git a/target/test-classes/com/sample/bean/EmployeeBeanTest.class b/target/test-classes/com/sample/bean/EmployeeBeanTest.class new file mode 100644 index 00000000..e7a54d95 Binary files /dev/null and b/target/test-classes/com/sample/bean/EmployeeBeanTest.class differ diff --git a/target/test-classes/com/sample/service/EmployeeServiceImplTest.class b/target/test-classes/com/sample/service/EmployeeServiceImplTest.class new file mode 100644 index 00000000..6c38291a Binary files /dev/null and b/target/test-classes/com/sample/service/EmployeeServiceImplTest.class differ diff --git a/test b/test new file mode 100644 index 00000000..9d8a4e73 --- /dev/null +++ b/test @@ -0,0 +1 @@ +this is test file diff --git a/test1 b/test1 new file mode 100644 index 00000000..a5bce3fd --- /dev/null +++ b/test1 @@ -0,0 +1 @@ +test1 diff --git a/tomcat.service b/tomcat.service new file mode 100644 index 00000000..06c3d7a2 --- /dev/null +++ b/tomcat.service @@ -0,0 +1,21 @@ +[Unit] +Description=Apache Tomcat Web Application Container +After=network.target +[Service] +Type=forking +Environment=JAVA_HOME=/usr/lib/jvm/java-1.11.0-openjdk-amd64 +Environment=CATALINA_PID=/opt/tomcat7/temp/tomcat.pid +Environment=CATALINA_HOME=/opt/tomcat +Environment=CATALINA_BASE=/opt/tomcat +Environment='CATALINA_OPTS=-Xms512M -Xmx1024M -server -XX:+UseParallelGC' +Environment='JAVA_OPTS=-Djava.awt.headless=true -Djava.security.egd=file:/dev/./urandom' +ExecStart=/opt/tomcat/bin/startup.sh +ExecStop=/opt/tomcat/bin/shutdown.sh +User=tomcat +Group=tomcat +UMask=0007 +RestartSec=10 +Restart=always +[Install] +WantedBy=multi-user.target + diff --git a/tomcat1.yml b/tomcat1.yml new file mode 100644 index 00000000..b58d66b3 --- /dev/null +++ b/tomcat1.yml @@ -0,0 +1,35 @@ +--- +- hosts: all + become: yes + tasks: + - name: epel install + shell: amazon-linux-extras install epel -y + - name: Java install + yum: + name: java-1.8.0 + state: present + - name: Git install + yum: + name: git + state: present + - name: DOWNLOAD TOMCAT + uri: + url: https://mirrors.estointernet.in/apache/tomcat/tomcat-9/v9.0.34/bin/apache-tomcat-9.0.34.tar.gz + dest: /opt/ + - name: EXTRACTION + unarchive: + src: /opt/apache-tomcat-9.0.34.tar.gz + dest: /opt/ + remote_src: yes + - name: Start tomcat + shell: /opt/apache-tomcat-9.0.34/bin/startup.sh + - name: Cloning Git + git: + repo: https://github.com/upasna-kanojia/spring3hibernate.git + dest: /ops + clone: yes + - name: Copy App into webapps + copy: + remote_src: true + src: /ops/target/Spring3HibernateApp.war + dest: /opt/apache-tomcat-9.0.34/webapps/ diff --git a/upasna/inventory b/upasna/inventory new file mode 100644 index 00000000..c546b1d3 --- /dev/null +++ b/upasna/inventory @@ -0,0 +1 @@ +vagrant 192.168.33.11 diff --git a/vars/slack_notifier.groovy b/vars/slack_notifier.groovy new file mode 100644 index 00000000..527ac69c --- /dev/null +++ b/vars/slack_notifier.groovy @@ -0,0 +1,16 @@ +#!/usr/bin/env groovy + +def call(String buildResult) { + if ( buildResult == "SUCCESS" ) { + slackSend color: "good", message: "Job: ${env.JOB_NAME} with buildnumber ${env.BUILD_NUMBER} was successful" + } + else if( buildResult == "FAILURE" ) { + slackSend color: "danger", message: "Job: ${env.JOB_NAME} with buildnumber ${env.BUILD_NUMBER} was failed" + } + else if( buildResult == "UNSTABLE" ) { + slackSend color: "warning", message: "Job: ${env.JOB_NAME} with buildnumber ${env.BUILD_NUMBER} was unstable" + } + else { + slackSend color: "danger", message: "Job: ${env.JOB_NAME} with buildnumber ${env.BUILD_NUMBER} its result was unclear" + } +} diff --git a/wordpress/Dockerfile b/wordpress/Dockerfile new file mode 100644 index 00000000..e0b2198f --- /dev/null +++ b/wordpress/Dockerfile @@ -0,0 +1,14 @@ +FROM wordpress:latest + +MAINTAINER upasna + +ENV WORDPRESS_DB_HOST: db:3306 + +ENV WORDPRESS_DB_USER: wordpress + +ENV WORDPRESS_DB_PASSWORD: wordpress + +ENV WORDPRESS_DB_NAME: wordpress + + + diff --git a/wordpress/Dockerfile.mysql b/wordpress/Dockerfile.mysql new file mode 100644 index 00000000..5275e3d8 --- /dev/null +++ b/wordpress/Dockerfile.mysql @@ -0,0 +1,6 @@ +FROM mysql:5.7 +MAINTAINER upasna +ENV MYSQL_ROOT_PASSWORD=wordpress +ENV MYSQL_DATABASE=wordpress +ENV MYSQL_USER=wordpress +ENV MYSQL_PASSWORD=wordpress