You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by vi...@apache.org on 2012/03/05 16:49:17 UTC

svn commit: r1297096 - /incubator/accumulo/trunk/src/trace/thrift.sh

Author: vines
Date: Mon Mar  5 15:49:17 2012
New Revision: 1297096

URL: http://svn.apache.org/viewvc?rev=1297096&view=rev
Log:
ACCUMULO-442 - merging


Modified:
    incubator/accumulo/trunk/src/trace/thrift.sh

Modified: incubator/accumulo/trunk/src/trace/thrift.sh
URL: http://svn.apache.org/viewvc/incubator/accumulo/trunk/src/trace/thrift.sh?rev=1297096&r1=1297095&r2=1297096&view=diff
==============================================================================
--- incubator/accumulo/trunk/src/trace/thrift.sh (original)
+++ incubator/accumulo/trunk/src/trace/thrift.sh 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/*
 do
   DEST=src/main/java/cloudtrace/thrift/`basename $f`