Upgrading SVN approach
Pages 202
- Home
- 2009 Esri Federal UC
- 2009 Esri International UC
- 2010 Esri Federal UC
- 2010 Esri International UC
- 2011 Esri Federal UC
- 2012 Esri Federal UC
- 2013 Esri Federal GIS Conference
- 2013 Esri International User Conference
- 2015 SDI Special Interest Group
- Add a Custom Profile
- Add an OpenSearch endpoint for Federated Search
- Add Another Tab to the Geoportal Interface
- Add Custom Link to a Search Result
- Add Custom Search Criteria
- Add the Geoportal Search to a List of Search Providers
- Add v1.1.1 FGDC editor to a previous Geoportal release
- AGP TO AGP Harvesting with the Geoportal
- AGS TO AGP Harvesting with the Geoportal
- All gpt.xml file settings
- An Introduction to vi
- Apache Tomcat geoportal logging
- Being a Good Robot
- Best Practice for Edits to JSP files
- Biological or Remote Sensing FGDC xsds
- Browse Tree
- Cart Processor
- Catalog Service
- Clear the Tomcat Work Folder
- Collections
- Common problems and solutions
- Communities and live examples
- Components
- Configure a Directory Server for the Geoportal
- Configure geoportal User and Schema in the PostgreSQL Database
- Configure Previewable Filetypes
- Configure Searching of YouTube
- Configure the gpt.xml File
- Configure Widgets
- Connecting to a User Directory
- Create a user account
- Create Relationships between Resources
- Customizations
- Customize DCAT output
- Customize Metadata Validation
- Database problems
- Database Tables
- DataDownload Tab
- Deploy and Configure the Geoportal Web Application in Tomcat
- Deploy and Configure the Servlet Web Application
- Deploy the Geoportal Web Application
- Details of Lucene Indexing in the Geoportal
- Development topics
- Discovering Resources
- Eclipse Project from Compiled WAR
- Eclipse Project from Source Code
- Enable Search Using an Ontology Service
- Error Messages in the Geoportal Web Application
- Esri Geoportal Server LiveDVD
- Extending the Web Harvester
- Federated Search in Portal for ArcGIS
- Feedback
- FGDC Biological Profile and Remote Sensing Extension
- FGDC Service Checker Integration
- Geoportal Clients for ArcGIS
- Geoportal CSW Clients
- Geoportal Facets using Apache Solr
- Geoportal genie
- Geoportal Project from Compiled WAR
- Geoportal Publish Client
- Geoportal Server 1.2.5 What's New
- Geoportal Server 1.2.6 What's New
- Geoportal Server 1.2.7 What's New
- Geoportal server as a broker
- Geoportal Server Downloads
- Geoportal Server v 1.0 What's New
- Geoportal Server v 1.1 What's New
- Geoportal Server v 1.1.1 What's New
- Geoportal Server v 1.2 What's New
- Geoportal Server v 1.2.2 What's New
- Geoportal Server v 1.2.4 What's New
- Geoportal SPARQL Sample
- Geoportal User Interface Components
- Geoportal Web Application File Organization
- Geoportal XML Editor
- Get Assistance with an Implementation
- GXE Concepts
- GXE Crash Course
- GXE Structure
- GXE Workflow
- High Availability and Large Number of Records
- How to Browse for Resources
- How to Create and Manage My Profile
- How to find all documents of a particular metadata standard
- How to Leave a Resource Review
- How to Login and Manage my Password
- How to Manage and Edit Resources
- How to Publish Resources
- How to Restrict Access to Resources
- How to Search for Resources
- How to Search with an Ontology Service
- How to Set Up an Esri Geoportal Server on Linux
- How to Use Search Page Results
- How to Use the Data Download Feature
- How to View Resource Relationships
- IDE Topics
- Identity Components LDAP and Single Sign On
- Index All Metadata Content
- Indexing and Searching the Time Period of the Content
- Install Apache Tomcat 6
- Install Desktop Tools
- Install Esri Geoportal Server
- Install PostgreSQL 9.1.2
- Install the JDBC .jar Files
- Installation
- Installation Version 1.0
- Installation Version 1.1
- Installation Version 1.2
- Installation Version 1.2.2
- Installation Version 1.2.4
- Installation Version 1.2.5
- Installation Version 1.2.6
- Installation Version 1.2.7
- Installation Version 1.2.8
- Integrate with a Content Management System
- Integrate with the con terra Security Solution
- Localization
- Log In to the Geoportal
- Logging
- Look and Feel of the User Interface
- Main Page
- Map LDAP Attributes on the Registration Page
- Map Viewer
- Online form editing for all publication methods
- Open source acknowledgements
- Oracle WebLogic geoportal logging
- Orientation to the Create Metadata Page
- Perform Preinstallation Computer Setup
- Portal for ArcGIS Integration
- Post Deployment Actions
- Preinstallation
- Preinstallation 0.9
- Preinstallation 1.0 and 1.1.x
- Preinstallation 1.2
- Preinstallation 1.2.2
- Preinstallation 1.2.4
- Preinstallation 1.2.5
- Preinstallation 1.2.6
- Preinstallation 1.2.7
- Preinstallation 1.2.8
- Preview Function
- Publication Components
- Ratings and Comments for Search Results
- Register ArcGIS for Server with the Geoportal
- Release notes
- REST API Syntax
- Sample FGDC metadata.xml
- Scheduled tasks
- Search Components
- Search Map
- Search Widget for Flex
- Search Widget for HTML
- Search Widget for Silverlight
- Security Concepts
- Set Up Systemwide Environment Variables
- Set up the Geoportal Database
- Share Link
- Single Sign On
- Smoketest the Geoportal
- Standards Support
- Supported CSW Profiles for Synchronization
- Theme Library
- Troubleshooting
- Troubleshooting Tips
- Two geoportals on the same server
- Upgrade 1.x to 1.2 database
- Upgrading file system approach
- Upgrading Read This Overview
- Upgrading SVN approach
- Url filter customization
- Use an XSLT to Render the Details Page
- Use Ant to build Geoportal
- User Functions and Roles
- User Management Interface
- Using a geoportal
- Using Lucene Search Text Queries
- Version 0.9
- Version 1.0
- Version 1.1
- Version 1.1.1
- Version 1.2
- Version 1.2.2
- Version 1.2.4
- Version 1.2.5
- Version 1.2.6
- Version 1.2.7
- Version 1.2.8
- What is a geoportal and the geoportal server
- What is the esri geoportal server
- What's New
- wiki template
- WMC Client
- Show 187 more pages…
Clone this wiki locally
Subversion (also known as SVN) is a popular software versioning and revision control system software (see http://en.wikipedia.org/wiki/Apache_Subversion). In the following example, we will use SVN to upgrade an existing user-customized Geoportal Server implementation with a newer Geoportal Server release.
Prerequisite:
This example uses TortoiseSVN (http://tortoisesvn.tigris.org/) as the SVN client for Windows.
- Note on Versioning: There are several approaches to organizing a version control system and there are active debates on the web about different methodologies. The following example takes a very basic approach. It assumes that geoportal server is not yet managed within a version control system. The main focus is on using the SVN tools for merging a new geoportal release into a user's existing configured geoportal. We advise geoportal implementers to consider what version control methodology is most appropriate for their project and use the following example as guidelines that can be adapted to a specific project.
Procedure:
Step 1. Add your currently configured, possibly customized, Geoportal Server deployment to SVN.
- Go to folder where you have currently deployed geoportal server
- Right-click on your geoportal folder (in the Tomcat webapps directory) and run the TortoiseSVN Repo-Browser:
- Create a folder in your SVN repository for your geoportal configuration. Use the Right-click > 'Create Folder' command to create a 'myGeoportal/geoportal' folder in your repository:
- Right-click on the 'myGeoportal' folder, select the 'Add Folder' command and select the geoportal folder from your Tomcat\webapps directory
- When the 'Add folder' process is complete, you should see the following in your TortoiseSVN Repository Browser:
- Download a new Geoportal Server release from https://sourceforge.net/projects/geoportal/files/ to a working directory.
- Unzip the release and locate the geoportal.war file
- Make a copy of geoportal.war and rename it as geoportal.zip
- Unzip geoportal.zip
- You should now have a folder called 'geoportal' in the C:\geoportalServer\newRelease directory containing the following folders:
- Catalog
- Csw
- META-INF
- Misc
- Webhelp
- WEB-INF
- Widgets
- Create a folder where we will begin the merge.
- Right-click on the myGeoportalMerge folder and use the TortoiseSVN > SVN Checkout command. Select 'myGeoportal\geoportal' from as the item to check out from SVN.
- Refresh the Windows Explorer view (F5 key) and you should see that TortoiseSVN has tagged the geoportal folder and its contents with green check, indicating that all the folders and files checked out from SVN are current and in-sync with the SVN repository version.
- Copy the geoportal folder from the C:\geoportalServer\newRelease\ to C:\geoportalServer\myGeoportalMerge. Confirm ('Yes to all') for over-writing and replacing all existing files with the contents coming from the new Geoportal release.
- Refresh the windows explorer view of the geoportal folder in C:\geoportalServer\newRelease. Notice that some of the folder and file icons have changed from a green check to a red exclamation point!
- Folders with a red exclamation indicate that some of the file contents have changed from the version that was checked out from the SVN repository.
- At this point, you need to inspect all the folders and files with red exclamations and make a note if the folder (specifically its file contents) contained user-configured changes or customizations. At a minimum, the user-configured geoportal (myGeoportal) will contain deployment-specific changes to gpt.xml in the WEB-INF\classes\gpt\config folder.
- If a folder is flagged as a change, but you know the myGeoportal deployment did not contain any user changes, then you know that the changes are due to the newRelease geoportal. In this case, right-click on the folder and select SVN Commit. You will then be shown a dialog that allows you to select All or Some of the files that you want to commit to the SVN Repository. Afterwards, TortoiseSVN will change the folder icon to a green check mark.
- If a folder is flagged as a change, AND you know the myGeoportal deployment also contained user changes, then you know that the changes need to be reconciled between the newRelease geoportal and the previous myGeoportal geoportal version. In this case, select the file that needs to be reconciled, right-click on the file and select Tortoise SVN > Diff
Step 6. Perform final commit to the SVN Repository. At this point, you should have reconciled all user-configurations and customizations that you want to bring from your previous (myGeoportal) geoportal configuration.
- Now, right-click the geoportal folder in the myGeoportalMerge working directory and select 'SVN Commit'.
- Expect to see an dialog alert with the message 'No files were changed or added since the last commit. There's nothing for TortoiseSVN to do here Do you want to see the unversioned files?' Select 'Yes'.
- In the next dialog, select all the unversioned files (the 'Select/deslect all' choice under 'Show unversioned files'. These files represent fodlers and files that were added to the new geoportal release that were not present in the previous myGeoportal version.
- Add a comment about this commit and click 'Ok'.
Step 7. Optional: Check out your new merged geoportal.
- Navigate to \webapps folder.
- Right-click on the geoportal folder and select SVN Checkout
- Click OK to the following dialog
- You should now see a versioned copy of geoportal in your webapps, indicated by a green check on the folder icon.