<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div><br></div><div>With the v1.2.0 release, I finally got tired of saving and merging config.rb, </div><div>local plugins, and mysql connector to upgrade on several test servers. </div><div>I tried adding my changes to common/config/config.rb — the changes worked when running devserver</div><div>from the distribution, but they didn’t get exported into the distribution zip file</div><div>after running build_release.  </div><div><br></div><div>It appears that all of that is intentional — the dist target is intended to build the</div><div>standard distribution, not a custom one. ( i.e. it does not include local plugins, and it</div><div>specifically excludes the mysql connector if it is present. ) </div><div><br></div><div>I made the following changes to the build-zip target to include local-plugins, mysql connector</div><div>and common/config/config.rb is they are present. Then copied them to build/mybuild.xml where</div><div>it can be run by:</div><div><br></div><div><div>./build/run -buildfile mybuild.xml dist -Dversion=“v1.2.0+local” </div></div><div><br></div><div><br></div><div><a href="https://github.com/uvalib-dcs/archivesspace/blob/local-mods/build/mybuild.xml">https://github.com/uvalib-dcs/archivesspace/blob/local-mods/build/mybuild.xml</a></div><div><br></div><div>Assuming you’re using mysql and there isn’t a local demo database to be migrated,</div><div>you can just unzip, run migrate_db and restart and it will rebuild the solr indexes. </div><div><br></div><div><br></div><div>— Steve Majewski</div><div><br></div><div><br></div><div><div style="margin: 0px; color: rgb(105, 40, 40); background-color: rgb(189, 238, 237);"><b>diff --git a/build/build.xml b/build/build.xml</b></div><div style="margin: 0px; color: rgb(105, 40, 40); background-color: rgb(189, 238, 237);"><b>index e6ff44b..a9c13c3 100644</b></div><div style="margin: 0px; color: rgb(105, 40, 40); background-color: rgb(189, 238, 237);"><b>--- a/build/build.xml</b></div><div style="margin: 0px; color: rgb(105, 40, 40); background-color: rgb(189, 238, 237);"><b>+++ b/build/build.xml</b></div><div style="margin: 0px; color: rgb(14, 169, 182); background-color: rgb(189, 238, 237);">@@ -491,3 +491,3 @@</div><p style="margin: 0px; background-color: rgb(189, 238, 237); min-height: 16px;"> <br class="webkit-block-placeholder"></p><div style="margin: 0px; color: rgb(182, 43, 23); background-color: rgb(189, 238, 237);">-  <!-- Dist build --></div><div style="margin: 0px; color: rgb(19, 171, 11); background-color: rgb(189, 238, 237);">+  <!-- Override build-zip in Dist build to build custom local zip distribution --></div><div style="margin: 0px; background-color: rgb(189, 238, 237);">   <target name="build-zip" depends="set-classpath"</div><div style="margin: 0px; color: rgb(14, 169, 182); background-color: rgb(189, 238, 237); position: static; z-index: auto;">@@ -555,2 +555,8 @@</div><p style="margin: 0px; background-color: rgb(189, 238, 237); min-height: 16px;"> <br class="webkit-block-placeholder"></p><div style="margin: 0px; color: rgb(19, 171, 11); background-color: rgb(189, 238, 237);">+    <copy todir="target/archivesspace/plugins/local" verbose="true" ></div><div style="margin: 0px; color: rgb(19, 171, 11); background-color: rgb(189, 238, 237);">+    <!-- include local plugins --></div><div style="margin: 0px; color: rgb(19, 171, 11); background-color: rgb(189, 238, 237);">+      <fileset dir="../plugins/local" ></div><div style="margin: 0px; color: rgb(19, 171, 11); background-color: rgb(189, 238, 237);">+        <exclude name="**/.gitignore" /></div><div style="margin: 0px; color: rgb(19, 171, 11); background-color: rgb(189, 238, 237);">+      </fileset></div><div style="margin: 0px; color: rgb(19, 171, 11); background-color: rgb(189, 238, 237);">+    </copy></div><p style="margin: 0px; background-color: rgb(189, 238, 237); min-height: 16px;"> <br class="webkit-block-placeholder"></p><div style="margin: 0px; color: rgb(14, 169, 182); background-color: rgb(189, 238, 237);">@@ -588,4 +594,9 @@</div><p style="margin: 0px; background-color: rgb(189, 238, 237); min-height: 16px;"> <br class="webkit-block-placeholder"></p><div style="margin: 0px; color: rgb(19, 171, 11); background-color: rgb(189, 238, 237);">+<span style="color: #000000">       </span><concat destfile="target/archivesspace/config/config.rb" append="true" ></div><div style="margin: 0px; color: rgb(19, 171, 11); background-color: rgb(189, 238, 237);">+<span style="color: #000000">       </span><!-- include local config.rb changes --></div><div style="margin: 0px; color: rgb(19, 171, 11); background-color: rgb(189, 238, 237);">+<span style="color: #000000">               </span><filelist dir="../common/config" files="config.rb"/></div><div style="margin: 0px; color: rgb(19, 171, 11); background-color: rgb(189, 238, 237);">+<span style="color: #000000">       </span></concat></div><div style="margin: 0px; color: rgb(19, 171, 11); background-color: rgb(189, 238, 237);">+</div><div style="margin: 0px; background-color: rgb(189, 238, 237);">     <zip zipfile="../archivesspace-${version}.zip" level="9"></div><div style="margin: 0px; color: rgb(182, 43, 23); background-color: rgb(189, 238, 237);">-      <zipfileset dir="target" excludes="**/mysql-connector-java*.jar" /></div><div style="margin: 0px; color: rgb(19, 171, 11); background-color: rgb(189, 238, 237);">+      <zipfileset dir="target" /> <!-- DON'T: excludes="**/mysql-connector-java*.jar" /> --></div><div style="margin: 0px; background-color: rgb(189, 238, 237);">       <zipfileset dir=".." includes="README.md" prefix="archivesspace" filemode="644" /></div></div><div><br></div><div></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></body></html>