Commit Graph

73 Commits

Author SHA1 Message Date
Jamie Doornbos 53235c5212 Preparing for 1.8-SNAPSHOT development.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6511 542714f4-19e9-0310-aa3c-eee0fc999fb1
2011-02-28 20:01:14 +00:00
Jamie Doornbos 5a65b218d8 Preparing for 1.7 release.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6509 542714f4-19e9-0310-aa3c-eee0fc999fb1
2011-02-28 19:53:19 +00:00
Jamie Doornbos e7a725f9e1 Preparing for 1.7-SNAPSHOT development.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6505 542714f4-19e9-0310-aa3c-eee0fc999fb1
2011-02-21 22:02:35 +00:00
Jamie Doornbos 202e3fa49d Preparing for 1.6 release.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6503 542714f4-19e9-0310-aa3c-eee0fc999fb1
2011-02-21 21:55:41 +00:00
Mike Thomas b5bd9ece3c Preparing for 1.6-SNAPSHOT development.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6498 542714f4-19e9-0310-aa3c-eee0fc999fb1
2011-02-17 19:43:10 +00:00
Mike Thomas 01e7f8ef04 Preparing for 1.5 release.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6496 542714f4-19e9-0310-aa3c-eee0fc999fb1
2011-02-17 19:38:55 +00:00
Charlie Groves a381c8544e We only need ooo-external for these now
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6469 542714f4-19e9-0310-aa3c-eee0fc999fb1
2011-01-28 19:32:30 +00:00
Mike Thomas 1463fe0fce Step 2 in getting the *-poms versions to match pom versions.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6434 542714f4-19e9-0310-aa3c-eee0fc999fb1
2011-01-18 17:55:31 +00:00
Mike Thomas 4bbc8adaf1 And move the tools-pom in line too.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6433 542714f4-19e9-0310-aa3c-eee0fc999fb1
2011-01-18 17:47:13 +00:00
Mike Thomas 193506a7c7 Step 1 in bringing gwt-pom up to pom's version.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6432 542714f4-19e9-0310-aa3c-eee0fc999fb1
2011-01-18 17:41:39 +00:00
Mike Thomas 89b7a4df80 Step 1 in bringing as-pom up to pom's version.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6431 542714f4-19e9-0310-aa3c-eee0fc999fb1
2011-01-18 17:37:02 +00:00
Michael Bayne 8c1062894f Join our friend the main pom on the 1.4-SNAPSHOT train.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6371 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-12-10 18:00:34 +00:00
Michael Bayne 32c0791ff9 Ship a 1.3 release of all of our auxiliary artifacts to OOO's internal Maven
repository.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6370 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-12-10 17:58:53 +00:00
Michael Bayne aee6ea100d Move our auxiliary pom files into etc so that the top-level of this project is
less polluted. Between build systems, IDEs and IDE-specific-build-systems we've
got half a dozen metafiles knocking around the top-level directory. It's
mayhem.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6359 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-12-09 22:37:00 +00:00
Michael Bayne b6787edf36 No longer used.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6276 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-11-16 23:05:04 +00:00
Michael Bayne 9d2ca42eac Convert Narya (most of the way) over to a Maven Ant task based build. The
ActionScript bits remain belligerent, but the Java stuff is mostly shipshape.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6222 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-10-22 21:12:29 +00:00
Michael Bayne 4b443fe148 Last night, I read about the Mustache templating library (a derivative of
Google's CTemplate) and got all hot and bothered, because it seemed like it
would be sufficiently powerful to replace Velocity for our Narya templating
needs.

I then sought out a Java implementation and found one, and quickly discovered
that it lacked the right level of awesome for my needs. So I foolishly decided
to write my own, because Mustache seemed simple enough that I could reimplement
it in a few hours.

A few hours later, I had a neat and tidy reimplementation of Mustache and then
set about to converting Narya to using it. Then the fun began.

I discovered that Mustache wants everything in a hash, but sometimes you just
want to iterate over the elements of a list, and print them into the template
whole-hog. So I extended Mustache with the special "this" variable for printing
the whole context instead of pulling values out of it by name.

Then I remembered that Velocity allows you to do a deep dive into objects,
calling methods and calling methods on the return values of those methods.
Velocity even allows you to pass constants as arguments to those methods (true,
strings, integers). Well, I reimplemented the compound keys, so that you can
call foo.bar.baz, but I didn't go so far as to support constant arguments. That
seemed a step too far into complexity land and to be the sort of thing that
Mustache tries to avoid. So with compound keys, I just had to add a few
alternative versions of methods we were already calling, since we only ever
passed true/false as an argument.

Then I realized that Mustache doesn't do any smart trimming of newlines, so if
you have:

{{#stuff}}
blah blah
{{/stuff}}

You get the annoying newline after the open-tag and after the close-tag. So I
modified my implementation to trim newlines in those circumstances, so that
template authors don't have to do a bunch of template-weirding whitespace
jockeying.

Then I discovered that Mustache doesn't support any notion of scope. So when
you're inside a so-called section, the only variables visible are those bound
by that section. The stuff outside the section is totally invisible. Well,
that's not how Velocity works, you can reference things outside your loop
iterations. It seemed no terribly affront to Mustache to make things work that
way as well, so I did that.

Then I discovered a problem with the fact that Mustache implicitly binds the
loop object to the root of the namespace, so if you have {{name}} outside the
loop and then your loop object also contains a {{name}} field, then you can't
see the outside {{name}} anymore because it's shadowed. Tough titties, in this
case, I just changed our code to not shadow the name.

Then I encountered a bunch of uses of $vidx to put a space before all but the
first element of a list. So I added two more special variables -first and -last
which allow you to do just that sort of thing (and more) in a more template
friendly way because you don't need a Turing complete language just to decide
whether or not you need to mind the gap.

Then I encoutered some uses of $vidx directly, where we were using it to assign
constants in invocation service related classes. So I added another special
variable -index which resolves to basically the same thing that $vidx resolves
to (a 1-based counter indicating which element you're on in your list
iteration). I rationalized to myself that if you wanted to automatically number
laundry lists in your templates, having -index would be nice.

Finally, I have Narya's templating stuff producing character-for-character
replicas of what it used to do with Velocity. Well, actually there's one
newline in a place where there didn't used to be one, but I think that newline
makes sense and it was maybe some sort of Velocity bug that caused it not to
exist.

I've tested the gendobj, genservice and genreceiver tasks. I have no tested
whatever uses streamable_as.tmpl, but I'm pretty confident that it will work
exactly as before because I modified hundreds of lines of other templates in
exactly the same ways and they all work just fine.

So the world gets yet another templating library:

http://code.google.com/p/jmustache/


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6218 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-10-22 06:42:47 +00:00
Michael Bayne 9bb2916dc1 Oh boy, the new Velocity needs commons-lang. Whee!
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6204 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-10-15 16:30:48 +00:00
Michael Bayne bc3b6654ca Use the latest Velocity.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6202 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-10-15 16:09:51 +00:00
Charlie Groves 377fafae1e Add asunit tests for generated streamables
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6198 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-10-15 00:42:12 +00:00
Michael Bayne f4af1915b0 Build narya-tools with jarjar so as to hide its included dependencies in the
unfortunate event that someone puts it on a real project classpath.

Modified GenTask to totally hide Velocity from derived classes so that external
libraries can make use of it in their own Ant tasks without inheriting a
Velocity dependency and also becoming booched because Velocity was renamed in
jarjar and won't link against an unrenamed Velocity.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6185 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-10-12 17:35:41 +00:00
Par Winzell 480893d0b0 No gwt-dev needed, we're not compiling.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6184 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-10-07 20:32:42 +00:00
Par Winzell e0e47a1a1a Build some GWT bits, if GWT is present.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6179 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-10-07 19:22:20 +00:00
Ray Greenwell 22d586dc89 Use aspirin.swc.
Removed corelib and ooolib (aspirin) from our included libraries.
That ain't right. But they were also in the external libraries
and that seems to have been what was happening.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6073 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-06-09 20:47:49 +00:00
Dave Hoover 6fe5ae9238 Include jar for JSR-250
The @Generated annotation showed up in JSR-250 and then was bundled into
Java 1.6. For those of us stuck in a 1.5 world, there's fortunately a
nice tiny little jar with the necessary classes, so slurp that in.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6057 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-04-08 21:24:35 +00:00
Michael Bayne 772cda0a58 Should be no harm in compiling against Guava instead of GC as they have the
exact same API. So if you ship with GC instead of Guava, nothing will break.

Eventually we'll want to ship with Guava instead of GC so that we can use
Guava-specific methods, but projects can make that switch at their leisure.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6043 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-03-16 23:52:54 +00:00
Ray Greenwell e6fa8e77f1 Obsolete.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5926 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-08-22 00:12:51 +00:00
Ray Greenwell 6aa154575e Look ma, just lib.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5925 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-08-21 23:30:11 +00:00
Ray Greenwell 24c16141f6 I do not think we need this anymore.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5924 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-08-21 22:54:12 +00:00
Ray Greenwell 655b70b0e2 Don't include the ooolib classes in our lib, right?
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5921 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-08-21 21:30:35 +00:00
Michael Bayne 805ef99374 Various utility classes moved to flash-utils.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5889 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-07-21 20:56:35 +00:00
Michael Bayne ff3c59799b No longer need atunit.jar.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5886 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-07-21 00:30:16 +00:00
Michael Bayne 646b438404 We need commons-collections as well for our velocity-using tools.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5866 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-07-13 00:29:59 +00:00
Michael Bayne e9f3d53a76 Nix commons dependencies.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5860 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-07-12 21:14:37 +00:00
Michael Bayne 2c2e28f5ed Move our EHCache peer coordinator down here where other projects can use it.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5835 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-06-22 22:10:34 +00:00
Michael Bayne a1aa2d77ae Revamping/cleanup of how we handle authentication usernames as well as chained
authenticators and chained session factories. We can share a lot more code this
way and the implicit requirement that the default authenticator/factory had to
be configured before anyone else configured a chanied author/factory is gone.

The other big change is that Credentials doesn't require a username
(UsernamePasswordCreds inherits that username so most derived classes don't
notice any difference). Instead we require that a canonical authentication
username be determined and configured in AuthingConnection during the
authentication process. This canonical username is then used to resolve the
client session and map everything in the client manager.

This is pretty much exactly what was going on before except that we were doing
it all in an ad hoc way by jamming a new name into Credentials during the
authentication process and also doing jiggery pokery in
PresentsSession.assignStartingUsername. That all goes away and/or becomes
cleaner and more explicit.

This is going to impact some Yohoho jiggery pokery, which I will shortly commit
a patch for, but we're going to need to test it. Omelets, eggs, etc.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5828 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-06-20 00:56:01 +00:00
Ray Greenwell 3746b54343 Update RSL info, do not statically link them.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5817 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-06-08 21:59:25 +00:00
Ray Greenwell 5c26798d10 Revert to targetting 9.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5645 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-01-29 20:29:22 +00:00
Ray Greenwell ca5aad1360 Updated to target flash 10.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5644 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-01-28 22:28:15 +00:00
Michael Bayne d76d1678cf Find Depot in its new home.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5551 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-11-16 07:46:11 +00:00
Ray Greenwell be8597a5c1 Headless building for happy Mac development.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5496 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-11-04 01:40:45 +00:00
Jamie Doornbos 142598958d Just noticed this old sc workaround file, it is no longer needed
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5426 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-08 20:16:44 +00:00
Bruno Garcia 8a22502f47 Flex 3.1 changes
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5332 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-08-20 22:24:57 +00:00
Jamie Doornbos 8ce8e69b59 Changed BureauRegistry to use Launcher and updated bureau tests
* Moved the thane-specific TestClientMain out into src/thane and renamed 
  BureauTestClient
* Removed server name and port from the registry init and from the Launcher/
  CommandGenerator parameters. These can be inserted by the caller
* Converted all the asc junk to compc/mxmlc the same as msoy does it
* Moved the test client main function into src/as land
* Added extdeps.suffix alternative approach since tests/build.xml does not
  get launched from nifty ooo-libs container
* Fixed bureau test targets
* Moved avmthane to overridable property and corrected out of date default
* Converted BureauRegistry code to deal with Launcher objects and added shim
  to preserve use of CommandGenerator
* Fixed narya build to remove thane-config.xml after building aslib


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5218 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-07-02 23:44:11 +00:00
Jamie Doornbos 868737265b We don't need these file lists and groups anymore
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5187 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-06-14 00:25:05 +00:00
Par Winzell 242e38a472 Handle swc dependencies with different names.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5184 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-06-13 16:37:25 +00:00
Par Winzell b88cee2be7 Stop switching different source files into Environment.as's place. Instead build tiny swc's with the player-specific Environment.as and the thane-specific one. Then compile naryalib.swc with one of these tiny swc's as an external library. When we compile the final executables we'll do a inclusive linking to get the right implementation into place.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5182 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-06-13 03:39:26 +00:00
Michael Bayne 3aefc93838 Holy fruity beverage Batman! I'm taking the plunge and switching to Guice for
dependency resolution and management. Things are currently in a state of
transition, but the important patterns have been established and I'll aim to
sweep through all of Narya, Nenya and Vilya in the near future and do
everything properly.

Going through the other million-odd lines of code we have scattered across our
various projects that use these libraries is not something I plan to do, so
we'll be maintaining backward compatibility with the old static member method,
though I hope to strive toward eradication of that usage entirely in MSOY while
we still have a fighting chance.

Given that some of our projects will continue to use the static member method
in perpetuity, I'm not going to @Deprecate those fields because that would fill
their logs with so much spam that they'd have to turn off deprecation warnings
which would make life worse for them. So instead we'll settle for the big scary
comment warning people away from the old bits.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5153 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-06-07 17:44:48 +00:00
Jamie Doornbos 63d228ee4c Removed overzealous inclusion of http library for narya
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5151 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-06-05 00:07:21 +00:00
Jamie Doornbos d2b8eaeb6b Removed temporary lib/abc files from narya and replace dependencies with maven ones
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5150 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-06-04 23:59:37 +00:00