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