Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
251 commits
Select commit Hold shift + click to select a range
1882d66
Make the list header not be the same height as entries on the list.
epabst Mar 15, 2013
fb29419
Regenerate the layouts for the sample app.
epabst Mar 15, 2013
4a75e9f
Don't specify the version in the AndroidManifest.xml template.
epabst Mar 15, 2013
7b57474
Make UriPath.lastEntityNameOption return an EntityName instead of a S…
epabst Mar 21, 2013
3f5f063
Simplify AndroidCrudContext and the model around State.
epabst Mar 21, 2013
9ee112a
Make State into a class and use a has-a relationship instead of is-a.
epabst Mar 21, 2013
9d4231f
Fix some bugs in ListBufferEntityPersistence.
epabst Mar 23, 2013
7435ea8
Add CrudContentProvider that wraps CrudPersistence.
epabst Mar 23, 2013
312ace2
Check ContentValues.containsKey to distinguish between undefined and …
epabst Apr 13, 2013
63f8c4c
Make delete indicate how many were deleted.
epabst Mar 23, 2013
7daea9e
Rename My... classes to something more indicative.
epabst Mar 23, 2013
6f575c8
Add ContentResolverPersistenceFactory.
epabst Mar 23, 2013
7679736
Provide the scheme and authority to Uri's.
epabst Mar 24, 2013
6bf102b
Make AndroidConversions own the content authority name for an applica…
epabst Mar 31, 2013
b8076b0
Add ".provider" to the authority after the application package name.
epabst Mar 31, 2013
5ee83e9
Make CrudContext match AndroidCrudContext in having a StateHolder ins…
epabst Mar 31, 2013
b6971c9
Make tryToEvaluate handle null results.
epabst Mar 31, 2013
c1d3184
Make EntityPersistenceForTesting function by providing a valid Entity…
epabst Mar 31, 2013
5f23807
Fix ListBufferEntityPersistence to handle restoring a deleted entity …
epabst Mar 31, 2013
8e0fc6d
Specify the correct mimetype in CrudContentProvider.
epabst Mar 31, 2013
76dff8a
Fixed input types for TitleQT, DescriptionQT, NaturalIntQT, and Posit…
epabst Apr 3, 2013
692f137
Move dataVersion from CrudApplication to CursorField.
epabst Apr 3, 2013
deb1718
Add missing columns in existing tables.
epabst Apr 3, 2013
90dcd48
Automatically add actions to create and list parent entities that are…
epabst Apr 3, 2013
309a61e
Just put the EntityName in the header instead of the field names.
epabst Apr 3, 2013
a8a262a
Extract PersistenceFactoryMapping from CrudApplication.
epabst Apr 4, 2013
517eda4
Make CrudContext into a place to override the PersistenceFactory to use.
epabst Apr 3, 2013
ade0294
Fix canSave, canDelete, etc. for ContentResolverPersistenceFactory.
epabst Apr 4, 2013
c7937c2
Fix for EntityType having a PlatformDriver.
epabst Apr 5, 2013
bf11cde
Fix for PersistenceFactoryMapping
epabst Apr 5, 2013
55f3b3e
Fix for AbstractPersistenceFactory
epabst Apr 5, 2013
d49786b
Move test to CrudActivitySpec.
epabst Apr 5, 2013
4a43aca
Fix for CrudContext.stateHolder
epabst Apr 5, 2013
8fa6933
Fix for refreshableFindAll
epabst Apr 5, 2013
a8c2ec3
Move test to EntityAdapterFactorySpec.
epabst Apr 5, 2013
9bbb030
Fix for refreshableFindAll.
epabst Apr 5, 2013
8396501
Add <provider> element to AndroidManifest.xml.
epabst Apr 5, 2013
7d79f25
Remove uri parameter to DataListener since unused and ContentResolver…
epabst Apr 6, 2013
0885b8d
Extract ApplicationConcurrentMapVal to reduce duplication.
epabst Apr 6, 2013
1abc3b6
Fix to CrudApplication's imports.
epabst Apr 7, 2013
915c525
Extract ContentResolverCrudPersistence class out of other file.
epabst Apr 9, 2013
4fc45be
Extract CrudPersistence.saveCopy.
epabst Apr 10, 2013
486535b
Extract AndroidCrudContextForTesting.
epabst Apr 10, 2013
e1ac468
Add tests for ContentResolverCrudPersistence's support for listeners.
epabst Apr 10, 2013
1268c54
Enable listeners via ContentResolver.
epabst Apr 7, 2013
253a79d
Enable using ContentResolver.
epabst Apr 7, 2013
1a19402
Add CrudPersistence.saveAll.
epabst Apr 9, 2013
af0bc95
Make sbt include running the JUnit tests.
epabst Apr 10, 2013
dd30710
Fix to AndroidCrudContext.entityPersistenceMapping.
epabst Apr 12, 2013
af14940
Expose BaseCrudActivity.initialUriPath for testing.
epabst Apr 12, 2013
5282bd2
Fix most test failures in CrudActivitySpec.
epabst Apr 12, 2013
c193462
Fix remaining test failures in CrudActivitySpec.
epabst Apr 13, 2013
f5fbf63
Invalidate the view after it is updated so that it will be redrawn.
epabst Apr 14, 2013
0ef5de6
Extract CrudPersistence.toWritable.
epabst Apr 14, 2013
967099b
Make toWritable do nothing if the data already has the correct class.
epabst Apr 14, 2013
520fa33
Improve wait conditions since CrudActivity is used for both list and …
epabst Apr 14, 2013
e136d67
Improve logging.
epabst Apr 14, 2013
1aefeec
Create and register the ContentObserver on the UI Thread.
epabst Apr 14, 2013
d3e41df
Combine BaseCrudActivity into CrudActivity.
epabst Apr 14, 2013
c205852
Make CrudActivity extend FragmentActivity.
epabst Apr 15, 2013
2f1313b
Extract SQLiteCriteria from CursorField.
epabst Apr 16, 2013
2b9c38b
Extract EntityCursorAdapter from EntityAdapterFactory.
epabst Apr 17, 2013
254863e
Cache the PersistenceFactory instances for ContentResolverPFM.
epabst Apr 17, 2013
25b92e4
Use CursorLoader instead of a lot of other code.
epabst Apr 17, 2013
e4422b8
Use onLoaderReset instead of using other listeners.
epabst Apr 17, 2013
564fdfa
In functional test, use button instead of menu item to add.
epabst Apr 18, 2013
26a65da
Cache the WritableDatabase and close it "on destroy".
epabst Apr 18, 2013
7f65032
Report exceptions with CursorLoader, and add debug logging.
epabst Apr 23, 2013
e372533
Only register a ContentObserver when the first DataListener is added.
epabst Apr 23, 2013
37ed1e2
Move backup code to its own package.
epabst Apr 24, 2013
6640131
Don't have CrudBackupAgent use ContentResolver either.
epabst Apr 25, 2013
6f52cb0
Call ContentResolver.notifyChange.
epabst May 2, 2013
01f2f77
Fix failing unit tests.
epabst May 3, 2013
0cdcee7
Fix change notifications by calling Cursor.setNotificationUri.
epabst May 3, 2013
57ec46b
Specify the <provider> in the AndroidManifest.xml.
epabst May 3, 2013
4a2c34d
Make it explicit to find the BackupAgent class.
epabst May 3, 2013
b676953
Put spaces between words when displaying an EntityName.
epabst May 4, 2013
4180ca1
Don't include description fields in the row layout.
epabst May 4, 2013
ee7571b
Guarantee that the correct Entity is queried for using ContentResolver.
epabst May 5, 2013
5b04ad5
Fix update notifications.
epabst May 5, 2013
c5f84d7
Fix and debugging of fix to notifications.
epabst May 6, 2013
d208ac5
Add comment about where to run GenerateLayouts from.
epabst May 6, 2013
03814cd
Move processing off of the UI thread for onBackPressed.
epabst Mar 7, 2013
891f005
Move processing off of the UI thread.
epabst Mar 8, 2013
41ec46b
Fix infinite loop if an EntityType refers to itself.
epabst May 8, 2013
29ff97b
Don't include parent entity fields in the generated row layout.
epabst May 8, 2013
7e51a25
Made ViewField extend Field which extends SimplePortableField.
epabst May 9, 2013
6d6d731
Stop using the deprecated DelegatingPortableField.
epabst May 10, 2013
6e509e0
Adjust for changes in triangle that improve performance.
epabst May 12, 2013
e148dd8
Adjust for changes in triangle that improve performance.
epabst May 12, 2013
3c03be6
Fix for adding CursorField.columnName as constructor param.
epabst May 24, 2013
5f4dd4a
Fix for ImageViewField.
epabst May 24, 2013
787bbee
Make CrudPersistence more compatible with micro-testing.
epabst May 29, 2013
9b52505
Fix all unit tests and annotate with @MicrotestCompatible.
epabst May 30, 2013
a2910b2
Fix UI threading issue.
epabst May 30, 2013
5a23199
Fix issue where database is closed before it is no longer used.
epabst May 31, 2013
04da990
Move more persistence off of the UI thread.
epabst May 31, 2013
c3a1b73
Fix functional test to be more robust.
epabst May 31, 2013
767d216
Add functional test to expose problem with book list not showing up.
epabst Jun 11, 2013
70199e3
Use annotations-for-quality 1.0-SNAPSHOT.
epabst Jun 11, 2013
bb46583
Add dependency from sample-app to annotations-for-quality.
epabst Jun 14, 2013
c42e544
Minor performance improvement.
epabst Jun 14, 2013
99a49ce
Use NestedField instead of removed PartialDelegatingField.
epabst Jul 22, 2013
6bd27f5
Stop using the implicit PortableField.toSome conversion.
epabst Jul 22, 2013
c1ec151
Clarification rename.
epabst Jul 25, 2013
5464ca2
Fix failing CapturedImageViewSpec.
epabst Jul 26, 2013
8d2c227
Minor readability fixes.
epabst Jul 26, 2013
bd32794
Add missing exception reporting where DataListener.onChanged is called.
epabst Aug 1, 2013
6efcbb8
Report errors that happen when updating a View.
epabst Aug 2, 2013
eafb163
Add more information to failure for debugging purposes.
epabst Aug 7, 2013
a608d4f
Fixed bug with multiple results for URI w/ an id.
epabst Aug 8, 2013
8d4399f
Report errors that happen in an urgentFuture.
epabst Aug 8, 2013
d31af9d
Add logging to help diagnose bug.
epabst Nov 1, 2013
8e6eeee
Add documentation for CrudOperationType.
epabst Dec 11, 2013
d78b781
Hopefully fix rotation from going blank.
epabst Jan 12, 2014
eca36c5
Add SourceField, TargetField, and associated classes.
epabst Dec 12, 2013
58ec12f
Make EntityType support specifying AdaptableFields, and add TargetTyp…
epabst Dec 13, 2013
1db5013
Move MapStorage to the node package and extract reusable code.
epabst Dec 17, 2013
9bc56bc
Simplify logic by adding some more classes in the hierarchy.
epabst Dec 17, 2013
593eb2b
Extract MapTargetField and add it to AndroidPlatformDriver.
epabst Dec 17, 2013
b1d7679
Support SourceField for MapStorage.
epabst Dec 17, 2013
a529e90
Extract AdaptableFieldByType.
epabst Dec 19, 2013
c9d445c
Make Source and Target be typed with a manifest instead of a SourceTy…
epabst Dec 19, 2013
538d9f1
Fix failing test.
epabst Dec 21, 2013
5ebb0de
Add todo for PlatformDriverSpec.
epabst Dec 21, 2013
cfbe4c5
Make Source and Target simply be whatever AnyRef is passed in rather …
epabst Jan 12, 2014
cf0a732
Add .gitignore entries from generated Android Studio project.
epabst Jan 16, 2014
b279dcd
Add gradle support to scrud-android-res.
epabst Jan 16, 2014
f33b456
Add gradle support to scrud-android. It's not yet working.
epabst Jan 16, 2014
43f5109
Switch to building with gradle as an android-library.
epabst Jan 22, 2014
db3c735
Add a jar task to scrud-android-res to facilitate a dependency.
epabst Jan 22, 2014
e853876
Depend on compileDebug so that the class files are created.
epabst Jan 23, 2014
0a9010b
Make scrud-android a simple jar.
epabst Jan 23, 2014
6625c05
fix to Add SourceField...
epabst Jan 24, 2014
2b27590
Create scrud-core without android or triangle or their usages.
epabst Jan 25, 2014
53094fc
Make ListBufferEntityPersistence not depend on triangle.
epabst Jan 25, 2014
ef05a82
Make scrud-core/src/main compile without triangle.
epabst Jan 28, 2014
5c92bee
Extract scrud.util.Name from EntityName for reusability.
epabst Jan 28, 2014
b8ae204
Fix some of the basic scrud model.
epabst Jan 28, 2014
57144bc
Make EntityTypeMap no longer abstract.
epabst Jan 28, 2014
c99cf2c
Make EntityTypeMap a little more efficient and add a test.
epabst Jan 28, 2014
cf6f40b
Fix compilation issues and complete scrud-core to the point of compil…
epabst Jan 29, 2014
ae6c070
Add PersistenceConnection and Cache and simplify withPersistence func…
epabst Jan 29, 2014
8a631e3
Add Representation.
epabst Jan 31, 2014
9a8f79e
Made EntityType not require subclasses to implement methods.
epabst Feb 1, 2014
a8ab0a6
Add gradle build.
epabst Feb 1, 2014
68c12c8
Add MultiSelectQT and StringConvertibleQT.
epabst Feb 1, 2014
8eb8506
Add Query representation.
epabst Feb 1, 2014
6b9b156
Make EntityTypeMap easier to build.
epabst Feb 2, 2014
98d7c89
Flush out EntityNavigation and add some documentation.
epabst Feb 2, 2014
fd76b75
Minor cleanup.
epabst Feb 2, 2014
8958e3f
Use "E" as the generic type for an entity.
epabst Feb 2, 2014
e565a2e
Make EntityType's AdaptableFields actually work.
epabst Feb 6, 2014
6ab1c67
Fix settings.gradle to work with build.gradle.
epabst Feb 6, 2014
dd44503
Fix scala warnings.
epabst Feb 6, 2014
6fac4ee
Make scala tests run using JUnit since gradle handles it.
epabst Feb 6, 2014
d866f5c
Extract sample-app-core and make it build using scrud-core.
epabst Feb 6, 2014
d907169
Add EntityType.field(EntityName) for referencing another entity.
epabst Feb 6, 2014
a09ce97
Remove unused code.
epabst Feb 6, 2014
a5a4c6d
Expose TestingPlatformDriver and other useful classes for testing.
epabst Feb 9, 2014
e4ddf12
Add README.txt with instructions on building the project.
epabst Feb 9, 2014
b687434
Add support (and example) of a default value.
epabst Feb 9, 2014
ff01441
Disallow even taking EntityType.field and using it an an orElse field.
epabst Feb 11, 2014
0909533
Optimize ExtensibleAdaptableField.orElse(AdaptableField.empty).
epabst Feb 11, 2014
c69dcb0
Extract MapStorageAdaptableFieldFactory and accompanying model.
epabst Feb 11, 2014
51e8dda
Add some clarity to the contract for SourceType, TargetType, and Repr…
epabst Feb 12, 2014
bb826b1
Simplify the API for AdaptableFieldFactory.
epabst Feb 12, 2014
8a76c1f
Add support for Persistence minDataVersion and maxDataVersion.
epabst Feb 12, 2014
0d62d04
Move types to more appropriate packages and add some package.html files.
epabst Feb 13, 2014
389a002
Make Representation type-safe so that incompatible Representations ca…
epabst Feb 14, 2014
eef81aa
Move FieldFactory code from TestingPlatformDriver to PlatformDriver.
epabst Feb 17, 2014
625caf0
Make Validation into a Representation.
epabst Feb 17, 2014
e987ea6
Make Persistence Representations honor dataVersions.
epabst Feb 18, 2014
7bd52ff
Remove unused orElse parameter for EntityType.field.
epabst Feb 18, 2014
3f73c42
Implement PlatformDriver.calculateDataVersion.
epabst Feb 18, 2014
1ba57c6
Fail if a SourceType/TargetType pair are unknown to all EntityType fi…
epabst Feb 19, 2014
afa8f3f
Add RequestContext.entityTypeMap convenience method.
epabst Feb 19, 2014
050111f
Use a more friendly form of Enumeration.
epabst Feb 19, 2014
31b2525
Simplify ...ForTesting classes and usage by adding EntityTypeMapForTe…
epabst Feb 19, 2014
0aae40b
Implement EntityNavigation.actionsFromCrudOperation.
epabst Feb 19, 2014
4c2b7df
Rename parent/child to upstream/downstream for clarity.
epabst Feb 19, 2014
a07437b
Clarify what 'managing' an entity is.
epabst Feb 19, 2014
21720bc
Clean up directories and files.
epabst Feb 21, 2014
8096275
Make all EntityType fields include MapStorage by default.
epabst Feb 25, 2014
ffcc832
Add Calculation as a Representation.
epabst Feb 25, 2014
525abd2
Eliminate debatable todo.
epabst Feb 26, 2014
87f39f4
Add Derived fields.
epabst Feb 26, 2014
5940d5e
Add Name.toPlural.
epabst Feb 27, 2014
e5e7f4c
Extract QualifiedTypeProvidingFieldName from EntityName to make it mo…
epabst Feb 27, 2014
c4ed5af
Add CrudPersistence.save(Option[ID], SourceType, source, RequestContext)
epabst Mar 4, 2014
84d131b
Create external functions for UriPath.
epabst Mar 6, 2014
64c9e4e
Add EntityNavigation.topLevelActions.
epabst Mar 7, 2014
001932f
Made CommandId extend Name, and made Name more flexible.
epabst Mar 8, 2014
dd564d7
Added scrud-web-ui-play-angularjs-autosource-reactivemongo to start o…
Mar 15, 2014
56c406d
Merge pull request #2 from oatkinson/scrud-core
epabst Mar 15, 2014
87ebafb
Fix to tests.
epabst Mar 18, 2014
5693a77
Optimize CompositeSourceField's stack depth.
epabst Mar 18, 2014
f3c2ea8
Add Nonpersistence mix-in for EntityType.
epabst Mar 10, 2014
638c06e
Expose the fields consumed by a Derived Representation.
epabst Mar 14, 2014
11a29b7
Add Indirect as a Representation.
epabst Mar 14, 2014
1748dd5
Add DoubleQT.
epabst Mar 14, 2014
9410cc0
Don't assume that EditUI includes SummaryUI or DetailUI.
epabst Mar 14, 2014
f8d3e4d
Add EntityType.sortOrder.
epabst Mar 14, 2014
12bbbf9
Add dependency on scala-uri.
epabst Mar 7, 2014
d8349a6
Add an ImageQT to PlatformDriver.
epabst Mar 14, 2014
9010601
Rename EntityModel to EntityModelForPlatform.
epabst Mar 18, 2014
d22121f
Add ModelGetter and EntityModel.
epabst Mar 18, 2014
a5ecd05
Start making scrud-android use scrud-core.
epabst Mar 13, 2014
eaa065b
Start to add fields to Calculation, similar to Derived.
epabst Mar 18, 2014
f7c89e5
Rename Action to OperationAction to make way for a new Action class.
epabst Mar 20, 2014
de9c310
Rename CommandId to CommandKey, and add Response & Request,
epabst Mar 20, 2014
43a455a
No op.
epabst Mar 28, 2014
5658a59
Rename Command to make way for a different one.
epabst Mar 28, 2014
284a992
Extract Command from Request.
epabst Mar 28, 2014
6812ecc
Add Reponse.availableCommands.
epabst Mar 28, 2014
8dbd89b
Inline Request since Command is sufficient.
epabst Mar 28, 2014
29bcbee
Rename RequestContext to CommandContext.
epabst Mar 28, 2014
ea4e48e
Extract SourceWithType from Response.
epabst Mar 29, 2014
9f3fc35
Add some common CommandKeys and related RestMethods.
epabst Mar 29, 2014
f87c106
Rename CommandKey to ActionKey.
epabst Mar 29, 2014
3f830c2
Replace Response with ViewRequest.
epabst Mar 29, 2014
88bdf16
Rename EntityTypeMap.entityType to addEntityType.
epabst Apr 2, 2014
3071e5f
Start flushing out an example usage of scrud.
epabst Apr 2, 2014
0a9ea86
Add ActionKey.actionDataTypeOpt.
epabst Apr 10, 2014
0ae4c19
Eliminate ViewDataRequest since unnecessary.
epabst Apr 10, 2014
2adb2d0
Eliminate ViewRequest since unnecessary.
epabst Apr 10, 2014
eb0625a
Eliminate ActionKeys that simply present user input.
epabst Apr 10, 2014
19aa5bf
Work toward the right model for Action, Command, EntityNavigation.
epabst Apr 15, 2014
e6cba0a
Eliminate Action, Command, and ViewSpecifier.
epabst Apr 16, 2014
076b92d
Pass a sourceUri into AdaptedFieldSeq.
epabst Apr 18, 2014
a719464
Copy converter package from https://github.com/epabst/triangle.
epabst Apr 29, 2014
2b01be4
Switch Converter and ValueFormat to return a scala.util.Try.
epabst Apr 29, 2014
82541e1
Make QualifiedTypes extend StringConvertibleQT if possible.
epabst Apr 30, 2014
09115d9
Update To-do's.
epabst May 8, 2014
a59ac9f
Detect cases where TargetField is passed an Option.
epabst May 8, 2014
c2d50d8
Extract SharedContextHolder from CommandContext.
epabst May 8, 2014
84f8e4b
Fix warnings in GenericConverter.
epabst May 9, 2014
17474ad
Fix warnings.
epabst May 9, 2014
e2ccdbe
Fix another warning.
epabst May 9, 2014
447265b
Add and use CopyContext in SourceFields and TargetFields.
epabst May 9, 2014
dd38e3a
fix for CopyContext.
epabst May 9, 2014
2b96cf6
fix for CopyContext.
epabst May 9, 2014
a9dd040
Support delayed update after a copy.
epabst May 11, 2014
cd94303
Introduce FieldName to conveniently convert field names to various fo…
epabst May 19, 2014
9413274
Rename StringConvertibleQT.convertToString to convertToDisplayString.
epabst May 22, 2014
1832816
Add PersistenceConnectionVar.
epabst Jun 2, 2014
458bcbf
Making scrud-android compile.
epabst Jun 3, 2014
fba666e
Make gradlew executable.
epabst Jun 10, 2014
56f895f
Make PersistenceFactoryForTesting use a buffer instead of a mock.
epabst Jun 10, 2014
b9d7da2
Make scrud-android mostly compile.
epabst Jun 11, 2014
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 7 additions & 1 deletion .gitignore
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,10 @@ tmp
multiverse.log
.eprj
seed.txt
.sonar*
.sonar*
.gradle
/local.properties
/.idea/workspace.xml
.DS_Store
.idea
build
16 changes: 14 additions & 2 deletions readme.txt → README.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
A Scala framework for supporting CRUD on the Android Platform between UI, Persistence, and Model
To build this project, run "./gradlew build".

See the Wiki for more information:
Scrud: A Scala framework for supporting CRUD on the Android Platform between UI, Persistence, and Model

See the Wiki for more information:
https://github.com/epabst/scala-android-crud/wiki

Here are some topics that will be added soon to the Wiki:
Expand Down Expand Up @@ -34,6 +36,16 @@ Here are some topics that will be added soon to the Wiki:

Todo
---------------------------------
-Get scrud-android compiling against scrud-core without losing useful code.
-Get scrud-android to actually work against scrud-core.
-RELEASE APPS ON MARKET
-Optimization: Stop converting from URI to idOpt and back to URI more than once.
-Optimization: Make TextViewField not have to construct a Success(string) to convert a String to a String.
-Optimization: use CharSequence instead of String.




Add a test to each application that verifies it meets contract:
- For each Persistence: it's find must be able to correctly find each item returned by findAll.
Make "Add Author" show up in the menu for the list of Books for an Author.
Expand Down
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
Binary file added gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
6 changes: 6 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#Sat Dec 28 01:34:37 MST 2013
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=http\://services.gradle.org/distributions/gradle-1.8-all.zip
164 changes: 164 additions & 0 deletions gradlew
Original file line number Diff line number Diff line change
@@ -0,0 +1,164 @@
#!/usr/bin/env bash

##############################################################################
##
## Gradle start up script for UN*X
##
##############################################################################

# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS=""

APP_NAME="Gradle"
APP_BASE_NAME=`basename "$0"`

# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD="maximum"

warn ( ) {
echo "$*"
}

die ( ) {
echo
echo "$*"
echo
exit 1
}

# OS specific support (must be 'true' or 'false').
cygwin=false
msys=false
darwin=false
case "`uname`" in
CYGWIN* )
cygwin=true
;;
Darwin* )
darwin=true
;;
MINGW* )
msys=true
;;
esac

# For Cygwin, ensure paths are in UNIX format before anything is touched.
if $cygwin ; then
[ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
fi

# Attempt to set APP_HOME
# Resolve links: $0 may be a link
PRG="$0"
# Need this for relative symlinks.
while [ -h "$PRG" ] ; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
PRG="$link"
else
PRG=`dirname "$PRG"`"/$link"
fi
done
SAVED="`pwd`"
cd "`dirname \"$PRG\"`/" >&-
APP_HOME="`pwd -P`"
cd "$SAVED" >&-

CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar

# Determine the Java command to use to start the JVM.
if [ -n "$JAVA_HOME" ] ; then
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
# IBM's JDK on AIX uses strange locations for the executables
JAVACMD="$JAVA_HOME/jre/sh/java"
else
JAVACMD="$JAVA_HOME/bin/java"
fi
if [ ! -x "$JAVACMD" ] ; then
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
else
JAVACMD="java"
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi

# Increase the maximum file descriptors if we can.
if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
MAX_FD_LIMIT=`ulimit -H -n`
if [ $? -eq 0 ] ; then
if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
MAX_FD="$MAX_FD_LIMIT"
fi
ulimit -n $MAX_FD
if [ $? -ne 0 ] ; then
warn "Could not set maximum file descriptor limit: $MAX_FD"
fi
else
warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
fi
fi

# For Darwin, add options to specify how the application appears in the dock
if $darwin; then
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
fi

# For Cygwin, switch paths to Windows format before running java
if $cygwin ; then
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`

# We build the pattern for arguments to be converted via cygpath
ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
SEP=""
for dir in $ROOTDIRSRAW ; do
ROOTDIRS="$ROOTDIRS$SEP$dir"
SEP="|"
done
OURCYGPATTERN="(^($ROOTDIRS))"
# Add a user-defined pattern to the cygpath arguments
if [ "$GRADLE_CYGPATTERN" != "" ] ; then
OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
fi
# Now convert the arguments - kludge to limit ourselves to /bin/sh
i=0
for arg in "$@" ; do
CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option

if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
else
eval `echo args$i`="\"$arg\""
fi
i=$((i+1))
done
case $i in
(0) set -- ;;
(1) set -- "$args0" ;;
(2) set -- "$args0" "$args1" ;;
(3) set -- "$args0" "$args1" "$args2" ;;
(4) set -- "$args0" "$args1" "$args2" "$args3" ;;
(5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
(6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
(7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
(8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
(9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
esac
fi

# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
function splitJvmOpts() {
JVM_OPTS=("$@")
}
eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"

exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
90 changes: 90 additions & 0 deletions gradlew.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
@if "%DEBUG%" == "" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@rem
@rem ##########################################################################

@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal

@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS=

set DIRNAME=%~dp0
if "%DIRNAME%" == "" set DIRNAME=.
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%

@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome

set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if "%ERRORLEVEL%" == "0" goto init

echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.

goto fail

:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
set JAVA_EXE=%JAVA_HOME%/bin/java.exe

if exist "%JAVA_EXE%" goto init

echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.

goto fail

:init
@rem Get command-line arguments, handling Windowz variants

if not "%OS%" == "Windows_NT" goto win9xME_args
if "%@eval[2+2]" == "4" goto 4NT_args

:win9xME_args
@rem Slurp the command line arguments.
set CMD_LINE_ARGS=
set _SKIP=2

:win9xME_args_slurp
if "x%~1" == "x" goto execute

set CMD_LINE_ARGS=%*
goto execute

:4NT_args
@rem Get arguments from the 4NT Shell from JP Software
set CMD_LINE_ARGS=%$

:execute
@rem Setup the command line

set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar

@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%

:end
@rem End local scope for the variables with windows NT shell
if "%ERRORLEVEL%"=="0" goto mainEnd

:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
exit /b 1

:mainEnd
if "%OS%"=="Windows_NT" endlocal

:omega
34 changes: 0 additions & 34 deletions project/build.scala

This file was deleted.

3 changes: 0 additions & 3 deletions project/plugins.sbt

This file was deleted.

File renamed without changes.
File renamed without changes.
Loading