Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Ant task and maven project restructuring #29

Open
wants to merge 30 commits into
from

Conversation

Projects
None yet
1 participant

nlloyd commented Jul 26, 2013

In order to add an ant task I did the following in this pull request (summary of the 29 commits in this pull request):

  • moved src folder to mongeez/src (feel free to diff the contents to verify)
  • pom.xml is now artifactId: mongeez-parent, commons-lang3 and testng dependencies kept in the parent along with project information and modules section
  • added mongeez/pom.xml containing the rest of the mongeez.jar specific dependencies (upped mongo-java-driver version to 2.11.2 as well)
  • ant-task sub directory added with a single pom file, the MongeezRunner ant task, and a unit test

I am also using the de.flapdoodle.embed.mongo to manage a mongod instance running on an available port for the ant task tests.

Nick Lloyd and others added some commits Jul 25, 2013

expanded project to include more artifacts
- parent pom created and mongeez source and pom file moved to mongeez
  subdirectory
- ant-task child project added with base pom file
- added .gitignore
- minor parent pom updates to reflect new contributors
various changes
- fixed AntRunner.java imports
- embedded mongodb integration testing configuration added to
  ant-task/pom.xml
gracefully handling no Host + filepath
Conflicts:

	ant-task/src/main/java/org/mongeez/ant/AntRunner.java
Ant task changes
- renamed to MongeezRunner
- added unit test with "embedded mongod" execution
- removed integration-test phases
- testng dependency moved to mongeez to prevent collision with ant-task
  project's use of junit (should probably change that all to testng before
  merge with github project)

Conflicts:

	ant-task/pom.xml
	pom.xml
MongeezRunnerTest fixes around embedded mongod handling
- extract and run mongod in the target/ dir
unit test fixes
- relative path reference to location of mongeez*.xml files
code review-esque work
- cleaned up unused variables and imports as well as simple eclipse
  reformatting
- log4j is now a dependency of the ant task artifact
- refactored userName and passWord fields to be username and password (NICK AND HIS NITPICKS!)
- db.eval() call in mongeez core library was not returning exceptions before... now using db.getLastError() and result.throwOnError() to cause an exception in case of an error
- removed outermost exception catching block in MongeezRunner ant task (we want to break things if we get an exception!)
- minor cleanup (auto-reformatting and import cleanup)
- added unit test coverage for exception throwing events, including attempts to create indexes in background (need to make this actually work in mongeez... more work required though)
improvements around logging and index for mongeez collection
- auto-update mongeez index, making it unique to prevent duplicate record
entries
- better logging for script execution
unique index creation logic on mongeez collection fixed up
- logic to detect non-unique file+type+changeId+author index presence and
  replace the index with a unique equivalent is now functional, wasn't
  before
- log4j is now a dependency of the ant task artifact
- refactored userName and passWord fields to be username and password (NICK AND HIS NITPICKS!)
- db.eval() call in mongeez core library was not returning exceptions before... now using db.getLastError() and result.throwOnError() to cause an exception in case of an error
- removed outermost exception catching block in MongeezRunner ant task (we want to break things if we get an exception!)
- minor cleanup (auto-reformatting and import cleanup)
- added unit test coverage for exception throwing events, including attempts to create indexes in background (need to make this actually work in mongeez... more work required though)
cleanup prior to pull request
- mongo-java-driver and spring-beans dependency versions pulled into properties and moved into parent pom
- logback-classic added as dependency of ant task for direct console logging through slf4j api
- updated dependencies all over
- updated embedded mongod code to latest version for ant task unit tests
- sync'd source code changes to match current official source exactly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment