blob: 80bb0e9bbb7633661e4bd9b86469760abc2e6868 [file] [log] [blame]
crazyboblee210bf432009-02-05 06:04:18 +00001#!/bin/sh
2# Copies classes into Guice's internal package.
3
4client=/usr/local/google/clients/collect/google3
5
6srcdir=src/com/google/inject/internal
7testdir=test/com/google/inject/internal
8
9filter() {
10 sed 's/com.google.common.base.internal/com.google.inject.internal/' | \
11 sed 's/com.google.common.base/com.google.inject.internal/' | \
12 sed 's/com.google.common.collect/com.google.inject.internal/'
13}
14
15copy() {
16 inFile=$1;
17 fileName=`basename $inFile`
18 dest=$2
19 destpath=$dest/$fileName
20 filter < $client/${inFile} > $destpath
21}
22
23commonpath=java/com/google/common
24
25copy $commonpath/collect/ComputationException.java $srcdir
26copy $commonpath/collect/AsynchronousComputationException.java $srcdir
27copy $commonpath/collect/CustomConcurrentHashMap.java $srcdir
28copy $commonpath/collect/ExpirationTimer.java $srcdir
29copy $commonpath/collect/MapMaker.java $srcdir
30copy $commonpath/collect/NullOutputException.java $srcdir
31copy $commonpath/base/Function.java $srcdir
32copy $commonpath/base/Nullable.java $srcdir
33copy $commonpath/base/FinalizableReference.java $srcdir
34copy $commonpath/base/FinalizableReferenceQueue.java $srcdir
35copy $commonpath/base/internal/Finalizer.java $srcdir
36copy $commonpath/base/FinalizableWeakReference.java $srcdir
37copy $commonpath/base/FinalizableSoftReference.java $srcdir
38copy $commonpath/base/FinalizablePhantomReference.java $srcdir
39
40commontestspath=javatests/com/google/common
41
42copy $commontestspath/base/FinalizableReferenceQueueTest.java $testdir
43copy $commontestspath/collect/MapMakerTestSuite.java $testdir
44copy $commontestspath/collect/Jsr166HashMap.java $testdir
45copy $commontestspath/collect/Jsr166HashMapTest.java $testdir
46copy $commonpath/collect/ForwardingConcurrentMap.java $testdir
47copy $commonpath/collect/ForwardingMap.java $testdir
48copy $commonpath/collect/ForwardingCollection.java $testdir
49copy $commonpath/collect/ForwardingObject.java $testdir
50copy $commonpath/collect/ForwardingSet.java $testdir
51copy $commonpath/collect/ForwardingMap.java $testdir
52copy $commonpath/base/Preconditions.java $testdir
53
54chmod +w -R src test