Changeset 2668
- Timestamp:
- 03/08/13 16:37:08 (11 years ago)
- Location:
- vlo/branches/vlo-2.13-param
- Files:
-
- 1 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
vlo/branches/vlo-2.13-param/src/main/assembly/installPackageBuilder.xml
r2651 r2668 87 87 <outputDirectory>bin</outputDirectory> 88 88 </fileSet> 89 <!-- VLO WAR FILE-->89 <!-- WEB APPLICATION --> 90 90 <!-- WAR FILE --> 91 91 <fileSet> … … 103 103 </includes> 104 104 <outputDirectory>config</outputDirectory> 105 </fileSet> 105 </fileSet> 106 106 107 <!-- SOLR -->107 <!-- SOLR SERVER --> 108 108 <!-- SOLR WAR FILE --> 109 109 <fileSet> -
vlo/branches/vlo-2.13-param/vlo_importer/src/main/bin/vlo_solr_importer.sh
r2577 r2668 1 1 #!/bin/sh 2 2 3 # This means it the script only works started from the bin directory, 4 # adjust theworkdir if you installed this somewhere and want to run it from anywhere.3 # This means it the script only works started from the bin directory, adjust the 4 # workdir if you installed this somewhere and want to run it from anywhere. 5 5 6 # Filter of the Error stream from which to prevent the admins from getting daily "can't find java" emails 6 # Filter of the Error stream from which to prevent the admins from getting daily 7 # "can't find java" emails 7 8 JAVA=`which java 2>/dev/null` 8 9 if [ -z $JAVA ]; then … … 11 12 fi 12 13 14 # Please specify the configuration to the importer via a system property or via 15 # the command line. In case of a property add 16 # 17 # -DconfigFile=<pathToConfigFile> 18 # 19 # and in case of the command line, add 20 # 21 # -c <pathToConfigFile> 22 # 23 # to the JAVA command. Please note the a specification on the command line will 24 # take preference over a specification as a property. 13 25 14 $JAVA -Xmx1024M -cp .:vlo-2.13- jar.jar eu.clarin.cmdi.vlo.importer.MetadataImporter26 $JAVA -Xmx1024M -cp .:vlo-2.13-importer.jar eu.clarin.cmdi.vlo.importer.MetadataImporter -
vlo/branches/vlo-2.13-param/vlo_importer/src/main/java/eu/clarin/cmdi/vlo/importer/MetadataImporter.java
r2663 r2668 374 374 * @throws IOException 375 375 */ 376 public static void main(String[] args) throws MalformedURLException, IOException { 376 public static void main(String[] args) throws MalformedURLException, IOException { 377 377 378 378 // application configuration 379 379 VloConfig config; 380 381 // path to the configuration file 382 String configFile = null; 380 383 381 384 // use the Apache cli framework for getting command line parameters … … 396 399 397 400 // the "c" option was specified, now get its value 398 String fileName; 399 fileName = cmd.getOptionValue("c"); 400 401 // optionally, check for file existence here 402 403 // read the configuration from the externally supplied file 404 VloConfig.readConfig(fileName); 405 406 // optionally, modify the configuration here 407 408 // create and start the importer 409 MetadataImporter importer = new MetadataImporter(); 410 importer.startImport(); 411 412 // finished importing 413 414 if (VloConfig.printMapping()) { 415 File file = new File("xsdMapping.txt"); 416 FacetMappingFactory.printMapping(file); 417 LOG.info("Printed facetMapping in " + file); 418 } 401 configFile = cmd.getOptionValue("c"); 419 402 } 420 403 421 404 } catch (org.apache.commons.cli.ParseException ex) { 422 405 423 // caught an exception caused by command line parsing 424 406 /** 407 * Caught an exception caused by command line parsing. Try to get 408 * the name of the configuration file by querying the system 409 * property. 410 */ 411 425 412 String message = "Command line parsing failed. " + ex.getMessage(); 426 427 413 LOG.error(message); 428 414 System.err.println(message); 415 416 String key; 417 key = "configFile"; 418 configFile = System.getProperty(key); 419 } 420 421 if (configFile == null) { 422 423 String message; 424 425 message = "Could not get filename as system property either."; 426 LOG.error(message); 427 System.err.println(message); 428 } else { 429 // read the configuration from the externally supplied file 430 VloConfig.readConfig(configFile); 431 432 // optionally, modify the configuration here 433 434 // create and start the importer 435 MetadataImporter importer = new MetadataImporter(); 436 importer.startImport(); 437 438 // finished importing 439 440 if (VloConfig.printMapping()) { 441 File file = new File("xsdMapping.txt"); 442 FacetMappingFactory.printMapping(file); 443 LOG.info("Printed facetMapping in " + file); 444 } 429 445 } 430 446 } -
vlo/branches/vlo-2.13-param/vlo_importer/xsdMapping.txt
r2663 r2668 1 This file is generated on Mar 8, 2013 1 0:12:39 AM and only used to document the mapping.1 This file is generated on Mar 8, 2013 1:59:24 PM and only used to document the mapping. 2 2 This file contains xsd name and a list of conceptName with xpath mappings that are generated. 3 3 --------------------- 4 http://www.openarchives.org/OAI/2.0/oai_dc.xsd 5 FacetName:id 6 Mappings: 7 /c:CMD/c:Header/c:MdSelfLink/text() 8 FacetName:collection 9 Mappings: 10 /c:CMD/c:Header/c:MdCollectionDisplayName/text() 11 FacetName:name 12 Mappings: 13 /c:CMD/c:Components/c:LrtInventoryResource/c:LrtCommon/c:ResourceName/text() 14 FacetName:country 15 Mappings: 16 /c:CMD/c:Components/c:OLAC-DcmiTerms/c:spatial[@dcterms-type="ISO3166"]/text() 17 /c:CMD/c:Components/c:OLAC-DcmiTerms/c:coverage[@dcterms-type="ISO3166"]/text() 18 FacetName:language 19 Mappings: 20 /c:CMD/c:Components/c:OLAC-DcmiTerms/c:language/@olac-language 21 /c:CMD/c:Components/c:OLAC-DcmiTerms/c:subject/@olac-language 22 /c:CMD/c:Components/c:LrtInventoryResource/c:LrtCommon/c:Languages/c:ISO639/c:iso-639-3-code/text() 23 FacetName:languages 24 Mappings: 25 /c:CMD/c:Components/c:OLAC-DcmiTerms/c:language/@olac-language 26 /c:CMD/c:Components/c:OLAC-DcmiTerms/c:subject/@olac-language 27 /c:CMD/c:Components/c:LrtInventoryResource/c:LrtCommon/c:Languages/c:ISO639/c:iso-639-3-code/text() 28 FacetName:genre 29 Mappings: 30 /c:CMD/c:Components/c:OLAC-DcmiTerms/c:type/@olac-linguistic-type 31 FacetName:subject 32 Mappings: 33 /c:CMD/c:Components/c:OLAC-DcmiTerms/c:subject/@olac-linguistic-field 34 /c:CMD/c:Components/c:OLAC-DcmiTerms/c:subject[@dcterms-type="LCSH"]/text() 35 FacetName:resourceType 36 Mappings: 37 /c:CMD/c:Components/c:LrtInventoryResource/c:LrtCommon/c:ResourceType/text() 38 /c:CMD/c:Components/c:OLAC-DcmiTerms/c:type/text() 39 FacetName:nationalProject 40 Mappings: 41 /c:CMD/c:Header/c:MdCollectionDisplayName/text() 42 FacetName:text 43 Mappings: 44 /c:CMD//text() 45 FacetName:_componentProfile 46 Mappings: 47 /c:CMD/c:Header/c:MdProfile/text() 48 --------------------- -
vlo/branches/vlo-2.13-param/vlo_web_app/pom.xml
r2658 r2668 73 73 </configuration> 74 74 </plugin> 75 75 76 <plugin> 76 77 <groupId>org.apache.maven.plugins</groupId> … … 81 82 </configuration> 82 83 </plugin> 84 83 85 <plugin> 84 86 <groupId>org.apache.maven.plugins</groupId> … … 106 108 </executions> 107 109 </plugin> 110 108 111 <plugin> 109 112 <artifactId>maven-assembly-plugin</artifactId> … … 124 127 </executions> 125 128 </plugin> 126 127 129 </plugins> 130 128 131 </build> 129 130 132 </project>
Note: See TracChangeset
for help on using the changeset viewer.