accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vi...@apache.org
Subject svn commit: r1297093 - /incubator/accumulo/branches/1.4/src/trace/thrift.sh
Date Mon, 05 Mar 2012 15:48:33 GMT
Author: vines
Date: Mon Mar  5 15:48:32 2012
New Revision: 1297093

URL: http://svn.apache.org/viewvc?rev=1297093&view=rev
Log:
ACCUMULO-442 - improved documentation


Modified:
    incubator/accumulo/branches/1.4/src/trace/thrift.sh

Modified: incubator/accumulo/branches/1.4/src/trace/thrift.sh
URL: http://svn.apache.org/viewvc/incubator/accumulo/branches/1.4/src/trace/thrift.sh?rev=1297093&r1=1297092&r2=1297093&view=diff
==============================================================================
--- incubator/accumulo/branches/1.4/src/trace/thrift.sh (original)
+++ incubator/accumulo/branches/1.4/src/trace/thrift.sh Mon Mar  5 15:48:32 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`



Mime
View raw message