Browse files

movendo pacotes para br.com.caelum.guj

  • Loading branch information...
1 parent 3d4ddfe commit b46d86ee399786ed79038b2c6608fba3ee744ed5 @lucascs lucascs committed Sep 28, 2009
Showing with 167 additions and 91 deletions.
  1. +0 −12 .amateras
  2. +21 −0 .classpath
  3. +36 −0 .project
  4. +11 −0 .settings/.jsdtscope
  5. +7 −0 .settings/org.eclipse.jdt.core.prefs
  6. +10 −0 .settings/org.eclipse.wst.common.component
  7. +9 −0 .settings/org.eclipse.wst.common.project.facet.core.xml
  8. +1 −0 .settings/org.eclipse.wst.jsdt.ui.superType.container
  9. +1 −0 .settings/org.eclipse.wst.jsdt.ui.superType.name
  10. +0 −11 .tomcatplugin
  11. +6 −6 resources/ehcache.xml
  12. +5 −5 resources/hibernate.cfg.xml
  13. +1 −1 src/br/com/{ → caelum}/guj/Config.java
  14. +3 −3 src/br/com/{ → caelum}/guj/GUJServlet.java
  15. +2 −2 src/br/com/{ → caelum}/guj/feeds/Agregator.java
  16. +1 −1 src/br/com/{ → caelum}/guj/feeds/FeedReader.java
  17. +1 −1 src/br/com/{ → caelum}/guj/feeds/JobsAgregator.java
  18. +1 −1 src/br/com/{ → caelum}/guj/hibernate/HibernateUtil.java
  19. +1 −1 src/br/com/{ → caelum}/guj/hibernate/OpenSessionInViewFilter.java
  20. +5 −5 src/br/com/{ → caelum}/guj/logic/ApproveLogic.java
  21. +6 −6 src/br/com/{ → caelum}/guj/logic/ArticleLogic.java
  22. +3 −3 src/br/com/{ → caelum}/guj/logic/CategoryLogic.java
  23. +5 −5 src/br/com/{ → caelum}/guj/logic/HomeLogic.java
  24. +2 −2 src/br/com/{ → caelum}/guj/logic/JobsLogic.java
  25. +1 −1 src/br/com/{ → caelum}/guj/logic/NewsletterLogic.java
  26. +1 −1 src/br/com/{ → caelum}/guj/model/Article.java
  27. +1 −1 src/br/com/{ → caelum}/guj/model/ArticleLevel.java
  28. +1 −1 src/br/com/{ → caelum}/guj/model/Blog.java
  29. +1 −1 src/br/com/{ → caelum}/guj/model/Category.java
  30. +1 −1 src/br/com/{ → caelum}/guj/model/Post.java
  31. +1 −1 src/br/com/{ → caelum}/guj/model/Tag.java
  32. +1 −1 src/br/com/{ → caelum}/guj/util/FileUtil.java
  33. +5 −5 src/br/com/{ → caelum}/guj/util/TagCloud.java
  34. +3 −0 webapp/META-INF/MANIFEST.MF
  35. +6 −6 webapp/WEB-INF/classes/ehcache.xml
  36. +5 −5 webapp/WEB-INF/classes/hibernate.cfg.xml
  37. +2 −2 webapp/WEB-INF/web.xml
View
12 .amateras
@@ -1,12 +0,0 @@
-#EclipseHTMLEditor configuration file
-#Tue Feb 17 08:30:38 BRT 2009
-validateDTD=false
-javaScriptCompleters=
-useDTD=false
-validateJSP=true
-validateXML=false
-validateJS=false
-removeMarkers=false
-root=/
-validateHTML=false
-javaScripts=
View
21 .classpath
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="src" path="resources"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/java-6-sun-1.6.0.16">
+ <attributes>
+ <attribute name="owner.project.facets" value="jst.java"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="con" path="org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache Tomcat v6.0">
+ <attributes>
+ <attribute name="owner.project.facets" value="jst.web"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
+ <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
+ <classpathentry kind="lib" path="lib/jsp-2.1-6.1.10.jar"/>
+ <classpathentry kind="lib" path="lib/jsp-api-2.1-6.1.10.jar"/>
+ <classpathentry kind="lib" path="lib/servlet-api.jar"/>
+ <classpathentry kind="output" path="webapp/WEB-INF/classes"/>
+</classpath>
View
36 .project
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>guj.com.br</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.wst.common.project.facet.core.builder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.wst.validation.validationbuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <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.wst.jsdt.core.jsNature</nature>
+ </natures>
+</projectDescription>
View
11 .settings/.jsdtscope
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.WebProject">
+ <attributes>
+ <attribute name="hide" value="true"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.baseBrowserLibrary"/>
+ <classpathentry kind="output" path=""/>
+</classpath>
View
7 .settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,7 @@
+#Mon Sep 28 10:18:12 BRT 2009
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
+org.eclipse.jdt.core.compiler.compliance=1.6
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.6
View
10 .settings/org.eclipse.wst.common.component
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project-modules id="moduleCoreId" project-version="1.5.0">
+ <wb-module deploy-name="guj.com.br">
+ <wb-resource deploy-path="/" source-path="/webapp"/>
+ <wb-resource deploy-path="/WEB-INF/classes" source-path="/src"/>
+ <wb-resource deploy-path="/WEB-INF/classes" source-path="/resources"/>
+ <property name="context-root" value="guj.com.br"/>
+ <property name="java-output-path"/>
+ </wb-module>
+</project-modules>
View
9 .settings/org.eclipse.wst.common.project.facet.core.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<faceted-project>
+ <runtime name="Apache Tomcat v6.0"/>
+ <fixed facet="jst.java"/>
+ <fixed facet="jst.web"/>
+ <installed facet="jst.java" version="6.0"/>
+ <installed facet="jst.web" version="2.5"/>
+ <installed facet="wst.jsdt.web" version="1.0"/>
+</faceted-project>
View
1 .settings/org.eclipse.wst.jsdt.ui.superType.container
@@ -0,0 +1 @@
+org.eclipse.wst.jsdt.launching.baseBrowserLibrary
View
1 .settings/org.eclipse.wst.jsdt.ui.superType.name
@@ -0,0 +1 @@
+Window
View
11 .tomcatplugin
@@ -1,11 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<tomcatProjectProperties>
- <rootDir>/</rootDir>
- <exportSource>false</exportSource>
- <reloadable>true</reloadable>
- <redirectLogger>false</redirectLogger>
- <updateXml>true</updateXml>
- <warLocation></warLocation>
- <extraInfo></extraInfo>
- <webPath>/guj3</webPath>
-</tomcatProjectProperties>
View
12 resources/ehcache.xml
@@ -2,31 +2,31 @@
<diskStore path="java.io.tmpdir"/>
<!-- Post -->
- <cache name="br.com.guj.model.Post"
+ <cache name="br.com.caelum.guj.model.Post"
maxElementsInMemory="100"
eternal="true"
overflowToDisk="false"/>
<!-- Blog -->
- <cache name="br.com.guj.model.Blog"
+ <cache name="br.com.caelum.guj.model.Blog"
maxElementsInMemory="100"
eternal="true"
overflowToDisk="false"/>
<!-- Article -->
- <cache name="br.com.guj.model.Article"
+ <cache name="br.com.caelum.guj.model.Article"
maxElementsInMemory="300"
eternal="true"
overflowToDisk="false"/>
<!-- Article Tags -->
- <cache name="br.com.guj.model.Article.tags"
+ <cache name="br.com.caelum.guj.model.Article.tags"
maxElementsInMemory="5000"
eternal="true"
overflowToDisk="false"/>
<!-- Category -->
- <cache name="br.com.guj.model.Category"
+ <cache name="br.com.caelum.guj.model.Category"
maxElementsInMemory="300"
eternal="true"
overflowToDisk="false"/>
@@ -44,7 +44,7 @@
overflowToDisk="false"/>
<!-- Category Articles -->
- <cache name="br.com.guj.model.Category.articles"
+ <cache name="br.com.caelum.guj.model.Category.articles"
maxElementsInMemory="300"
eternal="true"
overflowToDisk="false"/>
View
10 resources/hibernate.cfg.xml
@@ -33,10 +33,10 @@
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
- <mapping class="br.com.guj.model.Post"/>
- <mapping class="br.com.guj.model.Blog"/>
- <mapping class="br.com.guj.model.Article"/>
- <mapping class="br.com.guj.model.Category"/>
- <mapping class="br.com.guj.model.Tag"/>
+ <mapping class="br.com.caelum.guj.model.Post"/>
+ <mapping class="br.com.caelum.guj.model.Blog"/>
+ <mapping class="br.com.caelum.guj.model.Article"/>
+ <mapping class="br.com.caelum.guj.model.Category"/>
+ <mapping class="br.com.caelum.guj.model.Tag"/>
</session-factory>
</hibernate-configuration>
View
2 src/br/com/guj/Config.java → src/br/com/caelum/guj/Config.java
@@ -1,4 +1,4 @@
-package br.com.guj;
+package br.com.caelum.guj;
import java.io.IOException;
import java.util.Properties;
View
6 src/br/com/guj/GUJServlet.java → src/br/com/caelum/guj/GUJServlet.java
@@ -1,4 +1,4 @@
-package br.com.guj;
+package br.com.caelum.guj;
import java.io.IOException;
@@ -13,8 +13,8 @@
import org.vraptor.VRaptorServlet;
-import br.com.guj.feeds.Agregator;
-import br.com.guj.feeds.JobsAgregator;
+import br.com.caelum.guj.feeds.Agregator;
+import br.com.caelum.guj.feeds.JobsAgregator;
public class GUJServlet extends VRaptorServlet {
private Agregator forumAgregator;
View
4 src/br/com/guj/feeds/Agregator.java → src/br/com/caelum/guj/feeds/Agregator.java
@@ -1,12 +1,12 @@
-package br.com.guj.feeds;
+package br.com.caelum.guj.feeds;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Timer;
import java.util.TimerTask;
-import br.com.guj.Config;
+import br.com.caelum.guj.Config;
import de.nava.informa.core.ItemIF;
public class Agregator {
View
2 src/br/com/guj/feeds/FeedReader.java → src/br/com/caelum/guj/feeds/FeedReader.java
@@ -1,4 +1,4 @@
-package br.com.guj.feeds;
+package br.com.caelum.guj.feeds;
import java.util.Date;
import java.util.HashSet;
View
2 src/br/com/guj/feeds/JobsAgregator.java → ...r/com/caelum/guj/feeds/JobsAgregator.java
@@ -1,4 +1,4 @@
-package br.com.guj.feeds;
+package br.com.caelum.guj.feeds;
import java.util.List;
View
2 src/br/com/guj/hibernate/HibernateUtil.java → ...m/caelum/guj/hibernate/HibernateUtil.java
@@ -1,4 +1,4 @@
-package br.com.guj.hibernate;
+package br.com.caelum.guj.hibernate;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
View
2 ...uj/hibernate/OpenSessionInViewFilter.java → ...uj/hibernate/OpenSessionInViewFilter.java
@@ -1,4 +1,4 @@
-package br.com.guj.hibernate;
+package br.com.caelum.guj.hibernate;
import java.io.IOException;
View
10 src/br/com/guj/logic/ApproveLogic.java → ...br/com/caelum/guj/logic/ApproveLogic.java
@@ -1,4 +1,4 @@
-package br.com.guj.logic;
+package br.com.caelum.guj.logic;
import java.util.List;
@@ -11,10 +11,10 @@
import org.vraptor.annotations.Out;
import org.vraptor.annotations.Parameter;
-import br.com.guj.hibernate.HibernateUtil;
-import br.com.guj.model.Article;
-import br.com.guj.model.ArticleLevel;
-import br.com.guj.model.Category;
+import br.com.caelum.guj.hibernate.HibernateUtil;
+import br.com.caelum.guj.model.Article;
+import br.com.caelum.guj.model.ArticleLevel;
+import br.com.caelum.guj.model.Category;
@Component("approve")
public class ApproveLogic {
View
12 src/br/com/guj/logic/ArticleLogic.java → ...br/com/caelum/guj/logic/ArticleLogic.java
@@ -1,4 +1,4 @@
-package br.com.guj.logic;
+package br.com.caelum.guj.logic;
import java.util.ArrayList;
import java.util.List;
@@ -14,11 +14,11 @@
import org.vraptor.annotations.Viewless;
import org.vraptor.interceptor.MultipartRequestInterceptor;
-import br.com.guj.hibernate.HibernateUtil;
-import br.com.guj.model.Article;
-import br.com.guj.model.Category;
-import br.com.guj.model.Post;
-import br.com.guj.model.Tag;
+import br.com.caelum.guj.hibernate.HibernateUtil;
+import br.com.caelum.guj.model.Article;
+import br.com.caelum.guj.model.Category;
+import br.com.caelum.guj.model.Post;
+import br.com.caelum.guj.model.Tag;
@Component("article")
@InterceptedBy(MultipartRequestInterceptor.class)
View
6 src/br/com/guj/logic/CategoryLogic.java → ...r/com/caelum/guj/logic/CategoryLogic.java
@@ -1,4 +1,4 @@
-package br.com.guj.logic;
+package br.com.caelum.guj.logic;
import javax.servlet.http.HttpServletRequest;
@@ -11,8 +11,8 @@
import org.vraptor.validator.StringValidation;
import org.vraptor.validator.ValidationErrors;
-import br.com.guj.hibernate.HibernateUtil;
-import br.com.guj.model.Category;
+import br.com.caelum.guj.hibernate.HibernateUtil;
+import br.com.caelum.guj.model.Category;
@Component("category")
public class CategoryLogic {
View
10 src/br/com/guj/logic/HomeLogic.java → src/br/com/caelum/guj/logic/HomeLogic.java
@@ -1,13 +1,13 @@
-package br.com.guj.logic;
+package br.com.caelum.guj.logic;
import java.util.List;
import org.vraptor.annotations.Component;
-import br.com.guj.Config;
-import br.com.guj.hibernate.HibernateUtil;
-import br.com.guj.model.Article;
-import br.com.guj.model.Post;
+import br.com.caelum.guj.Config;
+import br.com.caelum.guj.hibernate.HibernateUtil;
+import br.com.caelum.guj.model.Article;
+import br.com.caelum.guj.model.Post;
/**
* @author Rafael Steil
View
4 src/br/com/guj/logic/JobsLogic.java → src/br/com/caelum/guj/logic/JobsLogic.java
@@ -1,10 +1,10 @@
-package br.com.guj.logic;
+package br.com.caelum.guj.logic;
import java.util.List;
import org.vraptor.annotations.Component;
-import br.com.guj.feeds.JobsAgregator;
+import br.com.caelum.guj.feeds.JobsAgregator;
import de.nava.informa.core.ItemIF;
@Component("jobs")
View
2 src/br/com/guj/logic/NewsletterLogic.java → ...com/caelum/guj/logic/NewsletterLogic.java
@@ -1,4 +1,4 @@
-package br.com.guj.logic;
+package br.com.caelum.guj.logic;
import org.vraptor.annotations.Component;
import org.vraptor.annotations.Parameter;
View
2 src/br/com/guj/model/Article.java → src/br/com/caelum/guj/model/Article.java
@@ -1,4 +1,4 @@
-package br.com.guj.model;
+package br.com.caelum.guj.model;
import java.util.ArrayList;
import java.util.Date;
View
2 src/br/com/guj/model/ArticleLevel.java → ...br/com/caelum/guj/model/ArticleLevel.java
@@ -1,4 +1,4 @@
-package br.com.guj.model;
+package br.com.caelum.guj.model;
public enum ArticleLevel {
BASIC, INTERMEDIATE, ADVANCED;
View
2 src/br/com/guj/model/Blog.java → src/br/com/caelum/guj/model/Blog.java
@@ -1,4 +1,4 @@
-package br.com.guj.model;
+package br.com.caelum.guj.model;
import java.util.Date;
View
2 src/br/com/guj/model/Category.java → src/br/com/caelum/guj/model/Category.java
@@ -1,4 +1,4 @@
-package br.com.guj.model;
+package br.com.caelum.guj.model;
import java.util.ArrayList;
import java.util.List;
View
2 src/br/com/guj/model/Post.java → src/br/com/caelum/guj/model/Post.java
@@ -1,4 +1,4 @@
-package br.com.guj.model;
+package br.com.caelum.guj.model;
import java.util.Date;
View
2 src/br/com/guj/model/Tag.java → src/br/com/caelum/guj/model/Tag.java
@@ -1,4 +1,4 @@
-package br.com.guj.model;
+package br.com.caelum.guj.model;
import java.util.ArrayList;
import java.util.List;
View
2 src/br/com/guj/util/FileUtil.java → src/br/com/caelum/guj/util/FileUtil.java
@@ -1,4 +1,4 @@
-package br.com.guj.util;
+package br.com.caelum.guj.util;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
View
10 src/br/com/guj/util/TagCloud.java → src/br/com/caelum/guj/util/TagCloud.java
@@ -1,15 +1,15 @@
-package br.com.guj.util;
+package br.com.caelum.guj.util;
import it.exprivia.cnos.opencloud.Cloud;
import java.text.DecimalFormat;
import java.util.ArrayList;
import java.util.List;
-import br.com.guj.hibernate.HibernateUtil;
-import br.com.guj.model.Article;
-import br.com.guj.model.Category;
-import br.com.guj.model.Tag;
+import br.com.caelum.guj.hibernate.HibernateUtil;
+import br.com.caelum.guj.model.Article;
+import br.com.caelum.guj.model.Category;
+import br.com.caelum.guj.model.Tag;
public class TagCloud {
View
3 webapp/META-INF/MANIFEST.MF
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Class-Path:
+
View
12 webapp/WEB-INF/classes/ehcache.xml
@@ -2,31 +2,31 @@
<diskStore path="java.io.tmpdir"/>
<!-- Post -->
- <cache name="br.com.guj.model.Post"
+ <cache name="br.com.caelum.guj.model.Post"
maxElementsInMemory="100"
eternal="true"
overflowToDisk="false"/>
<!-- Blog -->
- <cache name="br.com.guj.model.Blog"
+ <cache name="br.com.caelum.guj.model.Blog"
maxElementsInMemory="100"
eternal="true"
overflowToDisk="false"/>
<!-- Article -->
- <cache name="br.com.guj.model.Article"
+ <cache name="br.com.caelum.guj.model.Article"
maxElementsInMemory="300"
eternal="true"
overflowToDisk="false"/>
<!-- Article Tags -->
- <cache name="br.com.guj.model.Article.tags"
+ <cache name="br.com.caelum.guj.model.Article.tags"
maxElementsInMemory="5000"
eternal="true"
overflowToDisk="false"/>
<!-- Category -->
- <cache name="br.com.guj.model.Category"
+ <cache name="br.com.caelum.guj.model.Category"
maxElementsInMemory="300"
eternal="true"
overflowToDisk="false"/>
@@ -44,7 +44,7 @@
overflowToDisk="false"/>
<!-- Category Articles -->
- <cache name="br.com.guj.model.Category.articles"
+ <cache name="br.com.caelum.guj.model.Category.articles"
maxElementsInMemory="300"
eternal="true"
overflowToDisk="false"/>
View
10 webapp/WEB-INF/classes/hibernate.cfg.xml
@@ -33,10 +33,10 @@
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
- <mapping class="br.com.guj.model.Post"/>
- <mapping class="br.com.guj.model.Blog"/>
- <mapping class="br.com.guj.model.Article"/>
- <mapping class="br.com.guj.model.Category"/>
- <mapping class="br.com.guj.model.Tag"/>
+ <mapping class="br.com.caelum.guj.model.Post"/>
+ <mapping class="br.com.caelum.guj.model.Blog"/>
+ <mapping class="br.com.caelum.guj.model.Article"/>
+ <mapping class="br.com.caelum.guj.model.Category"/>
+ <mapping class="br.com.caelum.guj.model.Tag"/>
</session-factory>
</hibernate-configuration>
View
4 webapp/WEB-INF/web.xml
@@ -33,7 +33,7 @@
<filter>
<filter-name>hibernateSessionViewFilter</filter-name>
- <filter-class>br.com.guj.hibernate.OpenSessionInViewFilter</filter-class>
+ <filter-class>br.com.caelum.guj.hibernate.OpenSessionInViewFilter</filter-class>
</filter>
<filter-mapping>
@@ -59,7 +59,7 @@
<servlet>
<servlet-name>guj</servlet-name>
- <servlet-class>br.com.guj.GUJServlet</servlet-class>
+ <servlet-class>br.com.caelum.guj.GUJServlet</servlet-class>
<!--
<load-on-startup>0</load-on-startup>
-->

0 comments on commit b46d86e

Please sign in to comment.