<div><br></div>   All,<div><br></div><div>   As we started using Protobuf, it is important to know how you make changes to .proto files and how to compile them. Easiest way:</div><div><br></div><div>1. Download protobuf compiler from: <a href="http://code.google.com/p/protobuf/downloads/list">http://code.google.com/p/protobuf/downloads/list</a></div>
<div><br></div><div>2. Install protobuf-dt eclipse plugin as detailed here: <a href="http://code.google.com/p/protobuf-dt/">http://code.google.com/p/protobuf-dt/</a></div><div><br></div><div>3. Configure the destination directory to generate the java files as detailed in step 2 here:</div>
<div><br></div><div><a href="http://code.google.com/p/protobuf-dt/wiki/IntegrationWithProtoc">http://code.google.com/p/protobuf-dt/wiki/IntegrationWithProtoc</a><br></div><div><br></div><div>Set the &quot;Java Output Directory&quot; to: src/main/java</div>
<div><br></div><div>4. VERY IMPORTANT FOR JBPM: jBPM Flow project has a .proto file that extends the data types defined in the .proto file in Drools Core, so you need to configure the protobuf import path as detailed here:</div>
<div><br></div><div><a href="http://code.google.com/p/protobuf-dt/wiki/ImportPaths">http://code.google.com/p/protobuf-dt/wiki/ImportPaths</a></div><div><br></div><div>Add the following import paths to the jbpm-flow project:</div>
<div><br></div><div>${your drools-core project in eclipse}/src/main/resources</div><div>${your_drools_flow_project}/src/main/resources</div><div><br></div><div>   After doing that, when you edit and save the .proto files, eclipse will automatically compile and regenerate the java source code for them.</div>
<div><br></div><div>   Edson</div><div> </div><div><div><br></div>-- <br>  Edson Tirelli<br>  JBoss Drools Core Development<br>  JBoss by Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>
</div>