You can use the Repository Loader example to perform two tasks:
Convert files to repository items
In order to run the Repository Loader example, follow these steps:
During application assembly, specify the following module so you can use the Repository Loader example:
RL.Example
Note: To avoid conflicts among database connection configurations, exclude from the application any other Oracle ATG Web Commerce demos, examples, or reference application modules that include the Repository Loader.
If you are running on Windows, set the
pathSeparator
property of the/atg/rl-example/ExampleRepository
component to backslash (\
).Note: if you set this property directly in a properties file rather than in the ACC, use this format:
pathSeparator=\\
After the application starts, navigate to the Repository Loader Administration, on this page:
http://
hostname
:
port
/rl
hostname
: the application server machineport
: the port your application server uses to listen for HTTP requests.
For example:
http://skua:8180/rl
On the Repository Loader Admin page, click Create Job.
In the Create Job page:
Set Recurse to
Yes
Click Add Files
This loads the files from the root path into the ExampleRepository as repository items. The Repository Loader Administration should show the job as completed.
Export repository items to XML
You can use the Repository Loader example to evaluate output by exporting a repository item to XML. Navigate to this page:
http://hostname:port/rl-example/itemAsXml.jsp
This page takes a hard-coded repository item (user001) and outputs it as an XML file.
Examining the XML format generated for a given item descriptor can help you generate compliant XML, or write an XSL stylesheet for the Repository Loader to apply before processing a file’s contents.