Commit Graph

2906 Commits

Author SHA1 Message Date
samskivert be6eaa9ddc Added needed file attribute to mavendeploy action.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2990 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2011-03-16 18:29:09 +00:00
charlie.groves 697b0bfb05 ooo-buildify
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2989 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2011-03-16 00:31:34 +00:00
ray.j.greenwell e02fb89cb0 PECS, and use Collections.reverseOrder().
There are actually 5 different implementations of quicksort in here when
one will do (the array versions could go away and call the list version,
wrapping in Arrays.asList()). But I won't touch those right now. I am
super tempted to reduce things down to one List version and one array
version.

Also it's weird that there are customized Comparators that are null-safe.
I believe I was the one who added them in the past, but I've since learned.
It's a strange undocumented "convenience" when it's easy enough for someone
to provide a null-safe comparator for comparables. (In guava you can call
Ordering.natural().nullsLast()).


git-svn-id: https://samskivert.googlecode.com/svn/trunk@2988 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2011-01-26 20:36:37 +00:00
samskivert beabb1fc19 The Maven-based build moved the GWT resources into the main samskivert jar file
a while back. Let's have the Ant-based build do the same. We can also get rid
of samskivert-gwt, since it hasn't been necessary for some time.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@2987 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2011-01-25 20:55:59 +00:00
charlie.groves cc893eb3ba Deploy a sources jar along with the code jar for IDE-happiness
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2986 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2011-01-20 00:41:28 +00:00
charlie.groves bf3644bca7 Use m2eclipse for Eclipse configuration
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2983 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2011-01-11 23:45:52 +00:00
samskivert f8cb176177 Bump GWT artifact up to snapshot version.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2980 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2011-01-07 22:26:35 +00:00
samskivert f20223535c Build and ship a 1.2 samskivert-gwt for the OOO repo.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2979 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2011-01-07 22:23:16 +00:00
samskivert c5cb3df91b [maven-release-plugin] prepare for next development iteration
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2978 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2011-01-07 22:17:37 +00:00
samskivert 2972e17cbd [maven-release-plugin] prepare release samskivert-1.2
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2976 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2011-01-07 22:17:26 +00:00
samskivert 667ac7a885 No longer needed now that Coreen understands Maven-based projects.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2975 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2011-01-07 22:10:44 +00:00
karma@deadmoose.com a2764d78bb Auld Lang Syne
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2974 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2011-01-01 05:09:33 +00:00
samskivert 939f501ae4 Pass the property key along via the exception.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2973 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-12-19 19:26:11 +00:00
samskivert 4871bc817f Added requireProperty() and associated MissingPropertyException.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2972 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-12-19 19:12:10 +00:00
samskivert df7df145e6 Widening.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2971 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-12-19 18:58:04 +00:00
ray.j.greenwell cb82f080d6 Added ArrayUtil.safeToString(), which encapsulates the logic to check if it's an array.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2970 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-12-15 01:57:47 +00:00
ray.j.greenwell 059d557ec9 LogBuilder.arrayStr() -> ArrayUtil.toString(), made public.
If Java were invented today, you can be damn sure the array classes
would have reasonable hashCode(), equals(), and toString() implementations,
instead of falling back to Object's.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@2969 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-12-15 01:17:31 +00:00
samskivert ecdd534630 Actually, it only makes sense to provide ranges for exported transitive
dependencies. Fortunately, samskivert has no exported transitive dependencies.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@2968 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-12-09 17:18:44 +00:00
samskivert 11261f1530 Adding version ranges seems to make Maven go out looking for newer versions. It
doesn't just indicate leniency in the face of conflict. Jesus fucking christ.
Anyhow, we can't cope with velocity-1.7.1-beta, so we have to provide a "soft"
recommendation for velocity-1.6.4.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@2967 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-12-09 17:15:25 +00:00
samskivert e6b2bc9644 Indicate to Maven that we're happy with newer versions of all of our
dependencies. This will ensure that Maven does not erroneously omit a newer
dependency of some other library because we happen to specify an older version.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@2966 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-12-09 17:11:51 +00:00
karma@deadmoose.com b84a696da2 Argh. 1.5 has setIconImage on Frame, not Window.
It's not that it didn't exist, it just used to be on Frame. So when
I did all my 1.5 testing, I was working with a JFrame, and then at the
11th hour decided to make this function take as general a thing as
possible, so I merrily climbed up the tree in 1.6 & didn't notice that
change.

git-svn-id: https://samskivert.googlecode.com/svn/trunk@2965 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-12-02 19:26:46 +00:00
charlie.groves 37e5e05998 Both the List and Image versions of setIconImage were introduced in 1.6, so it's reflection or
nothing.



git-svn-id: https://samskivert.googlecode.com/svn/trunk@2964 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-12-02 02:33:59 +00:00
karma@deadmoose.com 88628a38f4 Add a helper to set window icons.
As the comments say, it tries to use the nicer stuff that was added in
1.6, but falls back as needed.

git-svn-id: https://samskivert.googlecode.com/svn/trunk@2963 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-12-02 01:22:09 +00:00
charlie.groves 368dceaca2 Turn off warnings about jars from the manifest classpath not being present
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2962 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-12-01 02:50:38 +00:00
karma@deadmoose.com c1dbc51da7 Pretty sure truthiness is never null.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2961 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-12-01 01:00:57 +00:00
samskivert b6cf06ea1c Bump our log4j depend up to 1.2.16 so that we can drop those pesky exclusions.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2960 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-12-01 00:45:08 +00:00
samskivert ebdbd964b5 Do our null checking less wonkily.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2959 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-12-01 00:43:12 +00:00
ray.j.greenwell 6e4739870a You put T in, you get T out.
I'm open to suggestions as to whether this is the right thing.

I think if it were returning a view, we'd definitely want it like this.
You don't want a List<Integer> to look like a List<Number> and have
it break something when someone stuffs a Float in it.

But the argument could be made that returning a new List can surely be
seen as a List<Number> because it is not referenced anywhere else as
something more specific. Many of the guava methods allow a "re-typing"
like this, although I think they have admitted that it was a mistake and
newly added methods don't allow it.

In any case, I think that it's most proper to retain things as specifically
as possible. Why would you turn a List<Integer> into a List<Number>?
Why would you want to throw away the information? If you need to pass it
to a method that expects List<Number> then that method should be modified
to correctly accept List<? extends Number>.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@2958 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-11-29 20:35:46 +00:00
samskivert 8449796177 Go ahead and make maven-deploy publish locally unless otherwise directed.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2957 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-11-18 23:06:08 +00:00
par.winzell 0e59a1d7be IDEA module file for Samskivert. You must set M2_REPO for this to import.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2956 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-11-18 18:26:25 +00:00
samskivert a004d927aa DRY: lib.name -> ant.project.name.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2955 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-11-18 17:48:49 +00:00
samskivert 612040752c Alas, most of the world has moved on from Java 1.5. We will be unable to run
our tests when building samskivert with 1.5 because they depend on hsqldb which
is a 1.6 jar file. The main code base still compiles with a 1.5 compiler, so
there's no need for alarm.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@2954 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-11-18 01:25:28 +00:00
samskivert 16b3bf9d77 Turned out it was a typo in the Bamboo configuration, but let's require a
repository to be specified anyway. If you want to install to your local
repository, we should be using :install rather than :deploy.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@2953 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-11-15 19:37:47 +00:00
samskivert 81e7859d4a Nixed link to old docs on samskivert.com.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2952 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-11-15 18:17:59 +00:00
samskivert e70d0f89e4 Reference the platform docs at their new location. All hail Larry.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2951 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-11-15 18:02:37 +00:00
ray.j.greenwell 515d5b306e Added a shuffle() that uses our internal random.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2950 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-11-14 23:43:49 +00:00
samskivert 31ba6df09f Let's make the directory we're going to write to.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2949 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-11-12 23:00:40 +00:00
samskivert 73506e6969 Hrm, Maven uses surefire-reports. Which is retarded. But we can use
test-reports which perhaps more recognizable to Maven users.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@2948 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-11-12 22:57:18 +00:00
samskivert d10d454814 I think I like dist/test-output better, it fits more nicely with
dist/test-classes.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@2947 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-11-12 22:55:22 +00:00
samskivert 8c4b9a0da2 Generate test output to dist/tests. Run tests before deploying to Maven.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2946 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-11-12 22:54:50 +00:00
samskivert fc17d99805 No unique version. Just the snapshot and file system timestamp are peachy.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2945 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-11-12 22:50:29 +00:00
samskivert 7ed1d113a6 Specify a default for the repository that can be overridden.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2944 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-11-12 22:47:08 +00:00
samskivert 63adf2d915 A target for deploying our artifacts to a local Maven repository.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2943 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-11-12 22:43:27 +00:00
samskivert a4e126e060 Don't need that echo any more.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2942 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-11-12 16:45:06 +00:00
samskivert 4e92f6c519 An ant target for generating Coreen metadata. This is a placeholder until I
make Coreen understand Maven projects, but this sort of setup will be always
necessary for projects that use a totally custom build.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@2941 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-11-12 16:43:49 +00:00
ray.j.greenwell 7301369760 as(), casts the argument or returns null if it's not an instance of
the specified class.
Yeah.
I've had this laying around for a long time, almost embarrassed by it.
But I keep running into places where it'd be handy, and now I'm
going for it.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@2940 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-11-09 00:53:26 +00:00
karma@deadmoose.com 019e5f9311 From Monsieur Thomas. The matcher gets cranky when presented with null.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2939 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-10-28 21:18:27 +00:00
charlie.groves 5b49bb17e0 Export our dependencies again.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2938 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-10-28 20:07:39 +00:00
samskivert e6230497a9 Nixed unused import.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2937 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-10-25 19:35:08 +00:00
samskivert f39b34bba1 Regeneratd with mvn eclipse:eclipse and then cleaned up.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2936 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-10-25 19:27:35 +00:00