Commits

dloy committed ea8f750

BitBucket

  • Participants
  • Parent commits e354b13

Comments (0)

Files changed (18)

File README-SETUP.txt

+
+* Requirements
+JDK 1.6(+)
+Java servlet container that accepts .war (e.g. tomcat, resin, jetta, ...)
+ant
+maven
+MySQL
+________________________________
+
+* Create mrt-fixity/fixity-conf/properties/Fixity.properties
+FixityService=[absolute file path to fixity home]
+db.url=[jdbc path to my MySQL]
+    example: db.url=jdbc:mysql://127.0.0.1:3306/merritt?characterEncoding=UTF-8&characterSetResults=UTF-8
+db.user=[write access MySQL user]
+db.password=[write access password for this user]
+________________________________
+
+* Build projects using maven on mrt-fixity
+cd mrt-fixity
+mvn clean
+mvn install
+________________________________
+
+* Build needed MySQL tables
+The MySQL commands used to create the needed tables for fixity can be found at:
+mrt-fixity/fixity-src/src/main/java/sql/current.db.sql
+________________________________
+
+* Create a fixity home directory
+Fixity uses a home directory. See spec for architecture.
+A demo version of the home directory can be created by 
+
+cd mrt-fixity/fixity-demo
+mvn install
+
+The demo home location is based on the mrt-fixity/fixity-conf/properties/Fixity.properties
+FixityService=[absolute file path to fixity home] property 
+(see step above for setting these properties)
+________________________________
+
+Edit  - these ant properties define the 
+
+Properties:
+-storage.node=[absolute file path to storage node that will be constructed by script]
+Example: storage.node=/home/me/store
+Required
+
+-can.node=[absolute file path to CAN node that will be constructed by script]
+The actual storage of the pairtree/dflat architecture will occur under ths directory.
+Example: can.node=/home/me/node
+Required
+
+-can.info.identifier=[any number - used in restful interface]
+The Storage Service restful calls use this number which must be unique to the
+Storage service.
+Example: can.info.identifier=10
+Required
+
+-store.info.baseURI=[Absolute URL that will be used for the Storage Service]
+This is the URL for your Storage Service calls.
+Example: http:storge.myhost.org:8080/storage
+Required
+
+-exists.storage.node=delete
+if present then delete storage service every time clean/build is done in maven
+Default: do not delete
+
+-exists.can.node=delete
+if present then delete CAN every time clean/build is done in maven
+Default: do not delete
+
+NOTE: If you are using Windows for your Storage Service, then the file paths that you
+set in the properties need to be specified in a unix style format with forward slashes:
+C:/Documents and Settings/dloy/...
+
+* run maven
+cd to downloaded version of ingest-storage-feeder (refered to as base/)
+mvn install
+
+This should build a working storage service
+
+________________________________
+
+* Run cmdline test
+The following target will add files to the created storage/can
+1. cd base/storage/store-demo
+2. ant -f make-store.xml test-cmdline-unix
+
+________________________________
+
+* Building a working servlet
+After running the previous step a storage.war file will now exist that can be used
+on the Storage Service defined by the previous step.
+
+The .war is base/store-war/war/storage.war
+
+Place this .war in a java container (tomcat, resin, jetta, ...) and start the container.
+
+The restful interface should now be available at[store.info.baseURI]
+
+Test:
+- [store.info.baseURI]/state 
+Example: http:storge.myhost.org:8080/storage/state - Storage Service state
+
+- [store.info.baseURI]/state/[[store.info.baseURI]
+Example: http:storge.myhost.org:8080/storage/state/10 - CAN state
+
+
+============================================
+Note:
+- Storage service URLs are sensitive to slashes (/) so URL encoding is required for any
+URL element containing a slash:
+http://storge.myhost.org:8080/storage/state/15/ark%3A%2F13030%2Fabcd

File html-jsp/pom.xml

-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>org.cdlib.mrt</groupId>
  <artifactId>mrt-fixityjsp</artifactId>
  <packaging>war</packaging>
  <version>1.0-SNAPSHOT</version>
  <name>UC3-mrtFixityJsp</name>
  <url>http://uc3.cdlib.org</url>
  <!-- force UTF-8 -->
  <properties>
      <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  </properties>
  <build>
    <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-war-plugin</artifactId>
                <version>2.1.1</version>
                <configuration>
                    <webResources>
                        <resource>
                            <!-- this is relative to the pom.xml directory -->
                            <directory>resource2</directory>
                        </resource>
                    </webResources>
                </configuration>
            </plugin>
    <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-dependency-plugin</artifactId>
        <executions>
          <execution>
            <id>copy</id>
            <phase>install</phase>
            <goals>
              <goal>copy</goal>
            </goals>
            <configuration>
              <artifactItems>
                <artifactItem>
                    <groupId>org.cdlib.mrt</groupId>
                    <artifactId>mrt-fixityjsp</artifactId>
                    <version>1.0-SNAPSHOT</version>
                    <type>war</type>
                     <overWrite>true</overWrite>
                     <outputDirectory>./war</outputDirectory>
                     <destFileName>mrtfixityjsp.war</destFileName>
                </artifactItem>
              </artifactItems>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  <dependencies>
    <dependency>
        <groupId>org.cdlib.mrt</groupId>
        <artifactId>mrt-core</artifactId>
        <version>1.0-SNAPSHOT</version>
    </dependency>
    <dependency>
        <groupId>org.cdlib.mrt</groupId>
        <artifactId>mrt-store</artifactId>
        <version>1.0-SNAPSHOT</version>
    </dependency>
    <dependency>
        <groupId>org.cdlib.mrt</groupId>
        <artifactId>mrt-storeconf</artifactId>
        <version>1.0-SNAPSHOT</version>
    </dependency>
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>servlet-api</artifactId>
            <version>2.4</version>
            <scope>provided</scope>
        </dependency>
  </dependencies>

File html-jsp/resource2/manifest/badmanifest1.txt

-https://confluence.ucop.edu/download/attachments/20250670/testG18.xls | MD5 | 10fd0f569807aa5de4d6df592b6b4579 | 15872 | - | fptr100.xls
-https://confluence.ucop.edu/download/attachments/20250670/testG19.xls | MD5 | 5abd5844c4536a574bd324b80a39b8cb | 16896 | - | fptr101.xls
-https://confluence.ucop.edu/download/attachments/20250670/testG20.xls | MD5 | 6be4637bacdc69278127e29db9fcb80a | 19968 | - | fptr102.xls
-https://confluence.ucop.edu/download/attachments/20250670/testG21.xls | MD5 | fc54c104087ab94481537dc8f244d1ee | 21504 | - | fptr103.xls
-https://confluence.ucop.edu/download/attachments/20250670/testG22.xls | MD5 | bd51dda361f399191b89d6725e12215b | 26112 | - | fptr104.xls
-https://confluence.ucop.edu/download/attachments/20250670/testG23.xls | MD5 | 6a572cde2333264596ff1d0439c49717 | 21504 | - | fptr105.xls
-https://confluence.ucop.edu/download/attachments/20250670/testG24.xls | MD5 | e30fbb511b1d2f82f6949b8e43166c5c | 21504 | - | fptr106.xls
-https://confluence.ucop.edu/download/attachments/20250670/testG25.xls | MD5 | a80bda9730101d7b40799db6c50d4575 | 18432 | - | fptr107.xls
-https://confluence.ucop.edu/download/attachments/20250670/testG26.xls | MD5 | 46c68fad148150c93806af8af9a17efa | 18432 | - | fptr108.xls
-https://confluence.ucop.edu/download/attachments/20250670/testG27.xls | MD5 | 9ef33b30e80ef01a0e8ae2488ed68aab | 18944 | - | fptr109.xls
-#%EOF

File html-jsp/resource2/manifest/badmanifest2.txt

-http://qa-dev.cdlib.org:30111/qa/performance/objs/cdlqcA3I1/dpr/castat02/xls/G18.xls MD5 10fd0f569807aa5de4d6df592b6b4579 15872 || fptr100.xls
-http://qa-dev.cdlib.org:30111/qa/performance/objs/cdlqcA3I1/dpr/castat02/xls/G19.xls MD5 5abd5844c4536a574bd324b80a39b8cb 16896 || fptr101.xls
-http://qa-dev.cdlib.org:30111/qa/performance/objs/cdlqcA3I1/dpr/castat02/xls/G20.xls MD5 6be4637bacdc69278127e29db9fcb80a 19968 || fptr102.xls
-http://qa-dev.cdlib.org:30111/qa/performance/objs/cdlqcA3I1/dpr/castat02/xls/G21.xls MD5 fc54c104087ab94481537dc8f244d1ee 21504 || fptr103.xls
-http://qa-dev.cdlib.org:30111/qa/performance/objs/cdlqcA3I1/dpr/castat02/xls/G22.xls MD5 bd51dda361f399191b89d6725e12215b 26112 || fptr104.xls
-http://qa-dev.cdlib.org:30111/qa/performance/objs/cdlqcA3I1/dpr/castat02/xls/G23.xls MD5 6a572cde2333264596ff1d0439c49717 21504 || fptr105.xls
-http://qa-dev.cdlib.org:30111/qa/performance/objs/cdlqcA3I1/dpr/castat02/xls/G24.xls MD5 e30fbb511b1d2f82f6949b8e43166c5c 21504 || fptr106.xls
-http://qa-dev.cdlib.org:30111/qa/performance/objs/cdlqcA3I1/dpr/castat02/xls/G25.xls MD5 a80bda9730101d7b40799db6c50d4575 18432 || fptr107.xls
-http://qa-dev.cdlib.org:30111/qa/performance/objs/cdlqcA3I1/dpr/castat02/xls/G26.xls MD5 46c68fad148150c93806af8af9a17efa 18432 || fptr108.xls
-http://qa-dev.cdlib.org:30111/qa/performance/objs/cdlqcA3I1/dpr/castat02/xls/G27.xls MD5 9ef33b30e80ef01a0e8ae2488ed68aab 18944 || fptr109.xls
-http://qa-dev.cdlib.org:30111/qa/performance/objs/cdlqcA3I1/dpr/castat02/xls/G28.xls MD5 0ccd61e0202f77f817e505d7bac8f2e3 45056 || fptr110.xls
-http://qa-dev.cdlib.org:30111/qa/performance/objs/cdlqcA3I1/dpr/castat02/xls/G29.xls MD5 079053abe6aff87c2bb0ae3e67832cb2 31232 || fptr111.xls
-http://qa-dev.cdlib.org:30111/qa/performance/objs/cdlqcA3I1/dpr/castat02/xls/G30.xls MD5 1317077f3e77f3c1448fb40e9a30fa92 17408 || fptr112.xls
-http://qa-dev.cdlib.org:30111/qa/performance/objs/cdlqcA3I1/dpr/castat02/xls/G31.xls MD5 23770eda845f96118bb385bfad66b070 51200 || fptr113.xls
-http://qa-dev.cdlib.org:30111/qa/performance/objs/cdlqcA3I1/dpr/castat02/xls/G32.xls MD5 24f04ebccbd78f617fd31a91b7d81648 27136 || fptr114.xls
-http://qa-dev.cdlib.org:30111/qa/performance/objs/cdlqcA3I1/dpr/castat02/xls/G33.xls MD5 14d1e6800126a5815e5a709a64550cf9 23552 || fptr115.xls
-http://qa-dev.cdlib.org:30111/qa/performance/objs/cdlqcA3I1/dpr/castat02/xls/G34.xls MD5 80bbb138fe1f16127e7e76c0be085a1d 24576 || fptr116.xls
-http://qa-dev.cdlib.org:30111/qa/performance/objs/cdlqcA3I1/dpr/castat02/xls/G35.xls MD5 2041996629986489b16efe38f05b49b0 40448 || fptr117.xls
-http://qa-dev.cdlib.org:30111/qa/performance/objs/cdlqcA3I1/dpr/castat02/xls/H01.xls MD5 de2ee2dfb1212f85c6d614f4508e7820 48640 || fptr118.xls
-http://qa-dev.cdlib.org:30111/qa/performance/objs/cdlqcA3I1/dpr/castat02/xls/H02.xls MD5 1d9aab8d6223aff1a1e40f82957ed6f2 57344 || fptr119.xls
-#%EOF