Skip to content

Commit

Permalink
Produto de Software
Browse files Browse the repository at this point in the history
  • Loading branch information
digoIS committed Jun 11, 2017
1 parent f1f9456 commit 70744af
Show file tree
Hide file tree
Showing 52 changed files with 136 additions and 121 deletions.
19 changes: 0 additions & 19 deletions .classpath

This file was deleted.

1 change: 0 additions & 1 deletion .gitignore

This file was deleted.

7 changes: 0 additions & 7 deletions .settings/org.eclipse.jdt.core.prefs

This file was deleted.

9 changes: 0 additions & 9 deletions .settings/org.eclipse.wst.common.component

This file was deleted.

32 changes: 32 additions & 0 deletions Carros/.classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="target/classes" path="src/main/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
<attributes>
<attribute name="owner.project.facets" value="java"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="target/classes"/>
</classpath>
8 changes: 7 additions & 1 deletion .project → Carros/.project
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.validation.validationbuilder</name>
<arguments>
Expand All @@ -29,8 +34,9 @@
<natures>
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
</natures>
</projectDescription>
3 changes: 2 additions & 1 deletion .settings/.jsdtscope → Carros/.settings/.jsdtscope
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="WebContent"/>
<classpathentry kind="src" path="src/main/webapp"/>
<classpathentry kind="src" path="target/m2e-wtp/web-resources"/>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.WebProject">
<attributes>
Expand Down
File renamed without changes.
13 changes: 13 additions & 0 deletions Carros/.settings/org.eclipse.jdt.core.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
org.eclipse.jdt.core.compiler.source=1.8
4 changes: 4 additions & 0 deletions Carros/.settings/org.eclipse.m2e.core.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
activeProfiles=
eclipse.preferences.version=1
resolveWorkspaceProjects=true
version=1
11 changes: 11 additions & 0 deletions Carros/.settings/org.eclipse.wst.common.component
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
<wb-module deploy-name="Carros">
<wb-resource deploy-path="/" source-path="/target/m2e-wtp/web-resources"/>
<wb-resource deploy-path="/" source-path="/src/main/webapp" tag="defaultRootSource"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/resources"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/test/java"/>
<property name="java-output-path" value="/Carros/target/classes"/>
<property name="context-root" value="Carros"/>
</wb-module>
</project-modules>
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
<runtime name="Apache Tomcat v8.0"/>
<fixed facet="java"/>
<fixed facet="wst.jsdt.web"/>
<fixed facet="jst.web"/>
<installed facet="java" version="1.8"/>
<installed facet="jst.web" version="3.1"/>
<installed facet="jst.web" version="2.3"/>
<installed facet="wst.jsdt.web" version="1.0"/>
<installed facet="java" version="1.8"/>
</faceted-project>
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
disabled=06target
eclipse.preferences.version=1
line.separator=\r\n
62 changes: 62 additions & 0 deletions Carros/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>br.com.livro</groupId>
<artifactId>carros</artifactId>
<packaging>war</packaging>
<version>0.0.1-SNAPSHOT</version>
<name>carros Maven Webapp</name>
<url>http://maven.apache.org</url>
<!-- Dependências -->
<dependencies>
<!-- JUnit -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
<!-- Servlet -->
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.0.1</version>
<scope>provided</scope>
</dependency>
<!-- MySQL -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.35</version>
<scope>compile</scope>
</dependency>
<!-- Jersey -->
<dependency>
<groupId>org.glassfish.jersey.containers</groupId>
<artifactId>jersey-container-servlet</artifactId>
<version>2.18</version>
</dependency>
<!-- Google-GSON -->
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.3.1</version>
</dependency>
</dependencies>

<build>
<finalName>carros</finalName>
<plugins>
<!-- Compiler -->
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.8</source>
<target>1.8</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
</plugins>

</build>
</project>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package br.com.livro.rest;

import java.util.List;

import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
Expand All @@ -10,6 +11,7 @@
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

import br.com.livro.domain.Carro;
import br.com.livro.domain.CarroService;
import br.com.livro.domain.Response;
Expand All @@ -19,7 +21,6 @@
@Consumes(MediaType.APPLICATION_JSON + ";charset=utf-8")
public class CarrosResource {
private CarroService carroService = new CarroService();

@GET
public List<Carro> get() {
List<Carro> carros = carroService.getCarros();
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion WebContent/index.jsp → Carros/src/main/webapp/index.jsp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<pre>

<a href="<%=request.getContextPath()%>/rest/hello">/rest/hello</a>

<a href="<%=request.getContextPath()%>/rest/carros">/rest/carros</a>
Expand Down
1 change: 0 additions & 1 deletion README.md

This file was deleted.

9 changes: 0 additions & 9 deletions README.txt

This file was deleted.

Binary file removed WebContent/WEB-INF/lib/gson-2.3.1.jar
Binary file not shown.
Binary file removed WebContent/WEB-INF/lib/hk2-api-2.4.0-b10.jar
Binary file not shown.
Binary file removed WebContent/WEB-INF/lib/hk2-locator-2.4.0-b10.jar
Binary file not shown.
Binary file removed WebContent/WEB-INF/lib/hk2-utils-2.4.0-b10.jar
Binary file not shown.
Binary file removed WebContent/WEB-INF/lib/javax.annotation-api-1.2.jar
Binary file not shown.
Binary file removed WebContent/WEB-INF/lib/javax.inject-2.4.0-b10.jar
Binary file not shown.
Binary file removed WebContent/WEB-INF/lib/javax.ws.rs-api-2.0.1.jar
Binary file not shown.
Binary file removed WebContent/WEB-INF/lib/jersey-client.jar
Binary file not shown.
Binary file removed WebContent/WEB-INF/lib/jersey-common.jar
Binary file not shown.
Binary file not shown.
Binary file removed WebContent/WEB-INF/lib/jersey-container-servlet.jar
Binary file not shown.
Binary file not shown.
Binary file removed WebContent/WEB-INF/lib/jersey-guava-2.17.jar
Binary file not shown.
Binary file removed WebContent/WEB-INF/lib/jersey-json-1.19.jar
Binary file not shown.
Binary file removed WebContent/WEB-INF/lib/jersey-media-jaxb.jar
Binary file not shown.
Binary file not shown.
Binary file removed WebContent/WEB-INF/lib/jersey-server.jar
Binary file not shown.
Binary file removed WebContent/WEB-INF/lib/jettison-1.2.jar
Binary file not shown.
Binary file not shown.
Binary file not shown.
64 changes: 0 additions & 64 deletions src-test/test/CarroTest.java

This file was deleted.

0 comments on commit 70744af

Please sign in to comment.