source: gs3-extensions/fedora/trunk/src/fedora-files/fedora-ingest-demos.bat.in@ 26434

Last change on this file since 26434 was 26434, checked in by ak19, 11 years ago

While getting GS3-with-Fedora collections to work on Puka discovered more issues. 1. Several additional files needed to become template files with placeholder values for the GS3 tomcat server and port, fedora password and index write lock timeout value. Other files needed further modifications (particularly fedora.fcfg.in and gsearch's fgsconfig-basic.properties) to make sure server and port values weren't fixed to localhost and 8383 defaults. 2. The build.xml had to be updated to make changes to these new and modified files during the installation process. 3. There's now a new target in build.xml: uninstall-fedora. 4. README file update with all this information, as well as corrections and clarifications.

File size: 816 bytes
Line 
1@echo off
2setlocal
3
4if not "%FEDORA_HOME%" == "" goto gotFedoraHome
5echo ERROR: The FEDORA_HOME environment variable is not defined.
6exit /B 1
7:gotFedoraHome
8
9set LAUNCHER="%FEDORA_HOME%\client\bin\env-client.bat"
10
11if not "%5"=="" goto enoughArgs
12echo ERROR: Not enough arguments.
13echo Usage:
14echo fedora-ingest-demos host port user password protocol [context]
15echo Example:
16echo fedora-ingest-demos @tomcatserver@ @tomcatport@ fedoraAdmin @fedorapassw@ http my-fedora
17exit /B 1
18:enoughArgs
19
20set DEMO_PATH="%FEDORA_HOME%\client\demo\foxml\local-server-demos"
21set DEMO_FORMAT=info:fedora/fedora-system:FOXML-1.1
22
23set ARGS=d
24set ARGS=%ARGS% %DEMO_PATH%
25set ARGS=%ARGS% %DEMO_FORMAT%
26set ARGS=%ARGS% "%1:%2" %3 %4 %5 "" %6
27
28call %LAUNCHER% org.fcrepo.client.utility.ingest.Ingest %ARGS%
Note: See TracBrowser for help on using the repository browser.