File watching package.

BUG=
R=nweiz@google.com

Review URL: https://codereview.chromium.org//18612013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/watcher@24971 260f80e4-7a28-3924-810f-c04153c831b5
Fix pathos->path in watcher example.

BUG=
R=nweiz@google.com

Review URL: https://codereview.chromium.org//18878003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/watcher@24976 260f80e4-7a28-3924-810f-c04153c831b5
Split up tests and add some heartbeats to try to make them not timeout.

BUG=
R=nweiz@google.com

Review URL: https://codereview.chromium.org//18877005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/watcher@24978 260f80e4-7a28-3924-810f-c04153c831b5
Add some debug prints to figure out why a test is failing on windows.

R=nweiz@google.com

Review URL: https://codereview.chromium.org//18513006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/watcher@24983 260f80e4-7a28-3924-810f-c04153c831b5
Normalize paths in mock timestamp map.

Makes sure separators are consistent on Windows.

Review URL: https://codereview.chromium.org//18430006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/watcher@24984 260f80e4-7a28-3924-810f-c04153c831b5
Normalize paths when matching them.

Review URL: https://codereview.chromium.org//18464006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/watcher@24986 260f80e4-7a28-3924-810f-c04153c831b5
Add missing newline after Actual value in fail message.
Remove the BasMatcher class; it made some sense when we had both 'interface'
and 'class' but adds no value now.
Fix a comment in the CustomMatcher documentation.
Fix tests affected by these changes.

R=sigmund@google.com

Review URL: https://codereview.chromium.org//18442002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/watcher@25356 260f80e4-7a28-3924-810f-c04153c831b5
Re-implement directory polling.

BUG=https://code.google.com/p/dart/issues/detail?id=12107
R=nweiz@google.com

Review URL: https://codereview.chromium.org//21628002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/watcher@25746 260f80e4-7a28-3924-810f-c04153c831b5
pkg: analysis aided cleanup

Removed a lot of warnings and hints when opening many pkg projects in the editor

R=gram@google.com

Review URL: https://codereview.chromium.org//22284003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/watcher@25831 260f80e4-7a28-3924-810f-c04153c831b5
Handle watching a non-existent directory.

BUG=
R=nweiz@google.com

Review URL: https://codereview.chromium.org//22999008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/watcher@26153 260f80e4-7a28-3924-810f-c04153c831b5
Fix error handling in watcher.

BUG=
R=nweiz@google.com

Review URL: https://codereview.chromium.org//23085006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/watcher@26156 260f80e4-7a28-3924-810f-c04153c831b5
Normalize test paths.

BUG=
R=nweiz@google.com

Review URL: https://codereview.chromium.org//23183006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/watcher@26160 260f80e4-7a28-3924-810f-c04153c831b5
Use filtered stacks in pub, barback, and watcher tests.

This also exposes more unittest stuff to users of scheduled_test.

R=rnystrom@google.com
BUG=

Review URL: https://codereview.chromium.org//23582003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/watcher@26751 260f80e4-7a28-3924-810f-c04153c831b5
Use Directory.systemTemp getter in pkg subdirectory of repository.

BUG=
R=sgjesse@google.com

Review URL: https://codereview.chromium.org//25731003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/watcher@28218 260f80e4-7a28-3924-810f-c04153c831b5
Bump wait time for watcher test.

This is to see if it makes the test less flaky on the bots,
in particular the ARM ones.

BUG=https://code.google.com/p/dart/issues/detail?id=13705
R=nweiz@google.com

Review URL: https://codereview.chromium.org//26398002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/watcher@28341 260f80e4-7a28-3924-810f-c04153c831b5
Adapt streams for additional stackTrace argument.

R=lrn@google.com

Review URL: https://codereview.chromium.org//25094002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/watcher@28511 260f80e4-7a28-3924-810f-c04153c831b5
Remove FileException, DirectoryException and LinkException from dart:io and use FileSystemException instaed.

BUG=https://code.google.com/p/dart/issues/detail?id=12461
R=nweiz@google.com, sgjesse@google.com

Review URL: https://codereview.chromium.org//26968003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/watcher@29168 260f80e4-7a28-3924-810f-c04153c831b5
Remove uses of Options from pkg, samples, tests, and third_party directories.

BUG=
R=sgjesse@google.com

Review URL: https://codereview.chromium.org//52573002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/watcher@29552 260f80e4-7a28-3924-810f-c04153c831b5
fix csslib and watcher warnings

R=rnystrom@google.com, terry@google.com

Review URL: https://codereview.chromium.org//50703011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/watcher@29632 260f80e4-7a28-3924-810f-c04153c831b5
add versions and constraints for packages and samples

- all packages at 0.9.0, except "analyzer" which had a version already
- dependencies at ">=0.9.0 <0.10.0" except analyzer is ">=0.10.0 <0.11.0"
- sdk constraint ">=1.0.0 <2.0.0"

R=sigmund@google.com

Review URL: https://codereview.chromium.org//59763006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/watcher@29957 260f80e4-7a28-3924-810f-c04153c831b5