Permalink
Browse files

Clean up repo to be more maven-friendly.

  • Loading branch information...
1 parent d3c3beb commit 9f9e54ac7e2ba8b7ae78cac3c910d544170a36b0 @JakeWharton JakeWharton committed Oct 25, 2010
Showing with 4,639 additions and 4,164 deletions.
  1. +0 −9 .gitignore
  2. +1 −1 README.md
  3. +0 −40 build.xml
  4. +0 −18 create_guiceygenerator.sh
  5. +0 −3 generateGrammarClasses.sh
  6. +0 −5 generate_guicey_data.sh
  7. BIN lib/antlr-3.2.jar
  8. BIN lib/aopalliance.jar
  9. BIN lib/guice-2.0.jar
  10. BIN lib/jalopy.jar
  11. BIN lib/jopt-simple-3.2.jar
  12. BIN lib/log4j-1.2.15.jar
  13. BIN lib/mongo-2.0.jar
  14. BIN lib/stringtemplate-3.2.1.jar
  15. +107 −71 pom.xml
  16. 0 {example → src/examples}/BucketConfigurationExample.java
  17. 0 {example → src/examples}/Buckets.java
  18. 0 {example → src/examples}/CollectionConfigurationExample.java
  19. 0 {example → src/examples}/Collections.java
  20. 0 {example → src/examples}/Configurations.java
  21. 0 {example → src/examples}/Connections.java
  22. 0 {example → src/examples}/DatabaseConfigurationExample.java
  23. 0 {example → src/examples}/Databases.java
  24. 0 {example → src/examples}/RemoteDatabaseConfigurationExample.java
  25. 0 {example → src/examples}/StoredProcedureProxyExample.java
  26. 0 {example → src/examples}/StoredProcedureWrappedDBObjectExample.java
  27. 0 { → src/examples}/exampleConfiguration.json
  28. 0 { → src/main/antlr3/com/lowereast/guiceymongo/data/generator/parser}/GuiceyData.g
  29. +63 −0 src/main/java/GuiceyData.tokens
  30. +0 −59 src/main/java/com/lowereast/guiceymongo/data/generator/parser/GuiceyData.tokens
  31. +2,064 −1,789 src/main/java/com/lowereast/guiceymongo/data/generator/parser/GuiceyDataLexer.java
  32. +2,369 −2,169 src/main/java/com/lowereast/guiceymongo/data/generator/parser/GuiceyDataParser.java
  33. +35 −0 src/test/java/com/lowereast/guiceymongo/test/AppTest.java
  34. 0 { → tools}/copyright.txt
  35. 0 { → tools}/fix_copyright.sh
View
@@ -1,12 +1,3 @@
-.clover
-classes
-output
-bin
-test
-build
-classes
-.clover
-*.jar
target
.project
.classpath
View
@@ -5,7 +5,7 @@ GuiceyMongo home: http://github.com/mattinsler/com.lowereast.guiceymongo/
mongodb home: http://www.mongodb.org/
#### Usage
- * Check out the examples directory and the posts at [Fun with Dependencies](http://www.mattinsler.com)
+ * Check out the `src/examples` directory and the posts at [Fun with Dependencies](http://www.mattinsler.com).
* Jake Wharton created [guiceydata-maven-plugin](http://github.com/JakeWharton/guiceydata-maven-plugin) which is awesome!
#### Questions and Bug Reports
View
@@ -1,40 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project name="GuiceyMongo" basedir="." default="compile">
- <property name="version" value="0.1.2" />
- <property name="mongo.driver.version" value="2.0" />
-
- <property name="jar.name" value="guiceymongo-${version}.jar" />
- <property name="jar-mongo.name" value="guiceymongo-${version}-mongo.jar" />
-
- <property name="src.dir" value="src" />
- <property name="lib.dir" value="lib" />
-
- <property name="classes.dir" value="classes" />
- <property name="target.dir" value="target" />
-
- <path id="classpath">
- <fileset dir="${lib.dir}" includes="**/*.jar"/>
- </path>
-
- <target name="clean">
- <delete dir="${classes.dir}" />
- <delete dir="${target.dir}" />
- </target>
-
- <target name="compile">
- <mkdir dir="${classes.dir}" />
- <javac srcdir="${src.dir}" destdir="${classes.dir}" classpathref="classpath" />
- </target>
-
- <target name="jar" depends="compile">
- <mkdir dir="${target.dir}"/>
- <jar destfile="${target.dir}/${jar.name}" basedir="${classes.dir}" />
- </target>
-
- <target name="jar-mongo" depends="compile">
- <mkdir dir="${target.dir}"/>
- <jar destfile="${target.dir}/${jar-mongo.name}" basedir="${classes.dir}">
- <zipfileset src="${lib.dir}/mongo-${mongo.driver.version}.jar" />
- </jar>
- </target>
-</project>
@@ -1,18 +0,0 @@
-#!/bin/bash
-
-tmp=$$tmp
-
-mkdir $tmp
-cd $tmp
-jar xf ../lib/aopalliance.jar
-jar xf ../lib/guice-2.0.jar
-jar xf ../lib/antlr-3.2.jar
-jar xf ../lib/jalopy.jar
-jar xf ../lib/jopt-simple-3.2.jar
-jar xf ../lib/log4j-1.2.15.jar
-jar xf ../lib/stringtemplate-3.2.1.jar
-jar xf ../target/guiceymongo-0.2.jar
-rm -rf META-INF
-jar cf ../guiceygenerator.jar *
-cd ../
-rm -rf $tmp
@@ -1,3 +0,0 @@
-#!/bin/bash
-
-java -jar lib/antlr-3.2.jar GuiceyData.g -o src/com/lowereast/guiceymongo/data/generator/parser
@@ -1,5 +0,0 @@
-#!/bin/sh
-
-dir=`dirname $0`
-
-java -cp $dir/guiceydatagenerator-*.jar com.lowereast.guiceymongo.data.generator.GuiceyDataGenerator $*
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
Binary file not shown.
View
@@ -1,79 +1,115 @@
<?xml version="1.0" encoding="UTF-8"?>
-<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/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
+<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/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
- <groupId>com.lowereast</groupId>
- <artifactId>guiceymongo</artifactId>
- <packaging>jar</packaging>
- <version>0.2</version>
+ <groupId>com.lowereast</groupId>
+ <artifactId>guiceymongo</artifactId>
+ <version>0.3.0-SNAPSHOT</version>
+ <packaging>jar</packaging>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <source>1.6</source>
- <target>1.6</target>
- </configuration>
- </plugin>
- </plugins>
- </build>
+ <name>GuiceyMongo</name>
+ <description>Guice integration for MongoDB.</description>
+ <url>http://www.mattinsler.com/</url>
- <repositories>
- <repository>
- <id>ibiblio-maven2-repository</id>
- <name>ibiblio</name>
- <url>http://repo1.maven.org/maven2</url>
- </repository>
- <repository>
- <id>jboss-maven2-release-repository</id>
- <name>JBoss</name>
- <url>http://repository.jboss.org/maven2</url>
- </repository>
- </repositories>
+ <scm>
+ <url>http://github.com/mattinsler/com.lowereast.guiceymongo/</url>
+ <connection>scm:git:git@github.com:mattinsler/com.lowereast.guiceymongo.git</connection>
+ <developerConnection>scm:git:git@github.com:mattinsler/com.lowereast.guiceymongo.git</developerConnection>
+ </scm>
- <dependencies>
- <dependency>
- <groupId>org.mongodb</groupId>
- <artifactId>mongo-java-driver</artifactId>
- <version>2.0</version>
- </dependency>
- <dependency>
- <groupId>com.google.inject</groupId>
- <artifactId>guice</artifactId>
- <version>2.0</version>
- </dependency>
+ <properties>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ </properties>
- <dependency>
- <groupId>org.antlr</groupId>
- <artifactId>antlr-runtime</artifactId>
- <version>3.2</version>
- </dependency>
- <dependency>
- <groupId>log4j</groupId>
- <artifactId>log4j</artifactId>
- <version>1.2.16</version>
- </dependency>
- <dependency>
- <groupId>net.sf.jopt-simple</groupId>
- <artifactId>jopt-simple</artifactId>
- <version>3.2</version>
- </dependency>
- <dependency>
- <groupId>jalopy</groupId>
- <artifactId>jalopy</artifactId>
- <version>1.5rc3</version>
- </dependency>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>2.0.2</version>
+ <configuration>
+ <source>1.6</source>
+ <target>1.6</target>
+ </configuration>
+ </plugin>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>4.8.1</version>
- <scope>test</scope>
- </dependency>
- </dependencies>
+ <plugin>
+ <groupId>org.antlr</groupId>
+ <artifactId>antlr3-maven-plugin</artifactId>
+ <version>3.2</version>
+ <executions>
+ <execution>
+ <goals>
+ <goal>antlr</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <verbose>false</verbose>
+ <outputDirectory>${project.build.sourceDirectory}</outputDirectory>
+ </configuration>
+ </plugin>
-</project>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-release-plugin</artifactId>
+ <version>2.1</version>
+ </plugin>
+ </plugins>
+ </build>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.mongodb</groupId>
+ <artifactId>mongo-java-driver</artifactId>
+ <version>2.0</version>
+ </dependency>
+ <dependency>
+ <groupId>com.google.inject</groupId>
+ <artifactId>guice</artifactId>
+ <version>2.0</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.antlr</groupId>
+ <artifactId>antlr-runtime</artifactId>
+ <version>3.2</version>
+ </dependency>
+ <dependency>
+ <groupId>log4j</groupId>
+ <artifactId>log4j</artifactId>
+ <version>1.2.16</version>
+ </dependency>
+ <dependency>
+ <groupId>net.sf.jopt-simple</groupId>
+ <artifactId>jopt-simple</artifactId>
+ <version>3.2</version>
+ </dependency>
+ <dependency>
+ <groupId>jalopy</groupId>
+ <artifactId>jalopy</artifactId>
+ <version>1.5rc3</version>
+ </dependency>
+
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>3.8.1</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+
+ <repositories>
+ <repository>
+ <id>ibiblio-maven2-repository</id>
+ <name>ibiblio</name>
+ <url>http://repo1.maven.org/maven2</url>
+ </repository>
+ <repository>
+ <id>jboss-maven2-release-repository</id>
+ <name>JBoss</name>
+ <url>http://repository.jboss.org/maven2</url>
+ </repository>
+ </repositories>
+</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.
@@ -0,0 +1,63 @@
+T__40=40
+EXPONENT=20
+OPTION=11
+T__29=29
+T__28=28
+T__27=27
+T__26=26
+T__25=25
+UNICODE_ESC=23
+OCTAL_ESC=24
+HEX_DIGIT=22
+FLOAT=16
+INT=15
+TYPE_LIST=7
+ID=14
+TYPE_PRIMITIVE=9
+TYPE=18
+T__30=30
+T__31=31
+PARAMETERIZED_TYPE=8
+T__32=32
+ESC_SEQ=21
+WS=19
+T__33=33
+ENUM=13
+T__34=34
+TYPE_MAP=5
+T__35=35
+T__36=36
+PROPERTY=10
+T__37=37
+T__38=38
+T__39=39
+TYPE_SET=6
+PAIR=12
+DATA=4
+STRING=17
+'enum'=13
+'pair'=12
+'primitive'=9
+'>'=37
+'{}'=27
+';'=35
+'='=33
+'map'=5
+'list'=7
+'data'=4
+'property'=10
+'parameterized-type'=8
+'}'=26
+'data;'=34
+'map<'=36
+'option'=11
+'set<'=38
+'{'=25
+'set'=6
+'list<'=39
+'<'=40
+'('=31
+'['=29
+','=28
+')]'=32
+']'=30
Oops, something went wrong.

0 comments on commit 9f9e54a

Please sign in to comment.