accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject svn commit: r1297096 - /incubator/accumulo/trunk/src/trace/
Date Mon, 05 Mar 2012 15:49:17 GMT
Author: vines
Date: Mon Mar  5 15:49:17 2012
New Revision: 1297096

ACCUMULO-442 - merging


Modified: incubator/accumulo/trunk/src/trace/
--- incubator/accumulo/trunk/src/trace/ (original)
+++ incubator/accumulo/trunk/src/trace/ Mon Mar  5 15:49:17 2012
@@ -15,12 +15,20 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
+# This script will regenerate the thrift code for cloudtrace. This should be run at least
whenever the thrift code is changed. There is no harm, besides wasted
+# cycles, from running it more often then that.
+# Generates the cloudtrace thrift code. We're explicitly using thrift0.6 because other versions
+# are not compatible
 thrift0.6 -o target -gen java src/main/thrift/cloudtrace.thrift
+# For all generated thrift code, suppress all warnings
 find target/gen-java -name '*.java' -print | xargs sed -i.orig -e 's/public class /@SuppressWarnings("all")
public class /'
+# Make a directory for said thrift code if does not already exist
 mkdir -p src/main/java/cloudtrace/thrift
+# For every file, move it with the appropriate path name IFF they are different
 for f in target/gen-java/cloudtrace/thrift/*
   DEST=src/main/java/cloudtrace/thrift/`basename $f`

View raw message